Candidate_v1.6.1
Candidate_v1.7.0
Candidate_v1.7.1
ChemicalSpaceEvaluator
Gui_displays_atomic_force_velocity
PythonUI_with_named_parameters
TremoloParser_IncreasedPrecision
stable
|
Last change
on this file since 8c5e2a was 8c5e2a, checked in by Frederik Heber <frederik.heber@…>, 8 years ago |
|
FIX: QTimeLine now exactly controls world time.
|
-
Property mode
set to
100644
|
|
File size:
992 bytes
|
| 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 |
|
|---|
| 16 | #include <QtGui/QSlider>
|
|---|
| [7516f6] | 17 |
|
|---|
| 18 | #include <boost/thread/recursive_mutex.hpp>
|
|---|
| 19 |
|
|---|
| [d7e931] | 20 | #include "CodePatterns/Observer/Observer.hpp"
|
|---|
| 21 |
|
|---|
| 22 | class QtTimeLine : public QSlider, public Observer
|
|---|
| 23 | {
|
|---|
| 24 | Q_OBJECT
|
|---|
| 25 |
|
|---|
| 26 | public:
|
|---|
| 27 | QtTimeLine(QWidget * _parent=0);
|
|---|
| 28 | virtual ~QtTimeLine();
|
|---|
| 29 |
|
|---|
| 30 | protected:
|
|---|
| 31 | virtual void update(Observable *publisher);
|
|---|
| 32 | virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
|
|---|
| 33 | virtual void subjectKilled(Observable *publisher);
|
|---|
| [7516f6] | 34 | virtual void paintEvent(QPaintEvent * event);
|
|---|
| [d7e931] | 35 |
|
|---|
| 36 | private slots:
|
|---|
| 37 | void StepUpdate(int position);
|
|---|
| 38 |
|
|---|
| 39 | private:
|
|---|
| 40 | //!> whether AtomObserver knows about us or not
|
|---|
| [25ce49] | 41 | bool atomobserver_enlisted;
|
|---|
| 42 | //!> whether WorldTime knows about us or not
|
|---|
| 43 | bool worldtime_enlisted;
|
|---|
| [7516f6] | 44 |
|
|---|
| 45 | mutable boost::recursive_mutex refill_mutex;
|
|---|
| [d7e931] | 46 | };
|
|---|
| 47 |
|
|---|
| 48 | #endif /* QTTIMELINE_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.