mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 15:20:33 +05:00
PAL10406. Enable myNodes when a pattern is loaded. UpdatePreview() when elements to refine are selected
This commit is contained in:
parent
b992817854
commit
a2fe500c74
@ -739,7 +739,10 @@ void SMESHGUI_MeshPatternDlg::onOkCreationDlg()
|
|||||||
{
|
{
|
||||||
myPattern = SMESH::SMESH_Pattern::_duplicate(myCreationDlg->GetPattern());
|
myPattern = SMESH::SMESH_Pattern::_duplicate(myCreationDlg->GetPattern());
|
||||||
myName->setText(myCreationDlg->GetPatternName());
|
myName->setText(myCreationDlg->GetPatternName());
|
||||||
|
|
||||||
|
updateWgState();
|
||||||
displayPreview();
|
displayPreview();
|
||||||
|
|
||||||
setEnabled(true);
|
setEnabled(true);
|
||||||
myIsCreateDlgOpen = false;
|
myIsCreateDlgOpen = false;
|
||||||
}
|
}
|
||||||
@ -933,7 +936,7 @@ void SMESHGUI_MeshPatternDlg::updateWgState()
|
|||||||
}
|
}
|
||||||
|
|
||||||
QValueList<int> ids;
|
QValueList<int> ids;
|
||||||
if (!CORBA::is_nil(myPattern) && getIds(ids)) {
|
if (!CORBA::is_nil(myPattern)/* && getIds(ids)*/) {
|
||||||
SMESH::long_array_var keyPoints = myPattern->GetKeyPoints();
|
SMESH::long_array_var keyPoints = myPattern->GetKeyPoints();
|
||||||
if (keyPoints->length()) {
|
if (keyPoints->length()) {
|
||||||
myNode1->setEnabled(true);
|
myNode1->setEnabled(true);
|
||||||
@ -1278,6 +1281,8 @@ void SMESHGUI_MeshPatternDlg::onTextChanged (const QString& theNewText)
|
|||||||
}
|
}
|
||||||
|
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
|
displayPreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user