]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed bug GVIEW10887 : segmentation should be exclusive
authorouv <ouv@opencascade.com>
Thu, 15 Dec 2005 11:17:16 +0000 (11:17 +0000)
committerouv <ouv@opencascade.com>
Thu, 15 Dec 2005 11:17:16 +0000 (11:17 +0000)
src/VVTK/VVTK_MainWindow.cxx

index a265d21dfa675298c6399b08680c864fcc3e1d75..32c5d36ecb692a84562a2ab18389c464bd2d280f 100644 (file)
@@ -40,6 +40,7 @@
 #include "VVTK_SegmentationCursorDlg.h"
 
 #include "SUIT_ResourceMgr.h"
+#include "SUIT_ToolButton.h"
 #include "SUIT_Accel.h"
 #include "QtxAction.h"
 
@@ -286,7 +287,7 @@ VVTK_MainWindow1
                                            true);
   myPlaneSegmentationAction->setToggleAction(true);
   myPlaneSegmentationAction->setStatusTip(tr("DSC_VVTK_PLANE_SEGMENTATION_SWITCH"));
-  myPlaneSegmentationAction->addTo( myPtsToolBar );
+  //myPlaneSegmentationAction->addTo( myPtsToolBar );
   connect( myPlaneSegmentationAction, SIGNAL( activated() ), this, SLOT( OnSegmentationSwitch() ) );
 
   aPixmap = theResourceMgr->loadPixmap("VISU",tr("ICON_VVTK_SPHERE_SEGMENTATION_SWITCH"));
@@ -299,13 +300,17 @@ VVTK_MainWindow1
                                             true);
   mySphereSegmentationAction->setToggleAction(true);
   mySphereSegmentationAction->setStatusTip(tr("DSC_VVTK_SPHERE_SEGMENTATION_SWITCH"));
-  mySphereSegmentationAction->addTo( myPtsToolBar );
+  //mySphereSegmentationAction->addTo( myPtsToolBar );
   connect( mySphereSegmentationAction, SIGNAL( activated() ), this, SLOT( OnSegmentationSwitch() ) );
 
   mySegmentationCursorDlg = new VVTK_SegmentationCursorDlg( this, "SegmentationCursorDlg" );
   mySegmentationCursorDlg->SetPlaneAction( myPlaneSegmentationAction );
   mySegmentationCursorDlg->SetSphereAction( mySphereSegmentationAction );
   connect( mySegmentationCursorDlg, SIGNAL( scgClose() ), this, SLOT( OnSegmentationSwitch() ) );
+
+  SUIT_ToolButton* aSegmentationButton = new SUIT_ToolButton( myPtsToolBar );
+  aSegmentationButton->AddAction( myPlaneSegmentationAction );
+  aSegmentationButton->AddAction( mySphereSegmentationAction );
 }
 
 void