4 #include <QWidgetAction>
6 #define MIN_BUTTON_HEIGHT 18
7 #define MIN_BUTTON_WIDTH 40
10 class XGUI_Command : public QWidgetAction
14 XGUI_Command(const QString& theId, QObject * parent);
15 XGUI_Command(const QString& theId, const QIcon& icon, const QString& text, QObject* parent);
18 virtual bool enabled() const;
19 virtual void enable();
20 virtual void disable();
21 virtual QString getId() const { return myId; }
23 virtual void connectTo(const QObject* theResiver, const char* theSlot);
26 virtual QWidget* createWidget(QWidget* theParent);