VR-Forces 4.1.1 Class Documentation
DtSimulationTimeScaleWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSimulationTimeScaleWidget.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrvUtil/signalslib.h>
19 
20 #include <vrvCoreQt/DtToolbar.h>
22 
23 #include <QtGui/QValidator>
24 
25 class QHBoxLayout;
26 class QLineEdit;
27 class QSlider;
28 class QLabel;;
29 
30 namespace makVrv
31 {
32  class DtDe;
33  class DtPopupToolbarButton;
34  class DtPopupToolbar;
35 }
36 
37 namespace makVrf
38 {
39  class DtSimulationTimeScaleWidgetLogic;
40 
45  {
46  public:
47 
50 
53 
55  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
56 
57  };
58 
61  : public QWidget
63  {
64  Q_OBJECT
65 
66  public:
68  DtSimulationTimeScaleWidgetSlider( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
69 
72 
73  public:
75  virtual void setTimeMultiplier(double multiplier);
76  virtual double timeMultiplier() const;
77 
78  virtual void setTimeMultiplier(int tick, double multiplier);
79 
81  virtual void setRange(int low, int high, int tickInterval = 1);
82 
84  virtual void setValidatorRange(double low, double high);
85 
87  virtual void range(int& low, int& high) const;
88 
90  virtual void setEnabled(bool);
91 
93  virtual bool enabled() const;
94 
95  protected:
97  virtual void setupGui();
98 
99  protected slots:
100  virtual void changeTimeMultiplier(int);
101  virtual void changeTimeMultiplier(const QString&);
102 
103  public:
105  QDoubleValidator myDoubleValidator;
108  };
109 
112  {
113  Q_OBJECT
114  public:
116  DtSimulationTimeScaleWidget( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
117 
119  virtual ~DtSimulationTimeScaleWidget();
120 
122  virtual void setTimeMultiplier(double multiplier);
123  virtual double timeMultiplier() const;
124 
125  protected:
126  void setupGui();
127 
128  protected:
130 
131  public:
134  };
135 
137  {
138 
139  public:
140 
142 
144 
145  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
146  };
147 }
148 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)