Salome HOME
Issue #355 Delete: elements of sketch and constraints
[modules/shaper.git] / src / XGUI / XGUI_Workshop.h
index 34ce06b91568e4483d9c0d03e458429d644d9bd4..80aa6d2f8358d405b313f1a48f18a8b770feae1f 100644 (file)
@@ -41,6 +41,7 @@ class Config_PointerMessage;
 
 class QWidget;
 class QDockWidget;
+class QMainWindow;
 
 class ModelAPI_ObjectUpdatedMessage;
 class ModelAPI_ObjectDeletedMessage;
@@ -149,6 +150,10 @@ Q_OBJECT
     return myModuleConnector;
   }
 
+  /// Returns a desktop
+  /// \return a desktop instance
+  QMainWindow* desktop() const;
+
   //! Returns icon name according to feature
   static QIcon featureIcon(const FeaturePtr& theFeature);
 
@@ -333,9 +338,9 @@ signals:
   /// \param theOpertion an aborted operation
   void onOperationAborted(ModuleBase_Operation* theOperation);
 
-  /// Process context menu command
-  /// \param theId id of the command
-  /// \param isChecked is checked flag
+  /// Slot, which reacts to the context popup menu call
+  /// \param theId the data value of the clicked action
+  /// \param isChecked a state of toggle if the action is checkable
   void onContextMenuCommand(const QString& theId, bool isChecked);
 
   /// Processing of values changed in model widget