source:
src/UIElements/Views/Qt4/QtTimeLine.hpp@
f2d5ce
| Last change on this file since f2d5ce was f2d5ce, checked in by , 3 weeks ago | |
|---|---|
|
|
| File size: 1.0 KB | |
| Rev | Line | |
|---|---|---|
| [d7e931] | 1 | /* |
| 2 | * QtTimeLine.hpp | |
| 3 | * | |
| 4 | * Created on: Jul 11, 2013 | |
| 5 | * Author: heber | |
| 6 | */ | |
| 7 | ||
| 8 | #ifndef QTTIMELINE_HPP_ | |
| 9 | #define QTTIMELINE_HPP_ | |
| 10 | ||
| 11 | // include config.h | |
| 12 | #ifdef HAVE_CONFIG_H | |
| 13 | #include <config.h> | |
| 14 | #endif | |
| 15 | ||
| [2c97ad] | 16 | #include <QtGui/QHBoxLayout> |
| [d7e931] | 17 | #include <QtGui/QSlider> |
| [2c97ad] | 18 | #include <QtGui/QSpinBox> |
| [7516f6] | 19 | |
| 20 | #include <boost/thread/recursive_mutex.hpp> | |
| 21 | ||
| [f2d5ce] | 22 | class QtObservedInstanceBoard; |
| [d7e931] | 23 | |
| [f2d5ce] | 24 | class QtTimeLine : public QWidget |
| [d7e931] | 25 | { |
| 26 | Q_OBJECT | |
| 27 | ||
| 28 | public: | |
| [f2d5ce] | 29 | QtTimeLine(QtObservedInstanceBoard *_instanceBoard, QWidget * _parent=0); |
| [d7e931] | 30 | virtual ~QtTimeLine(); |
| 31 | ||
| 32 | protected: | |
| [7516f6] | 33 | virtual void paintEvent(QPaintEvent * event); |
| [d7e931] | 34 | |
| 35 | private slots: | |
| 36 | void StepUpdate(int position); | |
| 37 | ||
| [f2d5ce] | 38 | public slots: |
| 39 | void WorldTimeChanged(); | |
| 40 | void MaximumAtomTrajectoryChanged(); | |
| [7516f6] | 41 | |
| [f2d5ce] | 42 | private: |
| [2c97ad] | 43 | QSlider *slider; |
| 44 | QSpinBox *spinbox; | |
| 45 | QHBoxLayout *layout; | |
| 46 | ||
| [f2d5ce] | 47 | //!> instance board with observed world time |
| 48 | QtObservedInstanceBoard *instanceBoard; | |
| 49 | ||
| [2c97ad] | 50 | //!> states whether we are expecting a notification from the worldtime |
| 51 | bool SetWorldTime_called; | |
| 52 | ||
| [7516f6] | 53 | mutable boost::recursive_mutex refill_mutex; |
| [d7e931] | 54 | }; |
| 55 | ||
| 56 | #endif /* QTTIMELINE_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.
