]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
add a button to show/hide trihedron
authoreap <eap@opencascade.com>
Wed, 8 Jun 2005 12:03:03 +0000 (12:03 +0000)
committereap <eap@opencascade.com>
Wed, 8 Jun 2005 12:03:03 +0000 (12:03 +0000)
src/SVTK/SVTK_ViewWindow.cxx
src/SVTK/SVTK_ViewWindow.h

index eb5df463f888eca61d156a60f986efdd13bd9436..0b1901d8b324ab9bfc5105bd622f7645d3b487be 100755 (executable)
@@ -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]);
index d28786bb037cee8a16857b8ff5f89ccf1cfb9d75..3b4f4c38365533333ed5aadb68c583248b66ecbf 100755 (executable)
@@ -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<int, QtxAction*> ActionsMap;
   
   void createActions();