- myGrp = new MeasureGUI_1Sel3LineEdit( centralWidget() );
- myGrp->GroupBox1->setTitle( tr( "GEOM_PROPERTIES_CONSTR" ) );
- myGrp->TextLabel1->setText( tr( "GEOM_OBJECT" ) );
- myGrp->TextLabel2->setText( tr( "GEOM_LENGTH" ) );
- myGrp->TextLabel3->setText( tr( "GEOM_PROPERTIES_SURFACE" ) );
- myGrp->TextLabel4->setText( tr( "GEOM_PROPERTIES_VOLUME" ) );
- myGrp->LineEdit1->setReadOnly( true );
- myGrp->PushButton1->setIcon( image1 );
- myGrp->LineEdit2->setReadOnly( true );
- myGrp->LineEdit3->setReadOnly( true );
- myGrp->LineEdit4->setReadOnly( true );
-
- QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
- layout->setMargin( 0 ); layout->setSpacing( 6 );
- layout->addWidget( myGrp );
+ QGroupBox *aGrpBox =
+ new QGroupBox(tr("GEOM_PROPERTIES_CONSTR"), centralWidget());
+ QLabel *anObjLbl = new QLabel(tr("GEOM_OBJECT"), aGrpBox);
+ QLabel *aTolLbl = new QLabel(tr("GEOM_TOLERANCE"), aGrpBox);
+ QLabel *aLenLbl = new QLabel(tr("GEOM_LENGTH"), aGrpBox);
+ QLabel *aSurfLbl = new QLabel(tr("GEOM_PROPERTIES_SURFACE"), aGrpBox);
+ QLabel *aVolLbl = new QLabel(tr("GEOM_PROPERTIES_VOLUME"), aGrpBox);
+
+ mySelBtn = new QPushButton(aGrpBox);
+ mySelBtn->setIcon(image1);
+ mySelEdit = new QLineEdit(aGrpBox);
+ mySelEdit->setReadOnly(true);
+ myTolerance = new SalomeApp_DoubleSpinBox(aGrpBox);
+ myLength = new QLineEdit(aGrpBox);
+ mySurface = new QLineEdit(aGrpBox);
+ myVolume = new QLineEdit(aGrpBox);
+ myLength->setReadOnly(true);
+ mySurface->setReadOnly(true);
+ myVolume->setReadOnly(true);
+
+ QGridLayout* aLayout = new QGridLayout(aGrpBox);
+
+ aLayout->setMargin(9);
+ aLayout->setSpacing(6);
+ aLayout->addWidget(anObjLbl, 0, 0);
+ aLayout->addWidget(aTolLbl, 1, 0);
+ aLayout->addWidget(aLenLbl, 2, 0);
+ aLayout->addWidget(aSurfLbl, 3, 0);
+ aLayout->addWidget(aVolLbl, 4, 0);
+ aLayout->addWidget(mySelBtn, 0, 1);
+ aLayout->addWidget(mySelEdit, 0, 2);
+ aLayout->addWidget(myTolerance, 1, 1, 1, 2);
+ aLayout->addWidget(myLength, 2, 1, 1, 2);
+ aLayout->addWidget(mySurface, 3, 1, 1, 2);
+ aLayout->addWidget(myVolume, 4, 1, 1, 2);
+
+ QVBoxLayout* aDlgLayout = new QVBoxLayout( centralWidget() );
+ aDlgLayout->setMargin( 0 ); aDlgLayout->setSpacing( 6 );
+ aDlgLayout->addWidget(aGrpBox);