]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
1) IMP NPAL13547: Checkbox to kill SALOME completely.
authormkr <mkr@opencascade.com>
Thu, 8 Nov 2007 11:23:49 +0000 (11:23 +0000)
committermkr <mkr@opencascade.com>
Thu, 8 Nov 2007 11:23:49 +0000 (11:23 +0000)
2) Add SUIT_ViewManager::getId() method.

src/SUIT/SUIT_Session.cxx
src/SUIT/SUIT_Session.h
src/SUIT/SUIT_ViewManager.h

index b42d02b157ae9db2d571b4784768a123dc9d763e..31b38b3a451c6a5400d4a21ad3d342c6410ebfde 100755 (executable)
@@ -47,7 +47,8 @@ SUIT_Session::SUIT_Session()
 myResMgr( 0 ),
 myHandler( 0 ),
 myActiveApp( 0 ),
-myExitStatus( FROM_GUI )
+myExitStatus( FROM_GUI ),
+myServersShutdown ( true )
 {
   SUIT_ASSERT( !mySession )
 
@@ -260,6 +261,23 @@ void SUIT_Session::closeSession( int mode )
   }
 }
 
+/*!
+  Set a flag to shutdown or not standalone servers at exit of application.
+*/
+void SUIT_Session::serversShutdown( bool theVal ) 
+{
+  myServersShutdown = theVal;
+}
+
+/*!
+  \retval Return TRUE, if standalone servers will be shutdown at exit of application,
+                 FALSE otherwise.
+*/
+bool SUIT_Session::isServersShutdown() const
+{
+  return myServersShutdown;
+}
+
 /*! \retval return myHandler*/
 SUIT_ExceptionHandler* SUIT_Session::handler() const
 {
index 840de59278bdb8935bad7aaf03ba8146464dac0a..1565fc40e659b7aa123c2131fdc1be8235732633 100755 (executable)
@@ -71,6 +71,8 @@ public:
   SUIT_ResourceMgr*            resourceMgr() const;
 
   void                         closeSession( int mode = ASK );
+  void                         serversShutdown( bool theVal );
+  bool                         isServersShutdown() const;
 
   SUIT_ExceptionHandler*       handler() const;
 
@@ -108,6 +110,7 @@ private:
   static SUIT_Session*         mySession;
 
   int                          myExitStatus;
+  bool                         myServersShutdown;
 };
 
 #endif
index 9fdd2ecd83f2341975db38d6bac413a884386654..ced80a1c7fa0c80a9d51f099d02744d638b9936e 100755 (executable)
@@ -68,6 +68,8 @@ public:
   virtual void     setShown( const bool );
   virtual void     setDestructiveClose( const bool );
 
+  int              getId() const { return myId; }
+
 public slots:
   void             createView();
   void             closeAllViews();