From: nds Date: Tue, 2 Oct 2007 07:45:55 +0000 (+0000) Subject: It make undo for last temporarily integration. X-Git-Tag: TG_Saint_Valentine-Day~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d01596d56cbf15501bb9348a2699b187ff60c041;p=modules%2Fgui.git It make undo for last temporarily integration. --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index b39be0c84..35b80fc39 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -28,12 +28,6 @@ #include #include -#include -#include - -#include -#include - #include #include #include @@ -58,8 +52,6 @@ STD_Application::STD_Application() myEditEnabled( true ) { setDesktop( new STD_MDIDesktop() ); - myTableMgr = 0; - myVTKMgr = 0; } /*!Destructor.*/ @@ -193,16 +185,6 @@ void STD_Application::createActions() tr( "MEN_DESK_EDIT_PASTE" ), tr( "PRP_DESK_EDIT_PASTE" ), Qt::CTRL+Qt::Key_V, desk, false, this, SLOT( onPaste() ) ); - createAction( TableViewId, tr( "Table view" ), - resMgr->loadPixmap( "STD", tr( "ICON_EDIT_COPY" ) ), - tr( "Table view" ), tr( "Table view" ), - Qt::CTRL+Qt::Key_T, desk, false, this, SLOT( onTableView() ) ); - - createAction( VTKViewId, tr( "VTK view" ), - resMgr->loadPixmap( "STD", tr( "ICON_EDIT_COPY" ) ), - tr( "VTK view" ), tr( "VTK view" ), - Qt::CTRL+Qt::Key_V, desk, false, this, SLOT( onVTKView() ) ); - QAction* a = createAction( ViewStatusBarId, tr( "TOT_DESK_VIEW_STATUSBAR" ), QIcon(), tr( "MEN_DESK_VIEW_STATUSBAR" ), tr( "PRP_DESK_VIEW_STATUSBAR" ), Qt::SHIFT+Qt::Key_S, desk, true ); @@ -247,8 +229,6 @@ void STD_Application::createActions() createMenu( EditCopyId, editMenu ); createMenu( EditPasteId, editMenu ); - createMenu( TableViewId, editMenu ); - createMenu( VTKViewId, editMenu ); createMenu( separator(), editMenu ); createMenu( ViewToolBarsId, viewMenu, 0 ); @@ -273,8 +253,6 @@ void STD_Application::createActions() createTool( separator(), stdTBar ); createTool( EditCopyId, stdTBar ); createTool( EditPasteId, stdTBar ); - createTool( TableViewId, stdTBar ); - createTool( VTKViewId, stdTBar ); } /*!Opens new application*/ @@ -598,28 +576,6 @@ void STD_Application::onPaste() { } -void STD_Application::onTableView() -{ - if ( !myTableMgr ) { - if ( !activeStudy() ) - createEmptyStudy(); - myTableMgr = new TableViewer_ViewManager( activeStudy(), desktop() ); - TableViewer_Viewer* vm = new TableViewer_Viewer(); - myTableMgr->setViewModel( vm ); - } - myTableMgr->createView(); -} - -void STD_Application::onVTKView() -{ - if ( !myVTKMgr ) { - if ( !activeStudy() ) - createEmptyStudy(); - myVTKMgr = new VTKViewer_ViewManager( activeStudy(), desktop() ); - } - myVTKMgr->createView(); -} - /*!Sets \a theEnable for menu manager and for tool manager.*/ void STD_Application::setEditEnabled( bool theEnable ) { diff --git a/src/STD/STD_Application.h b/src/STD/STD_Application.h index 614ffc39f..3ff6d57bc 100755 --- a/src/STD/STD_Application.h +++ b/src/STD/STD_Application.h @@ -37,8 +37,6 @@ class SUIT_ToolWindow; class SUIT_Desktop; class SUIT_ViewManager; class SUIT_PopupClient; -class TableViewer_ViewManager; -class VTKViewer_ViewManager; typedef QList ViewManagerList; @@ -53,8 +51,7 @@ class STD_EXPORT STD_Application : public SUIT_Application public: enum { FileNewId, FileOpenId, FileCloseId, FileSaveId, FileSaveAsId, FileExitId, ViewWindowsId, ViewToolBarsId, ViewStatusBarId, NewWindowId, - EditCutId, EditCopyId, EditPasteId, HelpAboutId, - TableViewId, VTKViewId, UserID }; + EditCutId, EditCopyId, EditPasteId, HelpAboutId, UserID }; enum { CloseSave, CloseDiscard, CloseCancel }; @@ -124,8 +121,6 @@ public slots: virtual void onCopy(); virtual void onPaste(); - virtual void onTableView(); - virtual void onVTKView(); virtual void onViewStatusBar( bool ); @@ -173,8 +168,6 @@ private: private: bool myExitConfirm; bool myEditEnabled; - TableViewer_ViewManager* myTableMgr; - VTKViewer_ViewManager* myVTKMgr; }; #if defined WIN32 diff --git a/src/STD/resources/STD.xml b/src/STD/resources/STD.xml index 9674f0247..098792222 100644 --- a/src/STD/resources/STD.xml +++ b/src/STD/resources/STD.xml @@ -15,7 +15,7 @@
- + @@ -30,12 +30,12 @@
- - - - - - + + + + + +
diff --git a/src/STD/resources/STD_msg_en.ts b/src/STD/resources/STD_msg_en.ts index 83316ceae..a1de799cd 100644 --- a/src/STD/resources/STD_msg_en.ts +++ b/src/STD/resources/STD_msg_en.ts @@ -160,6 +160,10 @@ Directory with this name exist on disc. Try to use another name TOT_DESK_EDIT_PASTE Paste + + MEN_DOCKWINDOWS + W&indows + BUT_YES &Yes @@ -238,7 +242,7 @@ Do you want to reload it ? About... - MEN_DESK_VIEW_TOOLBARS + MEN_TOOLBARS T&oolbars