Choreonoid  1.8
CheckBox.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_CHECK_BOX_H
6 #define CNOID_BASE_CHECK_BOX_H
7 
8 #include <cnoid/Signal>
9 #include <QCheckBox>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT CheckBox : public QCheckBox
15 {
16  Q_OBJECT
17 
18 public:
19  CheckBox(QWidget* parent = 0);
20  CheckBox(const QString& text, QWidget* parent = 0);
21 
22  SignalProxy<void(int)> sigStateChanged();
23  SignalProxy<void(bool)> sigToggled();
24 
25 private Q_SLOTS:
26  void onStateChanged(int state);
27  void onToggled(bool checked);
28 
29 private:
30  Signal<void(int)> sigStateChanged_;
31  Signal<void(bool)> sigToggled_;
32  bool sigStateChangedConnected;
33  bool sigButtonToggledConnected;
34 };
35 
36 }
37 
38 #endif
cnoid::CheckBox
Definition: CheckBox.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470