source: src/UIElements/Views/Qt4/QtTimeLine.hpp@ 8c5e2a

Candidate_v1.6.1 ChemicalSpaceEvaluator Gui_displays_atomic_force_velocity PythonUI_with_named_parameters TremoloParser_IncreasedPrecision
Last change on this file since 8c5e2a was 8c5e2a, checked in by Frederik Heber <frederik.heber@…>, 7 years ago

FIX: QTimeLine now exactly controls world time.

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