Choreonoid  1.8
ActionGroup.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_ACTION_GROUP_H
6 #define CNOID_BASE_ACTION_GROUP_H
7 
8 #include <cnoid/Signal>
9 #include <QActionGroup>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT ActionGroup : public QActionGroup
15 {
16  Q_OBJECT
17 
18 public:
19  ActionGroup(QObject* parent);
20  ~ActionGroup();
21 
22  SignalProxy<void(QAction* action)> sigHovered();
23  SignalProxy<void(QAction* action)> sigTriggered();
24 
25 private Q_SLOTS:
26  void onHovered(QAction* action);
27  void onTriggered(QAction* action);
28 
29 private:
30  Signal<void(QAction*)>* sigHovered_;
31  Signal<void(QAction*)>* sigTriggered_;
32 };
33 
34 }
35 
36 #endif
cnoid::ActionGroup
Definition: ActionGroup.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470