VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
selectedObjectInformationWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vrvCoreQt/DtPage.h>
15 #include <vrvCore/DtStateView.h>
16 #include <vrvCore/DtEntityState.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtUnicode;
22 }
23 
24 class QWidget;
25 class QVBoxLayout;
26 class QScrollArea;
27 
28 namespace makVrf
29 {
30  class DtVrfFilteredListView;
31 
32  namespace makVrfGuiObjectInformationQt
33  {
34  class DtInformationDialogWidgetSection;
35  class DtInformationSectionDisplayHandler;
36 
43  : public makVrv::DtPage
44  {
45  Q_OBJECT
46 
47  public:
49  DtSelectedObjectInformationWidget(makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
50 
53 
55  virtual QIcon icon();
56 
58  virtual QString title();
59 
61  virtual const std::string& pageClassName() const;
62 
64  virtual void clearSections(bool becauseOfRemoval = false);
65 
66  protected:
67 
69  virtual void activate();
70 
72  virtual void deactivate();
73 
75  void setupGui();
76 
77  virtual void slot_objectsAboutToBeDeletedFromSimulation(const makVrv::DtSelectionManager::IdSet& toBeDeleted);
78 
79  virtual void slot_onCurrentSelectionChanged(
80  const makVrv::DtSelectionManager::IdSet& selected,
81  const makVrv::DtSelectionManager::IdSet& deselected);
82  virtual void showInformationPage(std::string page, DtInformationSectionDisplayHandler* s);
83 
84  virtual void stateViewRemoved();
85 
86  virtual void slot_onStateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
87 
88  virtual void updateData();
89  virtual void displayUnitsChanged();
90 
91  virtual void completeSetup();
92 
93  private:
94 
97 
100 
101  protected:
102 
103  std::string myClassName;
104 
105  public:
106  QScrollArea* myScrollArea;
107  QWidget* myScrollWidget;
108  QVBoxLayout* myScrollLayout;
109 
110  protected:
113 
114  typedef std::vector<DtInformationDialogWidgetSection*> InformationSections;
116 
118 
119  std::string myCurrentCreator;
120  };
121 
125  {
126  public:
127 
130 
133 
137  virtual std::string pageClassName() const;
138 
140  virtual makVrv::DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
141  };
142  }
143 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)