Salome HOME
Set font of the Root Label the same as in Tree View
[modules/shaper.git] / src / NewGeom / NewGeom_Module.h
index 89cfc45a2b1930599685bfedb4dd86f7a5ba7633..3a2875dde35810aa73df2b804e197ff203dbcb4e 100644 (file)
@@ -57,10 +57,20 @@ Q_OBJECT
   virtual QAction* addFeature(const QString& theWBName,
                               const ActionInfo& theInfo);
 
-  virtual QAction* addNestedFeature(const QString& theWBName,
+  /// Add a nested feature
+  /// \param theWBName a workbench name
+  /// \param theInfo the action  parameters
+  /// \param theNestedActions a list of nested actions
+  virtual QAction* addFeatureOfNested(const QString& theWBName,
                                     const ActionInfo& theInfo,
                                     const QList<QAction*>& theNestedActions);
 
+  //! Returns true if the feature action is a nested action, in other words,
+  //! it is created by addNestedFeature().
+  //! \param theAction - an action of a feature
+  //! returns boolean result
+  virtual bool isFeatureOfNested(const QAction* theAction);
+
   virtual QAction* addDesktopCommand(const QString& theId, const QString& theTitle,
                                      const QString& theTip, const QIcon& theIcon,
                                      const QKeySequence& theKeys, bool isCheckable,
@@ -70,6 +80,11 @@ Q_OBJECT
   virtual void addDesktopMenuSeparator(const char* theMenuSourceText,
                                        const int theMenuPosition = 10);
 
+  /// Add an action to a tool bar
+  /// \param theAction an ation to add
+  /// \param theToolBarTitle a name of tool bar
+  virtual bool addActionInToolbar( QAction* theAction, const QString& theToolBarTitle );
+    
   virtual QMainWindow* desktop() const;
 
   virtual QString commandId(const QAction* theCmd) const;
@@ -156,6 +171,9 @@ Q_OBJECT
   /// Create popup menu manager
   virtual QtxPopupMgr* popupMgr();
 
+  /// Abort all operations
+  virtual bool abortAllOperations();
+
  private:
    /// Create selector for OCC Viewer
    /// \param theMgr view manager