myMainName->setReadOnly( true );
myMainName->setEnabled( myMode == CreateGroup );
- mySelSubBtn = new QPushButton( tr( "SELECT_SUB_SHAPES" ), aFrame );
+ mySelSubBtn = new QRadioButton (tr( "SELECT_SUB_SHAPES" ), aFrame );
mySelAllBtn = new QPushButton( tr( "SELECT_ALL" ), aFrame );
myAddBtn = new QPushButton( tr( "ADD" ), aFrame );
myRemBtn = new QPushButton( tr( "REMOVE" ), aFrame );
void GroupGUI_GroupDlg::Init()
{
// san -- TODO: clear selected sub-shapes...
-
+ mySelSubBtn->setChecked( true );
if ( myMode == CreateGroup ) {
initName( tr( "GROUP_PREFIX" ) );
if ( send == mySelBtn )
myEditCurrentArgument = myMainName;
- else if ( send == mySelSubBtn || send == mySelAllBtn )
+ else if ( (QRadioButton*)sender() == mySelSubBtn || send == mySelAllBtn )
myEditCurrentArgument = 0;
activateSelection();
class QGroupBox;
class QLineEdit;
class QListBox;
+class QRadioButton;
//=================================================================================
// class : GroupGUI_GroupDlg
QGroupBox* GroupMedium;
QPushButton* mySelBtn;
QLineEdit* myMainName;
- QPushButton* mySelSubBtn;
+ QRadioButton* mySelSubBtn;
QPushButton* mySelAllBtn;
QPushButton* myAddBtn;
QPushButton* myRemBtn;