saveDockWindowsState();
+ if ( infoPanel() )
+ infoPanel()->clear();
+
bool status = CAM_Application::activateModule( modName );
updateModuleActions();
myWin.insert( id, wid );
QtxDockWidget* dock = new QtxDockWidget( true, desktop() );
+ if ( id == WT_InfoPanel ) {
+ // Info panel's position is strongly limited to the right area;
+ // It is not movable and not floatable.
+ dock->setAllowedAreas( Qt::RightDockWidgetArea );
+ dock->setFeatures( QDockWidget::DockWidgetClosable );
+ }
+ else {
+ dock->setFeatures( QDockWidget::AllDockWidgetFeatures );
+ }
connect( dock, SIGNAL( destroyed( QObject* ) ), this, SLOT( onWCDestroyed( QObject* ) ) );
- dock->setFeatures( QDockWidget::AllDockWidgetFeatures );
dock->setObjectName( wid->objectName().isEmpty() ? QString( "window_%1" ).arg( id ) :
QString( "%1Dock" ).arg( wid->objectName() ) );
dock->setWidget( wid );
#endif
if ( activeStudy() ) {
aMap.insert( WT_ObjectBrowser, Qt::LeftDockWidgetArea );
+ aMap.insert( WT_InfoPanel, Qt::RightDockWidgetArea );
// aMap.insert( WT_LogWindow, Qt::DockBottom );
}
}
}
loadDockWindowsState();
+
+ if (!activeModule() && infoPanel() ) {
+ infoPanel()->clear();
+ infoPanel()->addAction( action(ModulesListId) );
+ }
}
/*!
<source>OBJECT_BROWSER</source>
<translation>Object Browser</translation>
</message>
+ <message>
+ <source>INFO_PANEL</source>
+ <translation>Help panel</translation>
+ </message>
<message>
<source>PRP_DESK_PREFERENCES</source>
<translation>Allow to change the preferences</translation>
<source>OBJECT_BROWSER</source>
<translation>Arbre d'étude</translation>
</message>
+ <message>
+ <source>INFO_PANEL</source>
+ <translation type="unfinished">Help panel</translation>
+ </message>
<message>
<source>PRP_DESK_PREFERENCES</source>
<translation>Permettre de changer les préférences</translation>
<source>OBJECT_BROWSER</source>
<translation>オブジェクトブラウザー</translation>
</message>
+ <message>
+ <source>INFO_PANEL</source>
+ <translation type="unfinished">Help panel</translation>
+ </message>
<message>
<source>PRP_DESK_PREFERENCES</source>
<translation>設定を変更することができます。</translation>