From: ouv Date: Thu, 15 Dec 2005 11:17:16 +0000 (+0000) Subject: Fixed bug GVIEW10887 : segmentation should be exclusive X-Git-Tag: TG-D5-38-2003_D2005-20-12~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f6d52c468e716d4a14f5cb1890830c49e8223cb1;p=modules%2Fvisu.git Fixed bug GVIEW10887 : segmentation should be exclusive --- diff --git a/src/VVTK/VVTK_MainWindow.cxx b/src/VVTK/VVTK_MainWindow.cxx index a265d21d..32c5d36e 100644 --- a/src/VVTK/VVTK_MainWindow.cxx +++ b/src/VVTK/VVTK_MainWindow.cxx @@ -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