Choreonoid  1.8
Slider.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_SLIDER_H
2 #define CNOID_BASE_SLIDER_H
3 
4 #include <cnoid/Signal>
5 #include <QSlider>
6 #include <cnoid/stdx/optional>
7 #include "exportdecl.h"
8 
9 namespace cnoid {
10 
11 class CNOID_EXPORT Slider : public QSlider
12 {
13 public:
14  Slider(QWidget* parent = nullptr);
15  Slider(Qt::Orientation orientation, QWidget* parent = nullptr);
16 
17  SignalProxy<void(int)> sigValueChanged();
18  SignalProxy<void()> sigSliderPressed();
19  SignalProxy<void()> sigSliderReleased();
20 
21 private:
22  stdx::optional<Signal<void(int)>> sigValueChanged_;
23  stdx::optional<Signal<void()>> sigSliderPressed_;
24  stdx::optional<Signal<void()>> sigSliderReleased_;
25 };
26 
27 }
28 
29 #endif
cnoid::Slider
Definition: Slider.h:11
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470