- GroupConstructors->setTitle(tr("GEOM_PROPAGATE_TITLE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- QGroupBox* aMainGrp = new QGroupBox( 1, Qt::Horizontal, tr( "GEOM_SELECTED_SHAPE" ), this );
- QGroupBox* aSelGrp = new QGroupBox(3, Qt::Horizontal, aMainGrp);
- aSelGrp->setFrameStyle(QFrame::NoFrame);
- aSelGrp->setInsideMargin(0);
-
- new QLabel(tr("GEOM_OBJECT"), aSelGrp);
- mySelBtn = new QPushButton(aSelGrp);
- mySelBtn->setPixmap(image1);
- mySelName = new QLineEdit(aSelGrp);
- mySelName->setReadOnly(true);
-
- Layout1->addWidget(aMainGrp, 1, 0);
+ mainFrame()->GroupConstructors->setTitle( tr( "GEOM_PROPAGATE_TITLE" ) );
+ mainFrame()->RadioButton1->setIcon( image0 );
+ mainFrame()->RadioButton2->setAttribute( Qt::WA_DeleteOnClose );
+ mainFrame()->RadioButton2->close();
+ mainFrame()->RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+ mainFrame()->RadioButton3->close();
+
+ myGrp = new DlgRef_1Sel( centralWidget() );
+ myGrp->GroupBox1->setTitle( tr( "GEOM_SELECTED_SHAPE" ) );
+ myGrp->TextLabel1->setText( tr( "GEOM_OBJECT" ) );
+ myGrp->PushButton1->setIcon( image1 );
+ myGrp->LineEdit1->setReadOnly( true );
+
+ QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
+ layout->setMargin( 0 ); layout->setSpacing( 6 );
+ layout->addWidget( myGrp );