VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scenarioEventSettingsPage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvCoreQt/DtPage.h>
16 
17 class QLabel;
18 class QRadioButton;
19 class QVBoxLayout;
20 class QCheckBox;
21 
22 namespace makVrv
23 {
24  class DtPersistenceControlsInterface;
25  class DtPersistenceToolbarWidget;
26 }
27 
28 namespace makVrf
29 {
33  {
34  Q_OBJECT
35 
36  public:
37 
39  DtScenarioEventSettingsWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0 );
40 
43 
44  virtual void setShowAllEvents(bool);
45  virtual bool showAllEvents() const;
46 
47  virtual void setShowAllEventsByVisibleForce(bool);
48  virtual bool showAllEventsByVisibleForce() const;
49 
50  virtual void setShowAllActiveEvents(bool);
51  virtual bool showAllActiveEvents() const;
52 
53  virtual void setShowAllActiveEventsByVisibleForce(bool);
54  virtual bool showAllActiveEventsByVisibleForce() const;
55 
56  virtual void setShowDialogsForStartedEvents(bool);
57  virtual bool showDialogsForStartedEvents() const;
58 
59  boost::signal<void ()> signal_onOptionChanged;
60  boost::signal<void ()> signal_showDialogsChanged;
61 
62  protected:
63 
64  void setupGui();
65 
66  protected slots:
67  virtual void optionChanged();
68  virtual void showDialogsChanged();
69 
70  public:
71  QVBoxLayout* myOptionsLayout;
73 
74  QRadioButton* myShowAllEvents;
76  QRadioButton* myShowAllActiveEvents;
79  };
80 
83  {
84 
85  public:
86 
90 
93 
95  virtual void setupFromOptions(const DtScenarioEventSettingsRecord& rec);
96 
97  protected:
99  virtual void onOptionChanged();
100 
102  virtual void onShowDialogsChanged();
103 
104  protected:
106  virtual void on_import();
107  virtual void on_export();
108  virtual void on_importFilePathChosen(const std::string& filePath);
109  virtual void on_exportFilePathChosen(const std::string& filePath);
110 
111  protected:
116  };
117 
120  {
121  Q_OBJECT
122 
123  public:
125  DtScenarioEventSettingsPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f);
126 
128  virtual ~DtScenarioEventSettingsPage();
129 
131  virtual QIcon icon();
132 
134  virtual QString title();
135 
137  virtual const std::string& pageClassName() const;
138 
140  static const std::string& thePageClassName();
141 
142  protected:
143 
145  virtual void activate();
146 
148  virtual void deactivate();
149 
152  void setupGui();
153 
154  protected:
158 
159  QLayout* myMainLayout;
160  };
161 
164 }

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)