#include "VVTK_SegmentationCursorDlg.h"
#include "SUIT_ResourceMgr.h"
+#include "SUIT_ToolButton.h"
#include "SUIT_Accel.h"
#include "QtxAction.h"
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"));
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