Salome HOME
Memory Leaks
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_Main.h
index ef8bd80d20fa2d0e202267ad5fbd7ac02028af24..274a179848a2a189abcd66bd2562a18a3f6bcb8b 100644 (file)
@@ -84,16 +84,13 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
 
     QString getHashCode() 
       { return myHashCode; };
-
+    
+    bool isDataflowInStudy() const;
     
     bool isEditable() 
       { if (SUPERV_isNull(dataflow)) return false;
       return !dataflow->IsReadOnly(); };
 
-    bool isFromStudy() { return myIsFromStudy; }
-    void setAsFromStudy(bool theToStudy);
-    void checkIsInStudy();
-    
     void addComputeNode(SUPERV_CNode theNode);
     void addControlNode(SUPERV_CNode theStartNode, SUPERV_CNode theEndNode, bool Update);
     void addGOTONode(SUPERV_CNode theNode);
@@ -127,6 +124,9 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
 
     void Editing(); // any Editing operation is to be performed ->
                    // activate Editors data model in Engine
+    bool ReadyToModify(); // must be called before any modification
+                   // operation - asks to kill execution of dataflow.  If returns false -
+                   // modification (==Editing() ) is not allowed.
 
     void removeArrayChild(SUPERV::CNode_ptr theNode);
 
@@ -139,7 +139,7 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     void execute(char * theNodeNode, SUPERV::GraphState theNodeState);
     void sync();
     void syncAsync();
-    bool addStudy();
+    void addDataflowToStudy();
     void insertFile();
     void addNode();
     void changeInformation();
@@ -174,7 +174,7 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     QAD_ObjectBrowser*      objectBrowser;
     QAD_Message*            message;
 
-    GraphViewType   myCurrentView;
+    GraphViewType           myCurrentView;
     SUPERVGUI_CanvasArray*  myArray;
     SUPERVGUI_ArrayView*    myArrayView;
     SUPERVGUI_Canvas*       myCanvas;
@@ -207,9 +207,6 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     QPtrList< char * >                myEventNodes ;
     QPtrList< SUPERV::GraphState >    myStates ;
     QTimer*                 myTimer;
-
-    bool                    myExecuted; // asv 02.02.05 : set to true on first dataflow execution
-                                        // is needed for correct publishing objects in Study
 };
 
 class SUPERVGUI_Thread : public QObject, public QThread {