- GroupExclude = new QGroupBox(tr("EXCLUDE_GROUPS"), foo);
- GroupExclude->setCheckable( true );
- GroupExclude->setChecked( false );
- ListExclude = new QListWidget( GroupExclude );
- QVBoxLayout* GroupExcludeLayout = new QVBoxLayout(GroupExclude);
- GroupExcludeLayout->setSpacing(SPACING);
- GroupExcludeLayout->setMargin(MARGIN);
- GroupExcludeLayout->addWidget(ListExclude);
-
- QGroupBox* GroupKeep = new QGroupBox(tr("KEEP_NODES"), foo);
- SelectKeepNodesButton = new QPushButton( GroupKeep );
- SelectKeepNodesButton->setIcon( IconSelect );
- QLabel* selectLabel = new QLabel(tr("SELECT"));
- QRadioButton* idsButton = new QRadioButton(tr("NODE_IDS"), GroupKeep);
- QRadioButton* groupButton = new QRadioButton(tr("GROUP_SUBMESH"), GroupKeep);
- KeepFromButGroup = new QButtonGroup( this );
- KeepFromButGroup->addButton( idsButton, 0 );
- KeepFromButGroup->addButton( groupButton, 1 );
- groupButton->setChecked( true );
- KeepList = new QListWidget( GroupKeep );
- KeepList->setSelectionMode(QAbstractItemView::ExtendedSelection);
- KeepList->setFlow(QListView::TopToBottom);
- AddKeepNodesButton = new QPushButton(tr("SMESH_BUT_ADD"), GroupKeep );
- RemoveKeepNodesButton = new QPushButton(tr("SMESH_BUT_REMOVE"), GroupKeep );
- QGridLayout* GroupKeepLayout = new QGridLayout(GroupKeep);
- GroupKeepLayout->setSpacing( SPACING );
- GroupKeepLayout->setMargin ( MARGIN );
- GroupKeepLayout->addWidget( SelectKeepNodesButton, 0, 0 );
- GroupKeepLayout->addWidget( selectLabel, 0, 1 );
- GroupKeepLayout->addWidget( idsButton, 0, 2 );
- GroupKeepLayout->addWidget( groupButton, 0, 3, 1, 2 );
- GroupKeepLayout->addWidget( KeepList, 1, 0, 2, 4 );
- GroupKeepLayout->addWidget( AddKeepNodesButton, 1, 4, 1, 1 );
- GroupKeepLayout->addWidget( RemoveKeepNodesButton, 2, 4, 1, 1 );
-
- QGridLayout* fooLayout = new QGridLayout( foo );
- fooLayout->setSpacing(SPACING);
- fooLayout->setMargin(0);
- fooLayout->addWidget(TextLabelTolerance, 0, 0 );
- fooLayout->addWidget(SpinBoxTolerance, 0, 1 );
- fooLayout->addWidget(SeparateCornersAndMedium, 1, 0 );
- fooLayout->addWidget(GroupExclude, 2, 0, 1, 2 );
- fooLayout->addWidget(GroupKeep, 3, 0, 1, 2 );
- aCoincidentLayout->addWidget(foo);
-
- // Costruction of the logical filter
- QList<SUIT_SelectionFilter*> aListOfFilters;
- aListOfFilters << new SMESH_TypeFilter (SMESH::SUBMESH)
- << new SMESH_TypeFilter (SMESH::GROUP);
- mySubMeshOrGroupFilter =
- new SMESH_LogicalFilter (aListOfFilters, SMESH_LogicalFilter::LO_OR, /*takeOwnership=*/true);
+ AvoidMakingHoles = new QCheckBox(tr("AVOID_MAKING_HOLES"), NodeSpecWidget );
+ AvoidMakingHoles->setChecked( false );
+
+ QGridLayout* NodeSpecLayout = new QGridLayout(NodeSpecWidget);
+ NodeSpecLayout->setSpacing(SPACING);
+ NodeSpecLayout->setMargin(0);
+
+ NodeSpecLayout->addWidget(TextLabelTolerance, 0, 0 );
+ NodeSpecLayout->addWidget(SpinBoxTolerance, 0, 1 );
+ NodeSpecLayout->addWidget(SeparateCornersAndMedium, 1, 0, 1, 2 );
+ NodeSpecLayout->addWidget(AvoidMakingHoles, 2, 0, 1, 2 );