// Enforced meshes parameters
myEnfMeshGroup = new QWidget();
- myLayersOnAllWrapCheck = new QCheckBox( tr( "HYBRID_LAYERS_ON_ALL_WRAP" ), myEnfMeshGroup );
QGridLayout* anEnfMeshLayout = new QGridLayout(myEnfMeshGroup);
myEnforcedMeshTableWidget = new QTableWidget(myEnfGroup);
// GroupBox2VLayout->addWidget( info2 );
// anEnfMeshLayout->addWidget( GroupBox2, ENF_MESH_WARNING, 0, 1, 2 );
- anEnfMeshLayout->addWidget(myLayersOnAllWrapCheck, ENF_MESH_MESH, 0, 1 , 1);
- anEnfMeshLayout->addWidget(myEnforcedMeshTableWidget, ENF_MESH_MESH+1, 0, ENF_MESH_NB_LINES , 1);
+ //anEnfMeshLayout->addWidget(myLayersOnAllWrapCheck, ENF_MESH_MESH, 0, 1 , 1);
+ anEnfMeshLayout->addWidget(myEnforcedMeshTableWidget, ENF_MESH_MESH, 0, ENF_MESH_NB_LINES , 1);
QGridLayout* anEnfMeshLayout2 = new QGridLayout(myEnfMeshGroup);
anEnfMeshLayout2->addWidget(myEnfMeshWdg, ENF_MESH_MESH, 0, 1, 2);
anEnfMeshLayout2->addWidget(removeEnfMeshButton, ENF_MESH_BTN, 1, 1, 1);
anEnfMeshLayout2->setRowStretch(ENF_MESH_NB_LINES, 1);
- anEnfMeshLayout->addLayout(anEnfMeshLayout2, ENF_MESH_MESH+1, 1, ENF_MESH_NB_LINES, 1);
+ anEnfMeshLayout->addLayout(anEnfMeshLayout2, ENF_MESH_MESH, 1, ENF_MESH_NB_LINES, 1);
anEnfMeshLayout->setRowStretch(ENF_MESH_MESH, 10);
// selection of faces for layers
QWidget* faceSelLayersGroup = new QWidget( dlg() );
+ myLayersOnAllWrapCheck = new QCheckBox( tr( "HYBRID_LAYERS_ON_ALL_WRAP" ), faceSelLayersGroup );
QGridLayout* faceSelLayersLayout = new QGridLayout( faceSelLayersGroup );
+ faceSelLayersLayout->addWidget(myLayersOnAllWrapCheck, 0, 0 );
- QLabel* facesLbl = new QLabel( tr("HYBRID_FACE_IDS"), faceSelLayersGroup );
- faceSelLayersLayout->addWidget( facesLbl, 0, 0 );
+ myFacesLbl = new QLabel( tr("HYBRID_FACE_IDS"), faceSelLayersGroup );
+ faceSelLayersLayout->addWidget( myFacesLbl, 1, 0 );
myFaceSelectorLayers = new StdMeshersGUI_SubShapeSelectorWdg( faceSelLayersGroup, TopAbs_FACE, true, true );
QString aMainEntry = SMESHGUI_GenericHypothesisCreator::getMainShapeEntry();
QString aSubEntry = SMESHGUI_GenericHypothesisCreator::getShapeEntry();
myFaceSelectorLayers->SetGeomShapeEntry( aSubEntry, aMainEntry );
- faceSelLayersLayout->addWidget( myFaceSelectorLayers, 1, 0, 2, 2 );
- faceSelLayersLayout->setRowStretch( 1, 10);
+ faceSelLayersLayout->addWidget( myFaceSelectorLayers, 2, 0);
+ faceSelLayersLayout->setRowStretch( 2, 10);
// selection of faces for imprinting
// add tabs
tab->insertTab( STD_TAB, myStdGroup, tr( "SMESH_ARGUMENTS" ) );
tab->insertTab( ADV_TAB, myAdvGroup, tr( "HYBRID_ADV_ARGS" ) );
- tab->insertTab( ENF_MESH_TAB, myEnfMeshGroup, tr( "HYBRID_ENFORCED_MESHES" ) );
if ( aMainEntry.isEmpty() && aSubEntry.isEmpty() ) // mesh not based of geometry
faceSelLayersGroup->hide();
else {
tab->insertTab( FACE_SEL_LAYERS_TAB, faceSelLayersGroup, tr( "HYBRID_FACES_LAYERS_TAB" ));
tab->insertTab( FACE_SEL_IMPRINTING_TAB, faceSelImprintingGroup, tr( "HYBRID_FACES_IMPRINTING_TAB" ));
}
+ tab->insertTab( ENF_MESH_TAB, myEnfMeshGroup, tr( "HYBRID_ENFORCED_MESHES" ) );
tab->setCurrentIndex( STD_TAB );
// connections
myAdvWidget->removeLogOnSuccessCheck->setEnabled( logFileRemovable );
}
bool enabled = !myLayersOnAllWrapCheck->isChecked();
- myEnforcedMeshTableWidget->setEnabled(enabled);
- addEnfMeshButton->setEnabled(enabled);
- removeEnfMeshButton->setEnabled(enabled);
- myEnfMeshWdg->setEnabled(enabled);
+ myFacesLbl->setEnabled(enabled);
+ myFaceSelectorLayers->setEnabled(enabled);
if ( QTabWidget* tab = qobject_cast<QTabWidget*>( myStdGroup->parentWidget()->parentWidget() )) {
- tab->setTabEnabled( FACE_SEL_LAYERS_TAB, enabled );
tab->setTabEnabled( FACE_SEL_IMPRINTING_TAB, enabled );
}
}