Salome HOME
Memory Leaks
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI.h
index 977e71950a4604695d7cc88621c06eea5ec9faba..32b6b231b64104eb72f363de2c4c6beef4ff3b36 100644 (file)
@@ -100,16 +100,34 @@ class SUPERVGUI: public SALOMEGUI {
     */
     void whatIsSelected(const Handle(SALOME_InteractiveObject)& theObj, bool& theIsOwner, bool& theIsDataflow);
 
+    /* asv : bug [VSR Bugs and Improvements in Supervisor] 1.8 : when exporting a file, 
+       a backup copy of an existing file must be created (in case Export fails..)
+       This method creates a backup file and returns its name or QString::null if it fails
+       Function is static because it is called from 
+       SUPERVGUI::exportDataflow() and SUPERVGUI_CanvasMacroNode::exportDataflow()    
+    */
+    static QString createBackupFile( const QString& theOriginalFileName );
+
+  signals:
+    void KillMainThread(bool theValue);
+
   private slots:
     void setMain(QWidget* w);
     void displayDataflow();
     void renameDataflow();
     void deleteObject();
-    void onGraphClosed(QAD_StudyFrame* );
+    void onGraphClosed(QAD_ViewFrame* );
 
   private:
     void loadEngine(SALOME_NamingService* namingService);
 
+    // enumeration used in newDataflow() method
+    enum NEW_DF_MODE { Import, Modify, New }; 
+    // method called from importDataflow(), modifyDataflow(), newDataflow() with
+    // different modes.  The behavior of the function is very similar in all 3 cases, 
+    // but some differences still exist.  These differences are implemented using NEW_DF_MODE param.
+    bool createDataflow( const NEW_DF_MODE f );  
+
     static int             factory;
     QAD_Desktop*           desktop;
     QAD_Study*             study;