- GroupContent = new QGroupBox( this, "GroupContent" );
- GroupContent->setTitle( tr( "SMESH_CONTENT" ) );
- GroupContent->setColumnLayout(0, Qt::Vertical );
- GroupContent->layout()->setSpacing( 0 );
- GroupContent->layout()->setMargin( 0 );
- GroupContentLayout = new QGridLayout( GroupContent->layout() );
- GroupContentLayout->setAlignment( Qt::AlignTop );
- GroupContentLayout->setSpacing( 6 );
- GroupContentLayout->setMargin( 11 );
-
- QFrame* anIds = new QFrame(GroupContent, "anIds");
- QGridLayout* aLayout = new QGridLayout(anIds, 1, 3);
- aLayout->setSpacing(6);
- aLayout->setAutoAdd(false);
-
- TextLabelIds = new QLabel( anIds, "TextLabelIds" );
- TextLabelIds->setText( tr( "SMESH_ID_NODES" ) );
- TextLabelIds->setFixedWidth(74);
- aLayout->addWidget( TextLabelIds, 0, 0 );
-
- SelectElementsButton = new QPushButton( anIds, "SelectElementsButton" );
- SelectElementsButton->setText( tr( "" ) );
- SelectElementsButton->setPixmap( image0 );
- SelectElementsButton->setToggleButton( FALSE );
- aLayout->addWidget( SelectElementsButton, 0, 1 );
-
- LineEditElements = new QLineEdit( anIds, "LineEditElements" );
- LineEditElements->setValidator( new SMESHGUI_IdValidator( this, "validator" ));
- aLayout->addWidget( LineEditElements, 0, 2 );
-
- GroupContentLayout->addMultiCellWidget(anIds, 0, 0, 0, 1);
-
- myFacesByNodesLabel = new QLabel(GroupContent, "faces by nodes label");
- myFacesByNodesLabel->setText(tr("FACES_BY_NODES"));
- GroupContentLayout->addWidget( myFacesByNodesLabel, 1, 0 );
-
- myFacesByNodes = new QListBox(GroupContent, "faces by nodes list");
- myFacesByNodes->setSelectionMode(QListBox::Extended);
- myFacesByNodes->setMinimumHeight(150);
- GroupContentLayout->addMultiCellWidget( myFacesByNodes, 2, 4, 0, 0 );
-
- AddButton = new QPushButton(GroupContent, "add");
- AddButton->setText(tr("SMESH_BUT_ADD"));
- AddButton->setMaximumWidth(85);
- GroupContentLayout->addWidget( AddButton, 2, 1 );
-
- RemoveButton = new QPushButton(GroupContent, "remove");
- RemoveButton->setText(tr("SMESH_BUT_REMOVE"));
- RemoveButton->setMaximumWidth(85);
- GroupContentLayout->addWidget( RemoveButton, 3, 1 );
-
- Preview = new QCheckBox( GroupContent, "Preview" );
- Preview->setText( tr( "SMESH_POLYEDRE_PREVIEW" ) );
- GroupContentLayout->addWidget( Preview , 5, 0 );
+ GroupGroups = new QGroupBox( tr( "SMESH_ADD_TO_GROUP" ), this );
+ GroupGroups->setCheckable( true );
+ QHBoxLayout* GroupGroupsLayout = new QHBoxLayout(GroupGroups);
+ GroupGroupsLayout->setSpacing(SPACING);
+ GroupGroupsLayout->setMargin(MARGIN);
+
+ TextLabel_GroupName = new QLabel( tr( "SMESH_GROUP" ), GroupGroups );
+ ComboBox_GroupName = new QComboBox( GroupGroups );
+ ComboBox_GroupName->setEditable( true );
+ ComboBox_GroupName->setInsertPolicy( QComboBox::NoInsert );
+
+ GroupGroupsLayout->addWidget( TextLabel_GroupName );
+ GroupGroupsLayout->addWidget( ComboBox_GroupName, 1 );
+
+ /***************************************************************/
+ GroupButtons = new QGroupBox( this );
+ QHBoxLayout* GroupButtonsLayout = new QHBoxLayout( GroupButtons );
+ GroupButtonsLayout->setSpacing( SPACING );
+ GroupButtonsLayout->setMargin( MARGIN );
+
+ buttonOk = new QPushButton( tr( "SMESH_BUT_APPLY_AND_CLOSE" ), GroupButtons );
+ buttonOk->setAutoDefault( true );
+ buttonOk->setDefault( true );
+ buttonApply = new QPushButton( tr( "SMESH_BUT_APPLY" ), GroupButtons );
+ buttonApply->setAutoDefault( true );
+ buttonCancel = new QPushButton( tr( "SMESH_BUT_CLOSE" ), GroupButtons );
+ buttonCancel->setAutoDefault( true );
+ buttonHelp = new QPushButton( tr("SMESH_BUT_HELP" ), GroupButtons );
+ buttonHelp->setAutoDefault(true);
+
+ GroupButtonsLayout->addWidget( buttonOk );
+ GroupButtonsLayout->addSpacing( 10 );
+ GroupButtonsLayout->addWidget( buttonApply );
+ GroupButtonsLayout->addSpacing( 10 );
+ GroupButtonsLayout->addStretch();
+ GroupButtonsLayout->addWidget( buttonCancel );
+ GroupButtonsLayout->addWidget( buttonHelp);
+
+ /***************************************************************/
+ topLayout->addWidget( ConstructorsBox );
+ topLayout->addWidget( GroupContent );
+ topLayout->addWidget( GroupGroups );
+ topLayout->addWidget( GroupButtons );