Salome HOME
Issue #218 Disable stratch is expandable object is in the panel
[modules/shaper.git] / src / XGUI / XGUI_Command.h
index 696518789e5016eb85d83661af23a32e5c7599e2..0f5aa627159862b360ea38b44e0ec56c38600fa7 100644 (file)
@@ -15,17 +15,14 @@ class XGUI_EXPORT XGUI_Command : public QWidgetAction
 {
 Q_OBJECT
  public:
-  XGUI_Command(const QString& theId, QObject * parent, bool isCheckable = false);
-  XGUI_Command(const QString& theId, const QIcon& icon, const QString& text, QObject* parent,
+  XGUI_Command(const QString& theId, const QString& theDocumentKind,
+               QObject * parent, bool isCheckable = false);
+  XGUI_Command(const QString& theId, const QString& theDocumentKind,
+               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 QString& documentKind() const;
   const QStringList& nestedCommands() const;
   void setNestedCommands(const QStringList& myUnblockableCommands);
 
@@ -38,6 +35,8 @@ Q_OBJECT
 
  private:
   bool myCheckable;
+
+  QString myDocumentKind;
   //! List of Ids of commands which WILL NOT be blocked when the command is on.
   QStringList myNestedCommands;
 };