X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_Main.h;h=274a179848a2a189abcd66bd2562a18a3f6bcb8b;hb=ea7f29f75031ca13b9454f5e9ac73730f1f584eb;hp=ef8bd80d20fa2d0e202267ad5fbd7ac02028af24;hpb=097f9667b76db86426a194bd458a3243ce13e4b9;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_Main.h b/src/SUPERVGUI/SUPERVGUI_Main.h index ef8bd80..274a179 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.h +++ b/src/SUPERVGUI/SUPERVGUI_Main.h @@ -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 {