- TextLabel1 = new QLabel( GroupArguments, "TextLabel1" );
- GroupArgumentsLayout->addWidget( TextLabel1, 2, 0 );
-
- SelectButton1 = new QPushButton( GroupArguments, "SelectButton1" );
- SelectButton1->setText( tr( "" ) );
- SelectButton1->setPixmap( image2 );
- SelectButton1->setToggleButton( FALSE );
- GroupArgumentsLayout->addWidget( SelectButton1, 2, 1 );
-
- TextLabel1_1 = new QLabel( GroupArguments, "TextLabel1_1" );
- GroupArgumentsLayout->addWidget( TextLabel1_1, 2, 2 );
-
- SpinBox1_1 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox1_1");
- GroupArgumentsLayout->addWidget( SpinBox1_1, 2, 3 );
-
- TextLabel1_2 = new QLabel( GroupArguments, "TextLabel1_2" );
- GroupArgumentsLayout->addWidget( TextLabel1_2, 2, 4 );
-
- SpinBox1_2 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox1_2");
- GroupArgumentsLayout->addWidget( SpinBox1_2, 2, 5 );
-
- TextLabel1_3 = new QLabel( GroupArguments, "TextLabel1_3" );
- GroupArgumentsLayout->addWidget( TextLabel1_3, 2, 6 );
-
- SpinBox1_3 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox1_3");
- GroupArgumentsLayout->addWidget( SpinBox1_3, 2, 7 );
-
- TextLabel2 = new QLabel( GroupArguments, "TextLabel2" );
- TextLabel2->setText( tr( "SMESH_POINT_2" ) );
- GroupArgumentsLayout->addWidget( TextLabel2, 3, 0 );
-
- SelectButton2 = new QPushButton( GroupArguments, "SelectButton2" );
- SelectButton2->setText( tr( "" ) );
- SelectButton2->setPixmap( image2 );
- SelectButton2->setToggleButton( FALSE );
- GroupArgumentsLayout->addWidget( SelectButton2, 3, 1 );
-
- TextLabel2_1 = new QLabel( GroupArguments, "TextLabel2_1" );
- TextLabel2_1->setText( tr( "SMESH_X" ) );
- GroupArgumentsLayout->addWidget( TextLabel2_1, 3, 2 );
-
- SpinBox2_1 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox2_1");
- GroupArgumentsLayout->addWidget( SpinBox2_1, 3, 3 );
-
- TextLabel2_2 = new QLabel( GroupArguments, "TextLabel2_2" );
- TextLabel2_2->setText( tr( "SMESH_Y" ) );
- GroupArgumentsLayout->addWidget( TextLabel2_2, 3, 4 );
-
- SpinBox2_2 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox2_2");
- GroupArgumentsLayout->addWidget( SpinBox2_2, 3, 5 );
-
- TextLabel2_3 = new QLabel( GroupArguments, "TextLabel2_3" );
- TextLabel2_3->setText( tr( "SMESH_Z" ) );
- GroupArgumentsLayout->addWidget( TextLabel2_3, 3, 6 );
-
- SpinBox2_3 = new SMESHGUI_SpinBox(GroupArguments, "SpinBox2_3");
- GroupArgumentsLayout->addWidget( SpinBox2_3, 3, 7 );
-
- // Controls for "Create a copy" option
- CheckBoxCopy = new QCheckBox( GroupArguments, "CheckBoxCopy" );
- CheckBoxCopy->setText( tr( "SMESH_CREATE_COPY" ) );
- GroupArgumentsLayout->addMultiCellWidget( CheckBoxCopy, 4, 4, 0, 2 );
-
-
- SMESHGUI_TranslationDlgLayout->addWidget( GroupArguments, 1, 0 );
-
+ TextLabel1 = new QLabel(GroupArguments);
+ SelectButton1 = new QPushButton(GroupArguments);
+ SelectButton1->setIcon(image2);
+
+ TextLabel1_1 = new QLabel(GroupArguments);
+ SpinBox1_1 = new SMESHGUI_SpinBox(GroupArguments);
+ TextLabel1_2 = new QLabel(GroupArguments);
+ SpinBox1_2 = new SMESHGUI_SpinBox(GroupArguments);
+ TextLabel1_3 = new QLabel(GroupArguments);
+ SpinBox1_3 = new SMESHGUI_SpinBox(GroupArguments);
+
+ TextLabel2 = new QLabel(tr("SMESH_POINT_2"), GroupArguments);
+ SelectButton2 = new QPushButton(GroupArguments);
+ SelectButton2->setIcon(image2);
+
+ TextLabel2_1 = new QLabel(tr("SMESH_X"), GroupArguments);
+ SpinBox2_1 = new SMESHGUI_SpinBox(GroupArguments);
+ TextLabel2_2 = new QLabel(tr("SMESH_Y"), GroupArguments);
+ SpinBox2_2 = new SMESHGUI_SpinBox(GroupArguments);
+ TextLabel2_3 = new QLabel(tr("SMESH_Z"), GroupArguments);
+ SpinBox2_3 = new SMESHGUI_SpinBox(GroupArguments);
+
+ // 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, 6);
+ GroupArgumentsLayout->addWidget(CheckBoxMesh, 1, 0, 1, 8);
+ GroupArgumentsLayout->addWidget(TextLabel1, 2, 0);
+ GroupArgumentsLayout->addWidget(SelectButton1, 2, 1);
+ GroupArgumentsLayout->addWidget(TextLabel1_1, 2, 2);
+ GroupArgumentsLayout->addWidget(SpinBox1_1, 2, 3);
+ GroupArgumentsLayout->addWidget(TextLabel1_2, 2, 4);
+ GroupArgumentsLayout->addWidget(SpinBox1_2, 2, 5);
+ GroupArgumentsLayout->addWidget(TextLabel1_3, 2, 6);
+ GroupArgumentsLayout->addWidget(SpinBox1_3, 2, 7);
+ GroupArgumentsLayout->addWidget(TextLabel2, 3, 0);
+ GroupArgumentsLayout->addWidget(SelectButton2, 3, 1);
+ GroupArgumentsLayout->addWidget(TextLabel2_1, 3, 2);
+ GroupArgumentsLayout->addWidget(SpinBox2_1, 3, 3);
+ GroupArgumentsLayout->addWidget(TextLabel2_2, 3, 4);
+ GroupArgumentsLayout->addWidget(SpinBox2_2, 3, 5);
+ GroupArgumentsLayout->addWidget(TextLabel2_3, 3, 6);
+ GroupArgumentsLayout->addWidget(SpinBox2_3, 3, 7);
+ GroupArgumentsLayout->addWidget(ActionBox, 4, 0, 3, 4);
+ GroupArgumentsLayout->addWidget(MakeGroupsCheck, 5, 5, 1, 4);
+ GroupArgumentsLayout->addWidget(LineEditNewMesh, 6, 5, 1, 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_TranslationDlgLayout->addWidget(ConstructorsBox);
+ SMESHGUI_TranslationDlgLayout->addWidget(GroupArguments);
+ SMESHGUI_TranslationDlgLayout->addWidget(GroupButtons);
+