source: src/UIElements/Views/Qt4/QtTimeLine.hpp@ f2d5ce

Candidate_v1.7.1 stable
Last change on this file since f2d5ce was f2d5ce, checked in by Frederik Heber <frederik.heber@…>, 3 weeks ago

QtTimeLine no longers queries WorldTime directly.

  • Property mode set to 100644
File size: 1.0 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
22class QtObservedInstanceBoard;
23
24class QtTimeLine : public QWidget
25{
26 Q_OBJECT
27
28public:
29 QtTimeLine(QtObservedInstanceBoard *_instanceBoard, QWidget * _parent=0);
30 virtual ~QtTimeLine();
31
32protected:
33 virtual void paintEvent(QPaintEvent * event);
34
35private slots:
36 void StepUpdate(int position);
37
38public slots:
39 void WorldTimeChanged();
40 void MaximumAtomTrajectoryChanged();
41
42private:
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.