5 #ifndef CNOID_BASE_ACTION_H
6 #define CNOID_BASE_ACTION_H
8 #include <cnoid/Signal>
10 #include "exportdecl.h"
14 class CNOID_EXPORT
Action :
public QAction
20 Action(
const QString& text, QObject* parent);
21 Action(
const QIcon& icon, QObject* parent);
22 Action(
const QIcon& icon,
const QString& text, QObject* parent);
29 void onTriggered(
bool checked);
30 void onToggled(
bool checked);
33 Signal<void(
void)>* sigTriggered_;
34 Signal<void(
bool)>* sigToggled_;