From: eap Date: Wed, 8 Jun 2005 12:03:03 +0000 (+0000) Subject: add a button to show/hide trihedron X-Git-Tag: T3_0_0_a2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2212aceb514bb29db5bf100592741ae716fd2996;p=modules%2Fgui.git add a button to show/hide trihedron --- diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index eb5df463f..0b1901d8b 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -279,6 +279,13 @@ SVTK_ViewWindow aAction->setStatusTip(tr("DSC_RESET_VIEW")); connect(aAction, SIGNAL(activated()), this, SLOT(onResetView())); myActionsMap[ ResetId ] = aAction; + + // onViewTrihedron: Shows - Hides Trihedron + aAction = new QtxAction(tr("MNU_VIEW_TRIHEDRON"), aResMgr->loadPixmap( "VTKViewer", tr( "ICON_VTKVIEWER_VIEW_TRIHEDRON" ) ), + tr( "MNU_VIEW_TRIHEDRON" ), 0, this); + aAction->setStatusTip(tr("DSC_VIEW_TRIHEDRON")); + connect(aAction, SIGNAL(activated()), this, SLOT(onViewTrihedron())); + myActionsMap[ ViewTrihedronId ] = aAction; } //---------------------------------------------------------------------------- @@ -287,6 +294,7 @@ SVTK_ViewWindow ::createToolBar() { myActionsMap[DumpId]->addTo(myToolBar); + myActionsMap[ViewTrihedronId]->addTo(myToolBar); SUIT_ToolButton* aScaleBtn = new SUIT_ToolButton(myToolBar); aScaleBtn->AddAction(myActionsMap[FitAllId]); diff --git a/src/SVTK/SVTK_ViewWindow.h b/src/SVTK/SVTK_ViewWindow.h index d28786bb0..3b4f4c383 100755 --- a/src/SVTK/SVTK_ViewWindow.h +++ b/src/SVTK/SVTK_ViewWindow.h @@ -136,7 +136,7 @@ private: private: enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, RotationId, - FrontId, BackId, TopId, BottomId, LeftId, RightId, ResetId }; + FrontId, BackId, TopId, BottomId, LeftId, RightId, ResetId, ViewTrihedronId }; typedef QMap ActionsMap; void createActions();