- mainFrame()->RadioButton5->setIcon( image5 );
-
- 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_PARAM_POINT" ) );
- 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_PARAM_POINT" ) );
- 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" ) );
-
- 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->PushButton2->setIcon( image2 );
+ 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_LENGTH_VALUE"), myParamGroup);
+ myParamCoord->addButton(btn, LENGTH_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_2Sel1Spin(centralWidget());
+ GroupOnCurve->GroupBox1->setTitle(tr("GEOM_POINT_ON_EDGE"));
+ GroupOnCurve->TextLabel1->setText(tr("GEOM_EDGE"));
+ GroupOnCurve->TextLabel2->setText(tr("GEOM_START_POINT"));
+ GroupOnCurve->TextLabel3->setText(tr("GEOM_PARAMETER"));
+ GroupOnCurve->PushButton1->setIcon(image2);
+ GroupOnCurve->PushButton2->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"))] = SelectEdge;
+ myActions[myBtnPopup->addAction(ico_wire, tr("GEOM_WIRE"))] = SelectWire;
+
+ 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);