4 #include "XGUI_Interfaces.h"
6 #include <QWidgetAction>
8 #define MIN_BUTTON_HEIGHT 18
9 #define MIN_BUTTON_WIDTH 40
12 class XGUI_Command : public QWidgetAction, public IFeatureMenu
16 XGUI_Command(const QString& theId, QObject * parent);
17 XGUI_Command(const QString& theId, const QIcon& icon, const QString& text, QObject* parent);
20 virtual bool enabled() const;
21 virtual void enable();
22 virtual void disable();
23 virtual QString getId() const { return myId; }
25 virtual void connectTo(const QObject* theResiver, const char* theSlot);
28 virtual QWidget* createWidget(QWidget* theParent);