VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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();
65 
66  protected:
67 
69  virtual void activate();
70 
72  virtual void deactivate();
73 
75  void setupGui();
76 
77  virtual void slot_onCurrentSelectionChanged(
78  const makVrv::DtSelectionManager::IdSet& selected,
79  const makVrv::DtSelectionManager::IdSet& deselected);
80  virtual void showInformationPage(std::string page, DtInformationSectionDisplayHandler* s);
81 
82  virtual void stateViewRemoved();
83 
84  virtual void slot_onStateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
85 
86  private:
87 
90 
93 
94  protected:
95 
96  std::string myClassName;
97 
98  public:
99  QScrollArea* myScrollArea;
101  QVBoxLayout* myScrollLayout;
102 
103  protected:
106 
107  typedef std::vector<DtInformationDialogWidgetSection*> InformationSections;
109 
111 
112  std::string myCurrentCreator;
113  };
114 
118  {
119  public:
120 
123 
126 
130  virtual std::string pageClassName() const;
131 
133  virtual makVrv::DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
134  };
135  }
136 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)