: QObject( 0 ),
myStudy( 0 ),
myDesktop( 0 ),
- myStatusLabel( 0 ),
- myIsInitiallyRegistered( false )
+ myStatusLabel( 0 )
{
}
//! Invokes application-specific "Select Directory" dialog and returns the selected directory name.
virtual QString getDirectory( const QString& initial, const QString& caption, QWidget* parent ) = 0;
- //! Perform required actions on the application, just registed in the session
- virtual void Registered() { myIsInitiallyRegistered = true; };
-
signals:
void applicationClosed( SUIT_Application* );
void activated( SUIT_Application* );
protected slots:
virtual void onDesktopActivated();
-protected:
- bool myIsInitiallyRegistered; //<! false before the first application registration in the session
-
private:
SUIT_Study* myStudy;
SUIT_Desktop* myDesktop;
void SUIT_Session::onApplicationActivated( SUIT_Application* app )
{
myActiveApp = app;
- if (app)
- app->Registered();
}
/*!
LightApp_Application::start();
SalomeApp_EventFilter::Init();
-}
-/*!Just registered in the session*/
-void SalomeApp_Application::Registered()
-{
- if (!myIsInitiallyRegistered)
- {
- myIsInitiallyRegistered = true;
+ static bool isFirst = true;
+ if ( isFirst ) {
+ isFirst = false;
- // execute python scripts
QString hdffile;
QStringList pyfiles;
SUIT_ViewManager* newViewManager(const QString&);
void updateSavePointDataObjects( SalomeApp_Study* );
- virtual void Registered();
-
public slots:
virtual bool onOpenDoc( const QString& );
virtual void onLoadDoc();