VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityControlPanelPage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if !defined(Q_MOC_RUN)
12 
14 #include <boost/signals2.hpp>
15 #include <vrvCore/DtEntityState.h>
16 #include <vrvCoreQt/DtMenuItem.h>
18 #endif
19 
20 class QDockWidget;
21 class QWidget;
22 class QAction;
23 
24 namespace makVrv
25 {
26  class DtPage;
27 }
28 
29 namespace makVrf
30 {
31  namespace makVrfGuiObjectInformationQt
32  {
33  class DtInformationDialogWidgetSection;
34  class DtInformationSectionDisplayHandler;
35 
37  //
42  {
43  Q_OBJECT
44 
45  public:
47  DtEntityControlPanelPage(makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
48 
50  virtual ~DtEntityControlPanelPage();
51 
52  virtual QSize minimumSizeHint() const;
53  virtual QSize sizeHint() const;
54 
55  virtual bool init(makVrv::DtUniqueID);
56 
57  boost::signals2::signal<void(DtEntityControlPanelPage*)> signal_aboutToBeClosed;
58 
59  protected slots:
60  void dockedWidgetTopLevelChanged(bool topLevel);
61 
62  protected:
63  virtual void activate();
64  virtual void deactivate();
65 
66  virtual void createEntryWidget();
67  virtual void updateEntryWidgetOnDataChanged();
68  virtual void closeEvent(QCloseEvent*) override;
69 
70  protected:
71  QWidget* myEntryWidget;
74  boost::signals2::scoped_connection myUpdateConnection;
75  double myLastUpdateTime = 0;
76  double myUpdateRate = 0.1;
77  double myTotalSinceLastStateViewUpdate = 0.;
78  };
79 
83  {
84  public:
85 
88 
91 
95  virtual std::string pageClassName() const;
96 
98  virtual makVrv::DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
99  };
100 
102  {
103  Q_OBJECT
104  public:
105  //CTOR
107 
108  //DTOR
109  virtual ~DtEntityControlPanelMenuItem();
110 
112  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
113 
114 
115  protected:
116  virtual void validate(QAction* act);
117  virtual void on_triggered();
118  virtual void slot_onValidate(QAction* act);
119  };
120  }
121 }
DT_DLL_VRFGUIOBJECTINFORMATIONQT void init(makVrv::DtDe &de)
QWidget * myEntryWidget
Definition: entityControlPanelPage.h:71
boost::signals2::signal< void(DtEntityControlPanelPage *)> signal_aboutToBeClosed
Definition: entityControlPanelPage.h:57
Definition: vrfEntityMenu.h:96
class DtSelectedObjectInformationWidget:
Definition: selectedObjectInformationWidget.h:46
QDockWidget * myDockedWidget
Definition: entityControlPanelPage.h:72
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
Contains makVrv::DtVrlinkSimulatedEntityState class.
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:24
boost::signals2::scoped_connection myUpdateConnection
Definition: entityControlPanelPage.h:74
class DtEntityControlPanelPage:
Definition: entityControlPanelPage.h:41
makVrv::DtUniqueID mySelectedId
Definition: entityControlPanelPage.h:73
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
The creator class needed to be used to create a DtEntityControlPanelPage.
Definition: entityControlPanelPage.h:82

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)