From 3d374e33e62465bbfbec7cc7a443935304947193 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 16 Sep 2010 08:45:52 +0000 Subject: [PATCH] *** empty log message *** --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 19 ++++++++++++++++++- src/OCCViewer/resources/OCCViewer_msg_en.ts | 20 ++++++++++++++++---- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index fd566cb15..8f66f23ff 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -1164,7 +1164,22 @@ void OCCViewer_ViewWindow::createActions() */ void OCCViewer_ViewWindow::createToolBar() { - int tid = toolMgr()->createToolBar( tr( "LBL_TOOLBAR_LABEL" ), false ); + QString aToolbarName; + switch (my2dMode) { + case XYPlane: + aToolbarName = tr( "LBL_XYTOOLBAR_LABEL" ); + break; + case XZPlane: + aToolbarName = tr( "LBL_XZTOOLBAR_LABEL" ); + break; + case YZPlane: + aToolbarName = tr( "LBL_YZTOOLBAR_LABEL" ); + break; + default: + aToolbarName = tr( "LBL_3DTOOLBAR_LABEL" ); + } + + int tid = toolMgr()->createToolBar( aToolbarName, false ); toolMgr()->append( DumpId, tid ); toolMgr()->append( SwitchInteractionStyleId, tid ); @@ -1973,6 +1988,7 @@ void OCCViewer_ViewWindow::setMaximized(bool toMaximize, bool toSendSignal) SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr(); if ( toMaximize ) { anAction->setText( tr( "MNU_MINIMIZE_VIEW" ) ); + anAction->setToolTip( tr( "MNU_MINIMIZE_VIEW" ) ); anAction->setIcon( aResMgr->loadPixmap( "OCCViewer", tr( "ICON_OCCVIEWER_MINIMIZE" ) ) ); anAction->setStatusTip( tr( "DSC_MINIMIZE_VIEW" ) ); if (toSendSignal) { @@ -1981,6 +1997,7 @@ void OCCViewer_ViewWindow::setMaximized(bool toMaximize, bool toSendSignal) } else { anAction->setText( tr( "MNU_MAXIMIZE_VIEW" ) ); + anAction->setToolTip( tr( "MNU_MAXIMIZE_VIEW" ) ); anAction->setIcon( aResMgr->loadPixmap( "OCCViewer", tr( "ICON_OCCVIEWER_MAXIMIZE" ) ) ); anAction->setStatusTip( tr( "DSC_MAXIMIZE_VIEW" ) ); if (toSendSignal) { diff --git a/src/OCCViewer/resources/OCCViewer_msg_en.ts b/src/OCCViewer/resources/OCCViewer_msg_en.ts index 0019b35dd..764efc208 100644 --- a/src/OCCViewer/resources/OCCViewer_msg_en.ts +++ b/src/OCCViewer/resources/OCCViewer_msg_en.ts @@ -213,8 +213,20 @@ Restore view - LBL_TOOLBAR_LABEL - View Operations + LBL_XYTOOLBAR_LABEL + XY View Operations + + + LBL_XZTOOLBAR_LABEL + XZ View Operations + + + LBL_YZTOOLBAR_LABEL + YZ View Operations + + + LBL_3DTOOLBAR_LABEL + 3D View Operations DSC_BACK_VIEW @@ -254,7 +266,7 @@ DSC_MINIMIZE_VIEW - Minimize view + Set axonometric projections MNU_MAXIMIZE_VIEW @@ -262,7 +274,7 @@ MNU_MINIMIZE_VIEW - Minimize + Axonometric views -- 2.39.2