source: src/UIElements/Views/Qt4/QtTimeLine.hpp@ 2c97ad

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
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#include "CodePatterns/Observer/Observer.hpp"
23
24class QtTimeLine : public QWidget, public Observer
25{
26 Q_OBJECT
27
28public:
29 QtTimeLine(QWidget * _parent=0);
30 virtual ~QtTimeLine();
31
32protected:
33 virtual void update(Observable *publisher);
34 virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
35 virtual void subjectKilled(Observable *publisher);
36 virtual void paintEvent(QPaintEvent * event);
37
38private slots:
39 void StepUpdate(int position);
40
41private:
42 //!> whether AtomObserver knows about us or not
43 bool atomobserver_enlisted;
44 //!> whether WorldTime knows about us or not
45 bool worldtime_enlisted;
46
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
54 mutable boost::recursive_mutex refill_mutex;
55};
56
57#endif /* QTTIMELINE_HPP_ */
Note: See TracBrowser for help on using the repository browser.