VR-Forces 4.1 Class Documentation
DtUnitStatus.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //\file DtUnitStatus.h
7 //\brief Contains makVrf::makVrfUnitStatusExample::DtUnitStatus class.
8 
9 #pragma once
10 
11 #include <vrvUtil/signalslib.h>
12 
13 #include "statusWidgetUi.hpp"
14 #include "DtUnitStatusInterface.h"
15 
16 #include <vrvCoreQt/DtDockable.h>
18 #include <vrvCoreQt/DtPage.h>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 }
24 
25 namespace makVrfUnitStatusExample
26 {
27  class DtUnitStatusLogic;
28 
29  //A widget class for managing different camera views the currently selected observer can be placed in.
31  : public makVrv::DtPage
32  , public DtUnitStatusInterface
33  , public makVrv::DtDockable
34  {
35  public:
36  //\brief CTOR
37  DtUnitStatus( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
38 
39  //\brief DTOR
40  virtual ~DtUnitStatus();
41 
42  //Get the icon of the page.
43  virtual QIcon icon();
44 
45  //Get the title of the page.
46  virtual QString title();
47 
48  //Get the class name of the page.
49  virtual const std::string& pageClassName() const;
50 
51  //Called when the page is displayed.
52  virtual void activate();
53 
54  //Called when the page is hidden.
55  virtual void deactivate();
56 
57  static std::string thePageClassName();
58 
59  protected:
60  //\brief Sets up the contents of the widget onto the supplied parent
61  void setupUi(QWidget* p);
62 
63  //\brief Clears out widget
64  virtual void clear();
65 
66  virtual void setUnitName(const std::string&);
67  virtual void setIcon(const QPixmap&);
68  virtual void setLocation(const std::vector<std::string>& position);
69 
70  virtual void setVelocity(const QString&);
71  virtual void setAcceleration(const QString&);
72  virtual void setHeading(const QString&);
73  virtual void setMarkingText(const QString&);
74 
75  public:
76  Ui_DtUnitStatusUi myUi;
77 
78  protected:
80 
81  };
82 
83  //Create a "creator" helper class using the template.
85 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)