mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 10:50:33 +05:00
bos#40018 - Mesh hypothesis window is not modal
show/hide mesh window, whenever hypothesis window gets displayed
This commit is contained in:
parent
92d86c3c19
commit
2de9636a4f
@ -1292,6 +1292,7 @@ void SMESHGUI_MeshOp::createHypothesis(const int theDim,
|
|||||||
initHypCreator( aCreator );
|
initHypCreator( aCreator );
|
||||||
|
|
||||||
myDlg->setEnabled( false );
|
myDlg->setEnabled( false );
|
||||||
|
myDlg->hide();
|
||||||
aCreator->create(initParamHyp, aHypName, myDlg, this, SLOT( onHypoCreated( int ) ) );
|
aCreator->create(initParamHyp, aHypName, myDlg, this, SLOT( onHypoCreated( int ) ) );
|
||||||
dialog = true;
|
dialog = true;
|
||||||
}
|
}
|
||||||
@ -1323,6 +1324,7 @@ void SMESHGUI_MeshOp::onHypoCreated( int result )
|
|||||||
int obj = myDlg->getActiveObject();
|
int obj = myDlg->getActiveObject();
|
||||||
onActivateObject( obj ); // Issue 0020170. Restore filters
|
onActivateObject( obj ); // Issue 0020170. Restore filters
|
||||||
myDlg->setEnabled( true );
|
myDlg->setEnabled( true );
|
||||||
|
myDlg->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
_PTR(SComponent) aFather = SMESH::getStudy()->FindComponent("SMESH");
|
_PTR(SComponent) aFather = SMESH::getStudy()->FindComponent("SMESH");
|
||||||
@ -1379,6 +1381,7 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
|||||||
|
|
||||||
removeCustomFilters(); // Issue 0020170
|
removeCustomFilters(); // Issue 0020170
|
||||||
myDlg->setEnabled( false );
|
myDlg->setEnabled( false );
|
||||||
|
myDlg->hide();
|
||||||
|
|
||||||
aCreator->edit( aHyp.in(), aHypItem.second, dlg(), this, SLOT( onHypoEdited( int ) ) );
|
aCreator->edit( aHyp.in(), aHypItem.second, dlg(), this, SLOT( onHypoEdited( int ) ) );
|
||||||
}
|
}
|
||||||
@ -1397,6 +1400,7 @@ void SMESHGUI_MeshOp::onHypoEdited( int /*result*/ )
|
|||||||
int obj = myDlg->getActiveObject();
|
int obj = myDlg->getActiveObject();
|
||||||
onActivateObject( obj ); // Issue 0020170. Restore filters
|
onActivateObject( obj ); // Issue 0020170. Restore filters
|
||||||
myDlg->setEnabled( true );
|
myDlg->setEnabled( true );
|
||||||
|
myDlg->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user