- GroupConstructors->setTitle(tr("GEOM_POINTS"));
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image3);
- RadioButton3->setPixmap(image1);
-
- GroupXYZ = new DlgRef_3Spin( aFrame, "GroupXYZ" );
- GroupXYZ->GroupBox1->setTitle(tr("GEOM_COORDINATES"));
- GroupXYZ->TextLabel1->setText(tr("GEOM_X"));
- GroupXYZ->TextLabel2->setText(tr("GEOM_Y"));
- GroupXYZ->TextLabel3->setText(tr("GEOM_Z"));
-
- GroupOnCurve = new DlgRef_1Sel1Spin( aFrame, "GroupOnCurve" );
- GroupOnCurve->GroupBox1->setTitle(tr("GEOM_PARAM_POINT"));
- GroupOnCurve->TextLabel1->setText(tr("GEOM_EDGE"));
- GroupOnCurve->TextLabel2->setText(tr("GEOM_PARAMETER"));
- GroupOnCurve->PushButton1->setPixmap(image2);
-
- GroupRefPoint = new DlgRef_1Sel3Spin( aFrame, "GoupRefPoint" );
- GroupRefPoint->GroupBox1->setTitle(tr("GEOM_REF_POINT"));
- GroupRefPoint->TextLabel1->setText(tr("GEOM_POINT"));
- GroupRefPoint->PushButton1->setPixmap(image2);
- GroupRefPoint->TextLabel2->setText(tr("GEOM_DX"));
- GroupRefPoint->TextLabel3->setText(tr("GEOM_DY"));
- GroupRefPoint->TextLabel4->setText(tr("GEOM_DZ"));
-
- Layout1->addWidget( aFrame, 2, 0 );
- /***************************************************************/
-
- myCoordGrp = new QGroupBox( 2, Qt::Horizontal, tr( "GEOM_COORDINATES" ), aFrame );
- new QLabel( tr( "GEOM_X" ), myCoordGrp );
+ mainFrame()->GroupConstructors->setTitle( tr( "GEOM_POINTS" ) );
+ mainFrame()->RadioButton1->setIcon( image0 );
+ mainFrame()->RadioButton2->setIcon( image3 );
+ mainFrame()->RadioButton3->setIcon( image1 );
+ mainFrame()->RadioButton4->show();
+ mainFrame()->RadioButton4->setIcon( image4 );
+ mainFrame()->RadioButton5->show();
+ mainFrame()->RadioButton5->setIcon( image5 );
+
+ myParamGroup = new QGroupBox( centralWidget() );
+ myParamCoord = new QButtonGroup( myParamGroup );
+ QHBoxLayout* boxLayout = new QHBoxLayout( myParamGroup );
+ boxLayout->setMargin( MARGIN ); boxLayout->setSpacing( SPACING );
+ QRadioButton* btn = new QRadioButton( tr( "GEOM_PARAM_VALUE" ), myParamGroup );
+ myParamCoord->addButton( btn, PARAM_VALUE );
+ boxLayout->addWidget( btn );
+ btn = new QRadioButton( tr( "GEOM_COORD_VALUE" ), myParamGroup );
+ myParamCoord->addButton( btn, COORD_VALUE );
+ boxLayout->addWidget( btn );
+ myParamCoord->setExclusive( true );
+ myParamCoord->button( PARAM_VALUE )->setChecked( true );
+
+ GroupXYZ = new DlgRef_3Spin( centralWidget() );
+ GroupXYZ->GroupBox1->setTitle( tr( "GEOM_COORDINATES" ) );
+ GroupXYZ->TextLabel1->setText( tr( "GEOM_X" ) );
+ GroupXYZ->TextLabel2->setText( tr( "GEOM_Y" ) );
+ GroupXYZ->TextLabel3->setText( tr( "GEOM_Z" ) );
+
+ GroupOnCurve = new DlgRef_1Sel1Spin( centralWidget() );
+ GroupOnCurve->GroupBox1->setTitle( tr( "GEOM_POINT_ON_EDGE" ) );
+ GroupOnCurve->TextLabel1->setText( tr( "GEOM_EDGE" ) );
+ GroupOnCurve->TextLabel2->setText( tr( "GEOM_PARAMETER" ) );
+ GroupOnCurve->PushButton1->setIcon( image2 );
+
+ GroupOnSurface = new DlgRef_1Sel2Spin( centralWidget() );
+ GroupOnSurface->GroupBox1->setTitle( tr( "GEOM_POINT_ON_FACE" ) );
+ GroupOnSurface->TextLabel1->setText( tr( "GEOM_FACE" ) );
+ GroupOnSurface->TextLabel2->setText( tr( "GEOM_UPARAMETER" ) );
+ GroupOnSurface->TextLabel3->setText( tr( "GEOM_VPARAMETER" ) );
+ GroupOnSurface->PushButton1->setIcon( image2 );
+
+ GroupRefPoint = new DlgRef_1Sel3Spin( centralWidget() );
+ GroupRefPoint->GroupBox1->setTitle( tr( "GEOM_REF_POINT" ) );
+ GroupRefPoint->TextLabel1->setText( tr( "GEOM_POINT" ) );
+ GroupRefPoint->PushButton1->setIcon( image2 );
+ GroupRefPoint->TextLabel2->setText( tr( "GEOM_DX" ) );
+ GroupRefPoint->TextLabel3->setText( tr( "GEOM_DY" ) );
+ GroupRefPoint->TextLabel4->setText( tr( "GEOM_DZ" ) );
+
+ /* popup menu for line intersect buttons */
+ myBtnPopup = new QMenu(this);
+ QIcon ico_line = QIcon( image6 );
+ QIcon ico_wire = QIcon( image7 );
+ myActions[myBtnPopup->addAction( ico_line, tr( "GEOM_EDGE" ) )] = 0;
+ myActions[myBtnPopup->addAction( ico_wire, tr( "GEOM_WIRE" ) )] = 1;
+
+ GroupLineIntersection = new DlgRef_2Sel( centralWidget() );
+ GroupLineIntersection->GroupBox1->setTitle( tr( "GEOM_LINE_INTERSECTION" ) );
+ GroupLineIntersection->TextLabel1->setText( tr( "GEOM_LINE1" ) );
+ GroupLineIntersection->TextLabel2->setText( tr( "GEOM_LINE2" ) );
+ GroupLineIntersection->PushButton1->setIcon( image2 );
+ GroupLineIntersection->PushButton1->setMenu( myBtnPopup );
+ GroupLineIntersection->PushButton2->setIcon( image2 );
+ GroupLineIntersection->PushButton2->setMenu( myBtnPopup );
+ GroupLineIntersection->LineEdit2->setEnabled(false);
+
+ myCoordGrp = new QGroupBox( tr( "GEOM_COORDINATES_RES" ), centralWidget() );
+ QGridLayout* myCoordGrpLayout = new QGridLayout( myCoordGrp );
+ myCoordGrpLayout->addWidget( new QLabel( tr( "GEOM_X" ), myCoordGrp ), 0, 0 );