- GroupPoints2 = new DlgRef_1SelExt( centralWidget() );
- GroupPoints2->GroupBox1->setTitle( tr( "GEOM_GLUE" ) );
- GroupPoints2->TextLabel1->setText( tr( "GEOM_SELECTED_SHAPE" ) );
- GroupPoints2->PushButton1->setIcon( image1 );
- GroupPoints2->LineEdit1->setReadOnly( true );
-
- QLabel* aTolLab2 = new QLabel( tr( "GEOM_TOLERANCE" ), GroupPoints2->Box );
- myTolEdt2 = new SalomeApp_DoubleSpinBox( GroupPoints2->Box );
- initSpinBox( myTolEdt2, 0., 100., DEFAULT_TOLERANCE_VALUE, "len_tol_precision" );
- myTolEdt2->setValue( DEFAULT_TOLERANCE_VALUE );
-
- myDetectBtn = new QPushButton( tr( "GEOM_DETECT" ) + QString( " [%1]" ).arg( tr( "GLUE_FACES" ) ),
- GroupPoints2->Box );
- mySubShapesChk = new QCheckBox( tr( "SELECT_FACES" ), GroupPoints2->Box );
-
- boxLayout = new QGridLayout( GroupPoints2->Box );
- boxLayout->setMargin( 0 ); boxLayout->setSpacing( 6 );
- boxLayout->addWidget( aTolLab2, 0, 0 );
- boxLayout->addWidget( myTolEdt2, 0, 2 );
- boxLayout->addWidget( myDetectBtn, 1, 0, 1, 3 );
- boxLayout->addWidget( mySubShapesChk, 2, 0, 1, 3 );
-
- QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
- layout->setMargin( 0 ); layout->setSpacing( 6 );
- layout->addWidget( GroupPoints );
- layout->addWidget( GroupPoints2 );
+ GroupPoints2 = new DlgRef_1SelExt(centralWidget());
+ GroupPoints2->GroupBox1->setTitle(tr("GEOM_GLUE"));
+ GroupPoints2->TextLabel1->setText(tr("GEOM_SELECTED_SHAPE"));
+ GroupPoints2->PushButton1->setIcon(image0);
+ GroupPoints2->LineEdit1->setReadOnly(true);
+
+ QLabel* aTolLab2 = new QLabel(tr("GEOM_TOLERANCE"), GroupPoints2->Box);
+ myTolEdt2 = new SalomeApp_DoubleSpinBox(GroupPoints2->Box);
+ initSpinBox(myTolEdt2, 0., 100., DEFAULT_TOLERANCE_VALUE, "len_tol_precision");
+ myTolEdt2->setValue(DEFAULT_TOLERANCE_VALUE);
+
+ QString aGlueString (" [%1]");
+ QString aSelString;
+ if (theGlueMode == TopAbs_FACE) {
+ aGlueString = aGlueString.arg(tr("GLUE_FACES"));
+ aSelString = tr("SELECT_FACES");
+ }
+ else if (theGlueMode == TopAbs_EDGE) {
+ aGlueString = aGlueString.arg(tr("GLUE_EDGES"));
+ aSelString = tr("SELECT_EDGES");
+ }
+ myDetectBtn = new QPushButton (tr("GEOM_DETECT") + aGlueString, GroupPoints2->Box);
+ mySubShapesChk = new QCheckBox (aSelString, GroupPoints2->Box);
+ myGlueAllEdgesChk = 0;
+
+ boxLayout = new QGridLayout(GroupPoints2->Box);
+ boxLayout->setMargin(0); boxLayout->setSpacing(6);
+ boxLayout->addWidget(aTolLab2, 0, 0);
+ boxLayout->addWidget(myTolEdt2, 0, 2);
+ boxLayout->addWidget(myDetectBtn, 1, 0, 1, 3);
+ boxLayout->addWidget(mySubShapesChk, 2, 0, 1, 3);
+
+ if (theGlueMode == TopAbs_FACE) {
+ myGlueAllEdgesChk = new QCheckBox (tr("GLUE_ALL_EDGES"), GroupPoints2->Box);
+ boxLayout->addWidget(myGlueAllEdgesChk, 3, 0, 1, 3);
+ myGlueAllEdgesChk->setChecked(false);
+ }
+
+ QVBoxLayout* layout = new QVBoxLayout(centralWidget());
+ layout->setMargin(0); layout->setSpacing(6);
+ layout->addWidget(GroupPoints);
+ layout->addWidget(GroupPoints2);