Choreonoid  1.8
SpinBox.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_SPINBOX_H
2 #define CNOID_BASE_SPINBOX_H
3 
4 #include <cnoid/Signal>
5 #include <QSpinBox>
6 #include <cnoid/DoubleSpinBox> // For backward compatibility
7 #include <cnoid/stdx/optional>
8 #include "exportdecl.h"
9 
10 namespace cnoid {
11 
12 class CNOID_EXPORT SpinBox : public QSpinBox
13 {
14 public:
15  SpinBox(QWidget* parent = nullptr);
16 
17  SignalProxy<void(int)> sigValueChanged();
18  SignalProxy<void()> sigEditingFinished();
19 
20 private:
21  stdx::optional<Signal<void(int)>> sigValueChanged_;
22  stdx::optional<Signal<void()>> sigEditingFinished_;
23 };
24 
25 }
26 
27 #endif
cnoid::SpinBox
Definition: SpinBox.h:12
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470