- XGUI_Command(QObject * parent);
- XGUI_Command(const QIcon& icon, const QString& text, QObject* parent);
- ~XGUI_Command();
+ XGUI_Command(const QString& theId, QObject * parent, bool isCheckable = false);
+ XGUI_Command(const QString& theId, const QIcon& icon, const QString& text, QObject* parent, bool isCheckable = false);
+ ~XGUI_Command();
+
+ //! Returns true if the command is enabled
+ virtual bool enabled() const;
+
+ //! Set the command enabled
+ virtual void enable();
+
+ //! Set the command disabled
+ virtual void disable();
+
+ //! Returns Id of the command
+ virtual QString id() const
+ {
+ return myId;
+ }
+
+ const QStringList& unblockableCommands() const;
+ void setUnblockableCommands(const QStringList& myUnblockableCommands);
+
+ //! Connect the command to a slot
+ virtual void connectTo(const QObject* theResiver, const char* theSlot);