Choreonoid  1.8
FloatingNumberBox.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_FLOATING_NUMBER_BOX_H
6 #define CNOID_BASE_FLOATING_NUMBER_BOX_H
7 
8 #include <cnoid/Signal>
9 #include <cnoid/FloatingNumberString>
10 #include <QLineEdit>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class CNOID_EXPORT FloatingNumberBox : public QLineEdit
16 {
17  Q_OBJECT
18 
19 public:
20  FloatingNumberBox(QWidget* parent = 0);
21 
23  return sigValueChanged_;
24  }
25 
26  void setValue(double v);
27  double value() const;
28 
29 private Q_SLOTS:
30  void onEditingFinishded();
31 
32 private:
33  Signal<void(int)> sigValueChanged_;
34  QString oldText;
35  FloatingNumberString value_;
36 };
37 
38 }
39 
40 #endif
cnoid::FloatingNumberString
Definition: FloatingNumberString.h:24
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::FloatingNumberBox
Definition: FloatingNumberBox.h:15
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470
cnoid::FloatingNumberBox::sigValueChanged
SignalProxy< void(int)> sigValueChanged()
Definition: FloatingNumberBox.h:22