Choreonoid  1.8
ButtonGroup.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_BUTTON_GROUP_H
6 #define CNOID_BASE_BUTTON_GROUP_H
7 
8 #include <cnoid/Signal>
9 #include <QButtonGroup>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT ButtonGroup : public QButtonGroup
15 {
16  Q_OBJECT
17 
18 public:
19  ButtonGroup(QObject* parent = 0);
20 
21  SignalProxy<void(int id)> sigButtonClicked();
22  SignalProxy<void(int id, bool checked)> sigButtonToggled();
23 
24 private Q_SLOTS:
25  void onButtonClicked(int id);
26  void onButtonToggled(int id, bool checked);
27 
28 private:
29  Signal<void(int id)> sigButtonClicked_;
30  Signal<void(int id, bool checked)> sigButtonToggled_;
31  bool sigButtonClickedConnected;
32  bool sigButtonToggledConnected;
33 };
34 
35 }
36 
37 #endif
cnoid::ButtonGroup
Definition: ButtonGroup.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470