- GroupMirror = new QGroupBox( GroupArguments, "GroupMirror" );
- GroupMirror->setColumnLayout(0, Qt::Vertical );
- GroupMirror->layout()->setSpacing( 0 );
- GroupMirror->layout()->setMargin( 0 );
- QGridLayout* GroupMirrorLayout = new QGridLayout( GroupMirror->layout() );
- GroupMirrorLayout->setAlignment( Qt::AlignTop );
- GroupMirrorLayout->setSpacing( 6 );
- GroupMirrorLayout->setMargin( 11 );
-
- TextLabelPoint = new QLabel( GroupMirror, "TextLabelPoint" );
- TextLabelPoint->setText( tr( "SMESH_POINT" ) );
- GroupMirrorLayout->addWidget( TextLabelPoint, 0, 0 );
-
- SelectPointButton = new QPushButton( GroupMirror, "SelectPointButton" );
- SelectPointButton->setPixmap( image3 );
- GroupMirrorLayout->addWidget( SelectPointButton, 0, 1 );
-
- TextLabelX = new QLabel( GroupMirror, "TextLabelX" );
- TextLabelX->setText( tr( "SMESH_X" ) );
- GroupMirrorLayout->addWidget( TextLabelX, 0, 2 );
-
- SpinBox_X = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_X");
- GroupMirrorLayout->addWidget( SpinBox_X, 0, 3 );
-
- TextLabelY = new QLabel( GroupMirror, "TextLabelY" );
- TextLabelY->setText( tr( "SMESH_Y" ) );
- GroupMirrorLayout->addWidget( TextLabelY, 0, 4 );
-
- SpinBox_Y = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_Y");
- GroupMirrorLayout->addWidget( SpinBox_Y, 0, 5 );
-
- TextLabelZ = new QLabel( GroupMirror, "TextLabelZ" );
- TextLabelZ->setText( tr( "SMESH_Z" ) );
- GroupMirrorLayout->addWidget( TextLabelZ, 0, 6 );
-
- SpinBox_Z = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_Z");
- GroupMirrorLayout->addWidget( SpinBox_Z, 0, 7 );
-
- TextLabelVector = new QLabel( GroupMirror, "TextLabelVector" );
- GroupMirrorLayout->addWidget( TextLabelVector, 1, 0 );
-
- SelectVectorButton = new QPushButton( GroupMirror, "SelectVectorButton" );
- SelectVectorButton->setPixmap( image3 );
- GroupMirrorLayout->addWidget( SelectVectorButton, 1, 1 );
-
- TextLabelDX = new QLabel( GroupMirror, "TextLabelDX" );
- TextLabelDX->setText( tr( "SMESH_DX" ) );
- GroupMirrorLayout->addWidget( TextLabelDX, 1, 2 );
-
- SpinBox_DX = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_DX");
- GroupMirrorLayout->addWidget( SpinBox_DX, 1, 3 );
-
- TextLabelDY = new QLabel( GroupMirror, "TextLabelDY" );
- TextLabelDY->setText( tr( "SMESH_DY" ) );
- GroupMirrorLayout->addWidget( TextLabelDY, 1, 4 );
-
- SpinBox_DY = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_DY");
- GroupMirrorLayout->addWidget( SpinBox_DY, 1, 5 );
-
- TextLabelDZ = new QLabel( GroupMirror, "TextLabelDZ" );
- TextLabelDZ->setText( tr( "SMESH_DZ" ) );
- GroupMirrorLayout->addWidget( TextLabelDZ, 1, 6 );
-
- SpinBox_DZ = new SMESHGUI_SpinBox( GroupMirror, "SpinBox_DZ");
- GroupMirrorLayout->addWidget( SpinBox_DZ, 1, 7 );
-
- GroupArgumentsLayout->addMultiCellWidget( GroupMirror, 2, 2, 0, 2 );
-
- // Controls for "Create a copy" option
- CheckBoxCopy = new QCheckBox( GroupArguments, "CheckBoxCopy" );
- CheckBoxCopy->setText( tr( "SMESH_CREATE_COPY" ) );
- GroupArgumentsLayout->addMultiCellWidget( CheckBoxCopy, 3, 3, 0, 2 );
-
-
- SMESHGUI_SymmetryDlgLayout->addWidget( GroupArguments, 1, 0 );
-
+ GroupMirror = new QGroupBox(GroupArguments);
+ QGridLayout* GroupMirrorLayout = new QGridLayout(GroupMirror);
+ GroupMirrorLayout->setSpacing(SPACING);
+ GroupMirrorLayout->setMargin(MARGIN);
+
+ TextLabelPoint = new QLabel(tr("SMESH_POINT"), GroupMirror);
+ SelectPointButton = new QPushButton(GroupMirror);
+ SelectPointButton->setIcon(image3);
+
+ TextLabelX = new QLabel(tr("SMESH_X"), GroupMirror);
+ SpinBox_X = new SMESHGUI_SpinBox(GroupMirror);
+ TextLabelY = new QLabel(tr("SMESH_Y"), GroupMirror);
+ SpinBox_Y = new SMESHGUI_SpinBox(GroupMirror);
+ TextLabelZ = new QLabel(tr("SMESH_Z"), GroupMirror);
+ SpinBox_Z = new SMESHGUI_SpinBox(GroupMirror);
+
+ TextLabelVector = new QLabel(GroupMirror);
+ SelectVectorButton = new QPushButton(GroupMirror);
+ SelectVectorButton->setIcon(image3);
+
+ TextLabelDX = new QLabel(tr("SMESH_DX"), GroupMirror);
+ SpinBox_DX = new SMESHGUI_SpinBox(GroupMirror);
+ TextLabelDY = new QLabel(tr("SMESH_DY"), GroupMirror);
+ SpinBox_DY = new SMESHGUI_SpinBox(GroupMirror);
+ TextLabelDZ = new QLabel(tr("SMESH_DZ"), GroupMirror);
+ SpinBox_DZ = new SMESHGUI_SpinBox(GroupMirror);
+
+ GroupMirrorLayout->addWidget(TextLabelPoint, 0, 0);
+ GroupMirrorLayout->addWidget(SelectPointButton, 0, 1);
+ GroupMirrorLayout->addWidget(TextLabelX, 0, 2);
+ GroupMirrorLayout->addWidget(SpinBox_X, 0, 3);
+ GroupMirrorLayout->addWidget(TextLabelY, 0, 4);
+ GroupMirrorLayout->addWidget(SpinBox_Y, 0, 5);
+ GroupMirrorLayout->addWidget(TextLabelZ, 0, 6);
+ GroupMirrorLayout->addWidget(SpinBox_Z, 0, 7);
+ GroupMirrorLayout->addWidget(TextLabelVector, 1, 0);
+ GroupMirrorLayout->addWidget(SelectVectorButton, 1, 1);
+ GroupMirrorLayout->addWidget(TextLabelDX, 1, 2);
+ GroupMirrorLayout->addWidget(SpinBox_DX, 1, 3);
+ GroupMirrorLayout->addWidget(TextLabelDY, 1, 4);
+ GroupMirrorLayout->addWidget(SpinBox_DY, 1, 5);
+ GroupMirrorLayout->addWidget(TextLabelDZ, 1, 6);
+ GroupMirrorLayout->addWidget(SpinBox_DZ, 1, 7);
+
+ // switch of action type
+ ActionBox = new QGroupBox(GroupArguments);
+ ActionGroup = new QButtonGroup(GroupArguments);
+ QVBoxLayout* ActionBoxLayout = new QVBoxLayout(ActionBox);
+ ActionBoxLayout->addSpacing(SPACING);
+ ActionBoxLayout->setMargin(MARGIN);
+
+ QRadioButton* aMoveElements = new QRadioButton(tr("SMESH_MOVE_ELEMENTS"), ActionBox);
+ QRadioButton* aCopyElements = new QRadioButton(tr("SMESH_COPY_ELEMENTS"), ActionBox);
+ QRadioButton* aCreateMesh = new QRadioButton(tr("SMESH_CREATE_MESH"), ActionBox);
+
+ ActionBoxLayout->addWidget(aMoveElements);
+ ActionBoxLayout->addWidget(aCopyElements);
+ ActionBoxLayout->addWidget(aCreateMesh);
+ ActionGroup->addButton(aMoveElements, MOVE_ELEMS_BUTTON);
+ ActionGroup->addButton(aCopyElements, COPY_ELEMS_BUTTON);
+ ActionGroup->addButton(aCreateMesh, MAKE_MESH_BUTTON);
+
+ // CheckBox for groups generation
+ MakeGroupsCheck = new QCheckBox(tr("SMESH_MAKE_GROUPS"), GroupArguments);
+ MakeGroupsCheck->setChecked(false);
+
+ // Name of a mesh to create
+ LineEditNewMesh = new QLineEdit(GroupArguments);
+
+ // layout
+ GroupArgumentsLayout->addWidget(TextLabelElements, 0, 0);
+ GroupArgumentsLayout->addWidget(SelectElementsButton, 0, 1);
+ GroupArgumentsLayout->addWidget(LineEditElements, 0, 2, 1, 2);
+ GroupArgumentsLayout->addWidget(CheckBoxMesh, 1, 0, 1, 4);
+ GroupArgumentsLayout->addWidget(GroupMirror, 2, 0, 1, 4);
+ GroupArgumentsLayout->addWidget(ActionBox, 3, 0, 3, 3);
+ GroupArgumentsLayout->addWidget(MakeGroupsCheck, 4, 4);
+ GroupArgumentsLayout->addWidget(LineEditNewMesh, 5, 4);
+
+ /***************************************************************/
+ GroupButtons = new QGroupBox(this);
+ QHBoxLayout* GroupButtonsLayout = new QHBoxLayout(GroupButtons);
+ GroupButtonsLayout->setSpacing(SPACING);
+ GroupButtonsLayout->setMargin(MARGIN);
+
+ buttonOk = new QPushButton(tr("SMESH_BUT_OK"), 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);
+
+ /***************************************************************/
+ SMESHGUI_SymmetryDlgLayout->addWidget(ConstructorsBox);
+ SMESHGUI_SymmetryDlgLayout->addWidget(GroupArguments);
+ SMESHGUI_SymmetryDlgLayout->addWidget(GroupButtons);
+