Candidate_v1.6.1
ChemicalSpaceEvaluator
Gui_displays_atomic_force_velocity
PythonUI_with_named_parameters
TremoloParser_IncreasedPrecision
Last change
on this file since 2c97ad was 2c97ad, checked in by Frederik Heber <frederik.heber@…>, 7 years ago |
QtTimeLine has an additional QSpinBox.
|
-
Property mode
set to
100644
|
File size:
1.2 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 |
|
---|
[d7e931] | 22 | #include "CodePatterns/Observer/Observer.hpp"
|
---|
| 23 |
|
---|
[2c97ad] | 24 | class QtTimeLine : public QWidget, public Observer
|
---|
[d7e931] | 25 | {
|
---|
| 26 | Q_OBJECT
|
---|
| 27 |
|
---|
| 28 | public:
|
---|
| 29 | QtTimeLine(QWidget * _parent=0);
|
---|
| 30 | virtual ~QtTimeLine();
|
---|
| 31 |
|
---|
| 32 | protected:
|
---|
| 33 | virtual void update(Observable *publisher);
|
---|
| 34 | virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
|
---|
| 35 | virtual void subjectKilled(Observable *publisher);
|
---|
[7516f6] | 36 | virtual void paintEvent(QPaintEvent * event);
|
---|
[d7e931] | 37 |
|
---|
| 38 | private slots:
|
---|
| 39 | void StepUpdate(int position);
|
---|
| 40 |
|
---|
| 41 | private:
|
---|
| 42 | //!> whether AtomObserver knows about us or not
|
---|
[25ce49] | 43 | bool atomobserver_enlisted;
|
---|
| 44 | //!> whether WorldTime knows about us or not
|
---|
| 45 | bool worldtime_enlisted;
|
---|
[7516f6] | 46 |
|
---|
[2c97ad] | 47 | QSlider *slider;
|
---|
| 48 | QSpinBox *spinbox;
|
---|
| 49 | QHBoxLayout *layout;
|
---|
| 50 |
|
---|
| 51 | //!> states whether we are expecting a notification from the worldtime
|
---|
| 52 | bool SetWorldTime_called;
|
---|
| 53 |
|
---|
[7516f6] | 54 | mutable boost::recursive_mutex refill_mutex;
|
---|
[d7e931] | 55 | };
|
---|
| 56 |
|
---|
| 57 | #endif /* QTTIMELINE_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.