- 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();
+
+ //VSV: Don't use this method for compatibility with SALOME. Use the construction below
+ /*virtual QString id() const
+ {
+ return data().toString();
+ }*/
+
+ const QStringList& nestedCommands() const;
+ void setNestedCommands(const QStringList& myUnblockableCommands);
+
+ //! Connect the command to a slot
+ virtual void connectTo(const QObject* theResiver, const char* theSlot);