]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI_Main.h
Salome HOME
BugID: IPAL10963, added a method setModifiedFlag to SUPERVGUI_Main and commented...
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_Main.h
index de7bc80862ca2e128c5ec32f9f2f60be2c182bea..7af3055fa5d0d365fbada6645668a016167160df 100644 (file)
@@ -57,11 +57,14 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     SUPERVGUI_Main(SUPERVGraph_ViewFrame*, SUIT_Desktop*/*QAD_Desktop**/, SUPERV_Graph);
     virtual ~SUPERVGUI_Main();
 
+    SUIT_ResourceMgr* resMgr() const;
+
     void run( const bool andSuspend );
     void kill();
     void suspendResume();
     //void stopRestart();
     void openSubGraph(SUPERV_CNode theNode, bool correct = false);
+    void destroySubGraph(QString theSubGraphName); // mkr : IPAL11549
 
     bool putDataStudy(SUPERV_Port port, const char* inout);
 
@@ -131,8 +134,20 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
 
     GraphViewType getViewType() { return myCurrentView; }
 
+    virtual void resizeView( QResizeEvent* theEvent );
+
+    // mkr : PAL8150
+    void setRunTime( QDateTime theRunTime ) { myRunTime = theRunTime; }
+    QDateTime getRunTime() const { return myRunTime; }
+
+    // srn: marks an active study as being modified by the Supervisor
+    // Note: to set the modified flag the method requires that Supervision
+    //       component was previously added to study.
+    static void setModifiedFlag();
+
   signals:
     void KillMyThread(bool theValue);
+    void EventToSync(); // mkr : IPAL11362
 
   public slots:
     void execute(char * theNodeNode, SUPERV::GraphState theNodeState);
@@ -152,6 +167,11 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     void changeDSGraphParameters();
     void onSubGraphClosed( SUIT_ViewWindow* );
     void onSubGraphActivated( SUIT_ViewWindow* );
+
+    void onShowToolbar();
+
+    void onObjectCreatedDeleted(); // mkr : PAL8237
+    void onPutInStudy( QString* ); // mkr : PAL8150
  
   private slots:
     void chooseData(QListViewItem* item);
@@ -162,16 +182,17 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
     void syncNotification();
     bool isFiltered(char* graph, char* node, char* type, char* message, char* sender, long counter, char* date, long stamp);
     void closeEvent(QCloseEvent*);
-
+    void syncPutInStudy(); // mkr : PAL8150
+    
     SUPERV_Graph            dataflow;
 
     QMap<QString, SUIT_ViewWindow*> mySubGraphs;
-    QMap<QString, QString>          mySubGraphMap;
-    SUIT_ViewWindow*                myLastGraph;
+    QMap<QString, QString>  mySubGraphMap;
+    SUIT_ViewWindow*        myLastGraph;
 
-    SUIT_Study*                     study;
-    OB_Browser*                     objectBrowser;
-    LogWindow*                      message;
+    SUIT_Study*             study;
+    OB_Browser*             objectBrowser;
+    LogWindow*              message;
 
     GraphViewType           myCurrentView;
     SUPERVGUI_CanvasArray*  myArray;
@@ -203,8 +224,8 @@ class SUPERVGUI_Main: public SUPERVGraph_View {
 
     SUPERVGUI_Thread*       myThread; 
 
-    QPtrList< char * >                myEventNodes ;
-    QPtrList< SUPERV::GraphState >    myStates ;
+    QPtrList<char*>         myEventNodes ;
+    QPtrList<SUPERV::GraphState> myStates ;
     QTimer*                 myTimer;
 };
 
@@ -222,6 +243,7 @@ class SUPERVGUI_Thread : public QObject, public QThread {
   
  protected:
   virtual void run();
+  void main_thread_run(SUPERV_CNode& aNode, SUPERV::GraphEvent& aEvent, SUPERV::GraphState& aState);
 
  private:
   bool                myIsActive;