Candidate_v1.7.1
stable
| Line | |
|---|
| 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 |
|
|---|
| 16 | #include <QtGui/QHBoxLayout>
|
|---|
| 17 | #include <QtGui/QSlider>
|
|---|
| 18 | #include <QtGui/QSpinBox>
|
|---|
| 19 |
|
|---|
| 20 | #include <boost/thread/recursive_mutex.hpp>
|
|---|
| 21 |
|
|---|
| 22 | class QtObservedInstanceBoard;
|
|---|
| 23 |
|
|---|
| 24 | class QtTimeLine : public QWidget
|
|---|
| 25 | {
|
|---|
| 26 | Q_OBJECT
|
|---|
| 27 |
|
|---|
| 28 | public:
|
|---|
| 29 | QtTimeLine(QtObservedInstanceBoard *_instanceBoard, QWidget * _parent=0);
|
|---|
| 30 | virtual ~QtTimeLine();
|
|---|
| 31 |
|
|---|
| 32 | protected:
|
|---|
| 33 | virtual void paintEvent(QPaintEvent * event);
|
|---|
| 34 |
|
|---|
| 35 | private slots:
|
|---|
| 36 | void StepUpdate(int position);
|
|---|
| 37 |
|
|---|
| 38 | public slots:
|
|---|
| 39 | void WorldTimeChanged();
|
|---|
| 40 | void MaximumAtomTrajectoryChanged();
|
|---|
| 41 |
|
|---|
| 42 | private:
|
|---|
| 43 | QSlider *slider;
|
|---|
| 44 | QSpinBox *spinbox;
|
|---|
| 45 | QHBoxLayout *layout;
|
|---|
| 46 |
|
|---|
| 47 | //!> instance board with observed world time
|
|---|
| 48 | QtObservedInstanceBoard *instanceBoard;
|
|---|
| 49 |
|
|---|
| 50 | //!> states whether we are expecting a notification from the worldtime
|
|---|
| 51 | bool SetWorldTime_called;
|
|---|
| 52 |
|
|---|
| 53 | mutable boost::recursive_mutex refill_mutex;
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 | #endif /* QTTIMELINE_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.