saveDockWindowsState();
CAM_Application::onNewDoc();
-
- if ( !study ) // new study will be create in THIS application
- {
- updateWindows();
- updateViewManagers();
- }
}
/*!
aModule->studyActivated();
}
+void LightApp_Application::studyOpened( SUIT_Study* s )
+{
+ CAM_Application::studyOpened( s );
+
+ updateWindows();
+ updateViewManagers();
+}
+
+void LightApp_Application::studyCreated( SUIT_Study* s )
+{
+ CAM_Application::studyCreated( s );
+
+ updateWindows();
+ updateViewManagers();
+}
+
/*!Gets file filter.
*\retval QString "(*.bin)"
*/
void loadDockWindowsState();
void saveDockWindowsState();
+ virtual void studyOpened( SUIT_Study* );
+ virtual void studyCreated( SUIT_Study* );
+
void updatePreference( const QString&, const QString&, const QString& );
QString defaultModule() const;
else
y = QString( "+%1" ).arg( frame.top() );
- QString geom = QString( "%1x%2%3%4" ).arg( frame.width() ).arg( frame.height() ).arg( x ).arg( y );
+ QString geom = QString( "%1x%2%3%4" ).arg( width() ).arg( height() ).arg( x ).arg( y );
QString state;
switch ( windowState() )
state = Qt::WindowFullScreen;
}
- setGeometry( rect );
+ resize( rect.size() );
+ move( rect.topLeft() );
+
if ( state != Qt::WindowNoState )
setWindowState( state );
}