- GroupArguments = new QGroupBox(this, "GroupArguments");
- GroupArguments->setTitle(argumentsGrTitle);
- GroupArguments->setColumnLayout(0, Qt::Vertical);
- GroupArguments->layout()->setSpacing(0);
- GroupArguments->layout()->setMargin(0);
- GroupArguments->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding));
- QGridLayout* aGroupArgumentsLayout = new QGridLayout(GroupArguments->layout());
- aGroupArgumentsLayout->setAlignment(Qt::AlignTop);
- aGroupArgumentsLayout->setSpacing(6);
- aGroupArgumentsLayout->setMargin(11);
- QLabel* aCornerNodesLabel = new QLabel(GroupArguments, "aCornerNodesLabel");
- aCornerNodesLabel->setText(tr("SMESH_CORNER_NODES" ));
- aGroupArgumentsLayout->addWidget(aCornerNodesLabel, 0, 0);
- mySelectButton = new QPushButton(GroupArguments, "mySelectButton");
- mySelectButton->setPixmap(image1);
- aGroupArgumentsLayout->addWidget(mySelectButton, 0, 1);
- myCornerNodes = new QLineEdit(GroupArguments, "myCornerNodes");
- aGroupArgumentsLayout->addWidget(myCornerNodes, 0, 2);
-
- myTable = new QTable(GroupArguments);
- aGroupArgumentsLayout->addMultiCellWidget(myTable, 1, 1, 0, 2);
-
- myReverseCB = new QCheckBox(GroupArguments, "myReverseCB");
- myReverseCB->setText(tr("SMESH_REVERSE" ));
- aGroupArgumentsLayout->addWidget(myReverseCB, 2, 0);
-
- aDialogLayout->addWidget(GroupArguments, 1, 0);
-
-
+ GroupArguments = new QGroupBox(argumentsGrTitle, this);
+ QGridLayout* aGroupArgumentsLayout = new QGridLayout(GroupArguments);
+ aGroupArgumentsLayout->setSpacing(SPACING);
+ aGroupArgumentsLayout->setMargin(MARGIN);
+
+ // Corner nodes
+ QLabel* aCornerNodesLabel = new QLabel(tr("SMESH_CORNER_NODES"), GroupArguments);
+ myCornerSelectButton = new QPushButton(GroupArguments);
+ myCornerSelectButton->setIcon(image1);
+ myCornerNodes = new QLineEdit(GroupArguments);
+
+ // Mid-edge nodes
+ myTable = new QTableWidget(GroupArguments);
+
+ // Mid-face nodes
+ myMidFaceLabel = new QLabel(tr("SMESH_MIDFACE_NODES"), GroupArguments);
+ myMidFaceSelectButton = new QPushButton(GroupArguments);
+ myMidFaceSelectButton->setIcon(image1);
+ myMidFaceNodes = new QLineEdit(GroupArguments);
+ myMidFaceNodes->setValidator(new SMESHGUI_IdValidator(this, 6));
+
+ // Central node
+ myCenterLabel = new QLabel(tr("SMESH_CENTER_NODE"), GroupArguments);
+ myCenterSelectButton = new QPushButton(GroupArguments);
+ myCenterSelectButton->setIcon(image1);
+ myCenterNode = new QLineEdit(GroupArguments);
+ myCenterNode->setValidator(new SMESHGUI_IdValidator(this, 1));
+
+ myReverseCB = new QCheckBox(tr("SMESH_REVERSE"), GroupArguments);
+
+ aGroupArgumentsLayout->addWidget(aCornerNodesLabel, 0, 0);
+ aGroupArgumentsLayout->addWidget(myCornerSelectButton, 0, 1);
+ aGroupArgumentsLayout->addWidget(myCornerNodes, 0, 2);
+ aGroupArgumentsLayout->addWidget(myTable, 1, 0, 1, 3);
+ aGroupArgumentsLayout->addWidget(myMidFaceLabel, 2, 0);
+ aGroupArgumentsLayout->addWidget(myMidFaceSelectButton, 2, 1);
+ aGroupArgumentsLayout->addWidget(myMidFaceNodes, 2, 2);
+ aGroupArgumentsLayout->addWidget(myCenterLabel, 3, 0);
+ aGroupArgumentsLayout->addWidget(myCenterSelectButton, 3, 1);
+ aGroupArgumentsLayout->addWidget(myCenterNode, 3, 2);
+ aGroupArgumentsLayout->addWidget(myReverseCB, 4, 0, 1, 3);
+
+ /***************************************************************/
+ 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* aGroupButtonsLayout = new QHBoxLayout(GroupButtons);
+ aGroupButtonsLayout->setSpacing(SPACING);
+ aGroupButtonsLayout->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);
+
+ aGroupButtonsLayout->addWidget(buttonOk);
+ aGroupButtonsLayout->addSpacing(10);
+ aGroupButtonsLayout->addWidget(buttonApply);
+ aGroupButtonsLayout->addSpacing(10);
+ aGroupButtonsLayout->addStretch();
+ aGroupButtonsLayout->addWidget(buttonCancel);
+ aGroupButtonsLayout->addWidget(buttonHelp);
+