]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #862: new implementation of operations abort on save
authorasl <asl@opencascade.com>
Tue, 1 Sep 2015 07:09:59 +0000 (10:09 +0300)
committerasl <asl@opencascade.com>
Wed, 2 Sep 2015 09:19:26 +0000 (12:19 +0300)
src/NewGeom/NewGeom_Module.cpp
src/NewGeom/NewGeom_Module.h

index dae10ab346092acb362abc9a5945eea7d404e451..18188e57554be9bf8a7ec8bad0c4ebeb2d7aff09 100644 (file)
@@ -125,7 +125,6 @@ void NewGeom_Module::initialize(CAM_Application* theApp)
   if (anApp)
   {
     connect(anApp, SIGNAL(preferenceResetToDefaults()), this, SLOT(onDefaultPreferences()));
-    connect(anApp, SIGNAL(abortAllOperations( bool& )), this, SLOT(onAbortAllOperations( bool& )));
   }
 }
 
@@ -626,7 +625,7 @@ void NewGeom_Module::inspectSalomeModules()
   }
 }
 
-void NewGeom_Module::onAbortAllOperations( bool& isNextOperationAllowed )
+bool NewGeom_Module::abortAllOperations()
 {
-  isNextOperationAllowed = workshop()->operationMgr()->abortAllOperations();
+  return workshop()->operationMgr()->abortAllOperations();
 }
index 2275931fedb2d05c58dee343e304634eb7e2aec1..6024fa843ee9d90fa7bfb5b8c700ec25bc9e0c44 100644 (file)
@@ -157,8 +157,6 @@ Q_OBJECT
   /// Obtains the current application and updates its actions
   void onUpdateCommandStatus();
 
-  void onAbortAllOperations( bool& );
-
  protected:
    /// Create data model
   CAM_DataModel* createDataModel();
@@ -166,6 +164,8 @@ Q_OBJECT
   /// Create popup menu manager
   virtual QtxPopupMgr* popupMgr();
 
+  virtual bool abortAllOperations();
+
  private:
    /// Create selector for OCC Viewer
    /// \param theMgr view manager