msgstr "Parent mesh element"
msgid "VVTK_PickingDlg::DISPLAY_PARENT_MESH"
-msgstr "Display parent mesh element"
\ No newline at end of file
+msgstr "Display parent mesh element"
+
+msgid "VisuGUI_Module::TOT_DESK_FILE_SAVE_GUI_STATE"
+msgstr "Save VISU state"
+
+msgid "VisuGUI_Module::MEN_DESK_FILE_SAVE_GUI_STATE"
+msgstr "Save VISU state"
+
+msgid "VisuGUI_Module::PRP_DESK_FILE_SAVE_GUI_STATE"
+msgstr "Saves current state of viewers, displayed objects, etc."
static int MYDEBUG = 0;
#endif
+#define SAVE_VISU_STATE 5090
+
#define GAUSS_NEW_VIEWER 5100
#define GAUSS_CREATE_PRS 5200
#define GAUSS_RENAME 5210
SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
+ // "Save VISU State" command is moved from SalomeApp_Applicaiton
+ createAction( SAVE_VISU_STATE, tr( "TOT_DESK_FILE_SAVE_GUI_STATE" ), QIconSet(),
+ tr( "MEN_DESK_FILE_SAVE_GUI_STATE" ), tr( "PRP_DESK_FILE_SAVE_GUI_STATE" ),
+ 0, getApp()->desktop(), false, getApp(), SLOT( onSaveGUIState() ) );
+ int fileMenu = createMenu( tr( "MEN_DESK_FILE" ), -1 );
+ createMenu( SAVE_VISU_STATE, fileMenu, 9, -1 );
+
QPixmap aPixmap;
aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_GAUSS_NEW_VIEWER"));
createAction( GAUSS_NEW_VIEWER,
int windowMenu = createMenu( tr( "MEN_DESK_WINDOW" ), -1, 100 );
int newWinMenu = createMenu( tr( "MEN_DESK_NEWWINDOW" ), windowMenu, -1, 0 );
createMenu( action( GAUSS_NEW_VIEWER ), newWinMenu, -1 );
-
+
// Add actions to menus
createMenu( tr( "MEN_GAUSS" ), -1, -1, 30 );
//createMenu( GAUSS_CREATE_PRS, aMenuId, 10 );
} // for names/parameters iterator
} // for entries iterator
- // [ update all SVTK/VVTK views
+ // [ update all SVTK/VVTK/Plot2D views
QPtrList<SUIT_ViewManager> lst;
getApp()->viewManagers( lst );
for ( QPtrListIterator<SUIT_ViewManager> it( lst ); it.current(); ++it ) {