Choreonoid  1.8
Dial.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_DIAL_H
6 #define CNOID_BASE_DIAL_H
7 
8 #include <cnoid/Signal>
9 #include <QDial>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT Dial : public QDial
15 {
16  Q_OBJECT
17 
18 public:
19  Dial(QWidget* parent = 0);
20  void setValue(double value);
21  double value();
22 
23  SignalProxy<void(double)> sigValueChanged();
24 
25 private Q_SLOTS:
26  void onValueChanged(int value);
27 
28 private:
29  Signal<void(double)> sigValueChanged_;
30  double increasingValue;
31  int preValue;
32  bool isSigValueChangedConnected;
33 };
34 
35 }
36 
37 #endif
cnoid::Dial
Definition: Dial.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470