]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI.h
Salome HOME
Join modifications from branch BR_3_1_0deb
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI.h
index 0c9649d3d908c61350e6b2bf338b695d9cfca910..2092a9f526ec74f7382da45f8b8062b7f09f4386 100644 (file)
@@ -36,6 +36,7 @@
 #include "SUPERVGUI_Main.h"
 
 #include "SalomeApp_Module.h"
+#include "SALOMEDSClient.hxx"
 
 class SUIT_Study;
 
@@ -110,6 +111,17 @@ class SUPERVGUI: public SalomeApp_Module {
 
     QMap<QString, QString> getInterfaceNameMap() const;
 
+    /*!
+     * \brief The method nullify myInitalViewFrame variable
+     * to avoid using this view frame once more, it is using
+     * after add any node into first new dataflow in study.
+     */
+    void nullifyInitialVF() { if ( myInitialViewFrame ) myInitialViewFrame = 0; }
+
+    // mkr : IPAL10825
+    QColor getIVFBackgroundColor() { return myIVFBackgroundColor; }
+    void   setIVFBackgroundColor( QColor theColor ) { if ( myInitialViewFrame ) myIVFBackgroundColor = theColor; }
+
   signals:
     void KillMainThread(bool theValue);
 
@@ -127,7 +139,7 @@ class SUPERVGUI: public SalomeApp_Module {
       
   protected:
     virtual CAM_DataModel* createDataModel();
-    virtual SalomeApp_Selection* createSelection() const;
+    virtual LightApp_Selection* createSelection() const;
 
   private:
     void loadEngine(SALOME_NamingService* namingService);
@@ -137,7 +149,7 @@ class SUPERVGUI: public SalomeApp_Module {
     // 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 );  
+    bool createDataflow( const NEW_DF_MODE f, bool theInitialDF = false );  
 
     void createSupervAction( const int id, const QString& po_id, const QString& icon_id = QString(""), 
                             const int key = 0, const bool toggle = false );
@@ -154,6 +166,11 @@ class SUPERVGUI: public SalomeApp_Module {
     SUPERVGUI_Main*        main;  // active main    
     QPtrList<SUPERVGUI_Main> myGraphList;
     QMap<QString, QString> myInterfaceNameMap;
+
+    bool                   myFirstActivation;
+    bool                   myAllGraphsClosed;
+    SUPERVGraph_ViewFrame* myInitialViewFrame;
+    QColor                 myIVFBackgroundColor; // mkr : IPAL10825
 };
 
 #endif