study(0),
browser(0),
myFirstActivation(true),
+ myAllGraphsClosed(false),
myInitialViewFrame(0)
//info(0)
{
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
this, SLOT( setMain( SUIT_ViewWindow* ) ) );
- if ( myFirstActivation )
+ if ( myFirstActivation ) {
+ myAllGraphsClosed = false;
// create new empty dataflow
createDataflow( New, true );
+ }
return true;
}
this, SLOT( setMain( SUIT_ViewWindow* ) ) );
//---------------------------------------
- myFirstActivation = false;
+ if ( !myAllGraphsClosed )
+ myFirstActivation = false;
return SalomeApp_Module::deactivateModule( theStudy );
}
SUIT_ViewWindow* SUPERVGUI::createGraph() {
SUPERVGraph_ViewManager* aVM = new SUPERVGraph_ViewManager( study, application()->desktop(), new SUPERVGraph_Viewer() );
+ (( SalomeApp_Application* )application())->addViewManager( aVM );
SUIT_ViewWindow* aVW = aVM->createViewWindow();
if ( aVW ) {
connect( aVM,
}
}
}
+ if ( myGraphList.isEmpty() ) {
+ myAllGraphsClosed = true;
+ myFirstActivation = true;
+ }
}
void SUPERVGUI::setMain( SUIT_ViewWindow* w) {