VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
quickLaunchToolbar.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include <vrvCoreQt/DtToolbar.h>
20 #include <vrvCore/DtUniqueID.h>
21 #include <vrvCore/DtStateView.h>
23 
24 #include <QtWidgets/QWidget>
25 #include <QtWidgets/QToolBar>
26 
27 class QHBoxLayout;
28 class QLabel;
29 class QToolButton;
30 class QBoxLayout;
31 
32 namespace makVrv
33 {
34  class DtDe;
35 }
36 
37 class QTimer;
38 
39 namespace makVrf
40 {
44  {
45  public:
46 
49 
51  virtual ~DtQuickLaunchToolbar();
52 
54  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
55  };
56 
58  {
59  public:
60  DtQtQuickLaunchToolBar(QWidget* p) : QToolBar(p) {};
62 
63  void signalTopLevelChanged(bool b)
64  {
65  emit topLevelChanged(b);
66  }
67  };
68 
70  {
71  Q_OBJECT
72  public:
74  DtQuickLaunchWidget( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
75 
77  virtual ~DtQuickLaunchWidget();
78 
79  protected:
81  virtual void setupUi();
82  virtual void init();
83 
84  virtual void initializeScenarioEvents();
85  virtual void scenarioEventRemoved(makVrv::DtUniqueID);
86  virtual void scenarioEventStarted(makVrv::DtUniqueID);
87  virtual void scenarioEventStopped(makVrv::DtUniqueID);
88  virtual void scenarioEventUpdated(const makVrv::DtStateView<DtVrlinkSimulatedEnvironmentProcess>*);
89 
90  virtual void removeFromOrdinalOrder(QToolButton* b);
91 
92  virtual void initializeGlobalPlans();
93  virtual void clearGlobalPlans();
94  virtual void receivedGlobalPlans(const DtVrfGlobalPlansManager::GlobalPlanInformation&,
95  const std::string&);
96  virtual void addQuickLaunchPlan(makVrv::DtUniqueID,
97  const DtVrfGlobalPlansManager::GlobalPlanWithState&, const std::string& server);
98  virtual void removeQuickLaunchPlan(makVrv::DtUniqueID);
99  virtual void resetSize();
100 
101  virtual void positionButton(int ordinal, QToolButton*);
102  virtual void updateEventButtonStatus(QToolButton* button, const DtRwScenarioEvent& evt);
103 
104  virtual void scenarioEventOptionsChanged();
105 
106  virtual bool anyValidQuickLaunchEvents() const;
107 
108  protected slots:
109  virtual void changeEventStatus();
110  virtual void launchGlobalPlan();
111  virtual void setExpanded(bool);
112  virtual void toolbarAreaChanged(bool);
113 
114  public:
115  QBoxLayout* myMainLayout;
117 
119  {
120  std::string image;
122  };
123 
125  {
126  std::string image;
128  std::string server;
129  };
130 
131  typedef std::map<makVrv::DtUniqueID, QuickLaunchData> QuickLaunchEvents;
133 
134  typedef std::map<makVrv::DtUniqueID, QuickLaunchPlanData> QuickLaunchPlans;
136 
137  typedef std::map<int, std::vector<QToolButton*> > OrdinalOrder;
139 
140  protected:
145  };
146 
148  {
149  public:
151 
152  virtual ~DtQuickLaunchWidgetBuilder();
153 
154  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
155  };
156 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)