Issue 0020860: EDF 1404 SMESH: Save operation unavailable after a group creation or merge nodes/elements

This commit is contained in:
ouv 2010-05-11 08:59:28 +00:00
parent 3ba7955c3b
commit e2a5000a9e
34 changed files with 77 additions and 0 deletions

View File

@ -1483,6 +1483,22 @@ SalomeApp_Study* SMESHGUI::activeStudy()
return NULL;
}
//=============================================================================
/*!
*
*/
//=============================================================================
void SMESHGUI::Modified( bool theIsUpdateActions )
{
if( SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() ) ) {
if( SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) ) {
appStudy->Modified();
if( theIsUpdateActions )
app->updateActions();
}
}
}
//=============================================================================
/*!
*
@ -4869,5 +4885,7 @@ int SMESHGUI::addVtkFontPref( const QString& label, const int pId, const QString
*/
void SMESHGUI::onHypothesisEdit( int result )
{
if( result == 1 )
SMESHGUI::Modified();
updateObjBrowser( true );
}

View File

@ -79,6 +79,8 @@ public :
static bool automaticUpdate();
static void Modified( bool = true );
virtual LightApp_Displayer* displayer();
virtual QString engineIOR() const;
virtual void initialize( CAM_Application* );

View File

@ -570,6 +570,8 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply()
myEditCurrentArgument->setText("");
myBusy = false;
SMESHGUI::Modified();
}
}

View File

@ -806,6 +806,8 @@ void SMESHGUI_AddQuadraticElementDlg::ClickOnApply()
SetEditCorners();
updateButtons();
SMESHGUI::Modified();
}
//=================================================================================

View File

@ -331,6 +331,8 @@ bool SMESHGUI_BuildCompoundDlg::ClickOnApply()
SMESH::DisplayActor(SMESH::GetActiveWindow(), anActor);
}// end IPAL21468
SMESHGUI::Modified();
return true;
}
return false;

View File

@ -27,6 +27,7 @@
//
#include "SMESHGUI_ConvToQuadOp.h"
#include "SMESHGUI.h"
#include "SMESHGUI_ConvToQuadDlg.h"
#include "SMESHGUI_Utils.h"
@ -234,6 +235,7 @@ bool SMESHGUI_ConvToQuadOp::onApply()
}
if( aResult )
{
SMESHGUI::Modified();
update( UF_ObjBrowser | UF_Model | UF_Viewer );
selectionDone();
}

View File

@ -574,6 +574,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
}
//ConstructorsClicked( GetConstructorId() );
busy = false;
SMESHGUI::Modified();
}
}

View File

@ -219,6 +219,7 @@ bool SMESHGUI_DeleteGroupDlg::onApply()
myListGrp.clear();
mySelectionMgr->clearSelected();
SMESH::UpdateView();
SMESHGUI::Modified();
mySMESHGUI->updateObjBrowser(true);
myBlockSelection = false;

View File

@ -672,6 +672,7 @@ bool SMESHGUI_EditMeshDlg::ClickOnApply()
}
SMESH::UpdateView();
SMESHGUI::Modified();
return true;
}

View File

@ -671,6 +671,8 @@ bool SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply()
if ( myMeshActor )
SMESH::Update( myMeshActor->getIO(), myMeshActor->GetVisibility() );
SMESHGUI::Modified();
if ( MakeGroupsCheck->isEnabled() && MakeGroupsCheck->isChecked() )
mySMESHGUI->updateObjBrowser(true); // new groups may appear
//SMESH::UpdateView();

View File

@ -572,6 +572,8 @@ bool SMESHGUI_ExtrusionDlg::ClickOnApply()
mySelectionMgr->clearSelected();
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;
}

View File

@ -852,6 +852,7 @@ bool SMESHGUI_GroupDlg::onApply()
}
}
SMESHGUI::Modified();
mySMESHGUI->updateObjBrowser(true);
SMESH::UpdateView(); // asv: fix of BUG PAL5515
mySelectionMgr->clearSelected();
@ -957,6 +958,7 @@ bool SMESHGUI_GroupDlg::onApply()
}
}
SMESHGUI::Modified();
mySMESHGUI->updateObjBrowser(true);
mySelectionMgr->clearSelected();
return true;

View File

@ -27,6 +27,7 @@
#include "SMESHGUI_GroupOnShapeDlg.h"
#include "SMESH_TypeFilter.hxx"
#include "SMESHGUI.h"
#include "SMESHGUI_Utils.h"
#include "SMESHGUI_GEOMGenUtils.h"
@ -347,6 +348,8 @@ bool SMESHGUI_GroupOnShapeOp::onApply()
group = mesh->CreateGroupFromGEOM( elemType, name.toLatin1().data(), geom );
}
}
SMESHGUI::Modified();
update( UF_ObjBrowser | UF_Model );
init();

View File

@ -604,6 +604,7 @@ bool SMESHGUI_UnionGroupsDlg::onApply()
if ( aRes )
{
SMESHGUI::Modified();
getSMESHGUI()->updateObjBrowser(true);
reset();
return true;
@ -706,6 +707,7 @@ bool SMESHGUI_IntersectGroupsDlg::onApply()
if ( aRes )
{
SMESHGUI::Modified();
getSMESHGUI()->updateObjBrowser(true);
reset();
return true;
@ -872,6 +874,7 @@ bool SMESHGUI_CutGroupsDlg::onApply()
if ( aRes )
{
SMESHGUI::Modified();
getSMESHGUI()->updateObjBrowser(true);
reset();
return true;
@ -1023,6 +1026,7 @@ bool SMESHGUI_DimGroupDlg::onApply()
if ( aRes )
{
SMESHGUI::Modified();
getSMESHGUI()->updateObjBrowser(true);
reset();
return true;

View File

@ -414,6 +414,7 @@ namespace SMESH
if (aHypSObject) {
if (!aHypName.isEmpty())
SMESH::SetName(aHypSObject, aHypName);
SMESHGUI::Modified();
SMESHGUI::GetSMESHGUI()->updateObjBrowser();
return aHypothesis._retn();
}

View File

@ -233,6 +233,7 @@ void SMESHGUI_Make2DFrom3DOp::startOperation()
myDlg->SetMeshInfo( aNewInfo );
myDlg->show(); /*exec();*/
commit();
SMESHGUI::Modified();
}
//================================================================================

View File

@ -424,6 +424,7 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
aList.Append(myMeshActor->getIO());
selectionMgr()->setSelectedObjects(aList,false);
SMESH::UpdateView();
SMESHGUI::Modified();
}
}
catch (const SALOME::SALOME_Exception& S_ex) {

View File

@ -150,7 +150,10 @@ bool SMESHGUI_MeshOp::onApply()
else if ( !myToCreate )
aResult = editMeshOrSubMesh( aMess );
if ( aResult )
{
SMESHGUI::Modified();
update( UF_ObjBrowser | UF_Model );
}
}
catch ( const SALOME::SALOME_Exception& S_ex )
{

View File

@ -138,6 +138,9 @@ bool SMESHGUI_MeshOrderOp::onApply()
SUIT_OverrideCursor aWaitCursor;
bool res = myMgr ? myMgr->SetMeshOrder() : false;
if( res )
SMESHGUI::Modified();
delete myMgr;
myMgr = 0;

View File

@ -510,6 +510,7 @@ bool SMESHGUI_MeshPatternDlg::onApply()
}
mySelectionMgr->clearSelected();
SMESH::UpdateView();
SMESHGUI::Modified();
mySMESHGUI->updateObjBrowser(true);

View File

@ -356,6 +356,7 @@ bool SMESHGUI_MoveNodesDlg::onApply()
aList.Append(myMeshActor->getIO());
mySelectionMgr->setSelectedObjects(aList,false);
SMESH::UpdateView();
SMESHGUI::Modified();
reset();
}

View File

@ -1052,6 +1052,7 @@ bool SMESHGUI_MultiEditDlg::onApply()
mySelector->ClearIndex();
mySelectionMgr->setSelectedObjects( sel );
SMESH::UpdateView();
SMESHGUI::Modified();
}
myListBox->clear();

View File

@ -526,6 +526,9 @@ bool SMESHGUI_NodesDlg::ClickOnApply()
}
}
}
SMESHGUI::Modified();
return true;
}

View File

@ -244,6 +244,7 @@ void SMESHGUI_RemoveElementsDlg::ClickOnApply()
myEditCurrentArgument->clear();
mySelector->ClearIndex();
SMESH::UpdateView();
SMESHGUI::Modified();
}
}
}

View File

@ -246,6 +246,7 @@ void SMESHGUI_RemoveNodesDlg::ClickOnApply()
myEditCurrentArgument->clear();
mySelector->ClearIndex();
SMESH::UpdateView();
SMESHGUI::Modified();
}
SMESH::SetPointRepresentation(true);

View File

@ -243,6 +243,7 @@ void SMESHGUI_RenumberingDlg::ClickOnApply()
//mySelectionMgr->clearSelected();
SMESH::UpdateView();
SMESHGUI::Modified();
}
}

View File

@ -557,6 +557,8 @@ bool SMESHGUI_RevolutionDlg::ClickOnApply()
ConstructorsClicked(GetConstructorId());
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;

View File

@ -456,6 +456,8 @@ bool SMESHGUI_RotationDlg::ClickOnApply()
Init(false);
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;

View File

@ -526,6 +526,8 @@ bool SMESHGUI_ScaleDlg::ClickOnApply()
ConstructorsClicked(GetConstructorId());
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;

View File

@ -533,6 +533,8 @@ bool SMESHGUI_SewingDlg::ClickOnApply()
Init();
ConstructorsClicked(GetConstructorId());
SMESHGUI::Modified();
}
}

View File

@ -514,6 +514,7 @@ bool SMESHGUI_SingleEditDlg::onApply()
mySelectionMgr->setSelectedObjects(aList, false);
onSelectionDone();
SMESH::UpdateView();
SMESHGUI::Modified();
}
return aResult;

View File

@ -395,6 +395,7 @@ bool SMESHGUI_SmoothingDlg::ClickOnApply()
}
SMESH::UpdateView();
SMESHGUI::Modified();
Init();
mySelectedObject = SMESH::SMESH_IDSource::_nil();

View File

@ -546,6 +546,8 @@ bool SMESHGUI_SymmetryDlg::ClickOnApply()
ConstructorsClicked(GetConstructorId());
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;
}

View File

@ -530,6 +530,8 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
ConstructorsClicked(GetConstructorId());
mySelectedObject = SMESH::SMESH_IDSource::_nil();
SelectionIntoArgument();
SMESHGUI::Modified();
}
return true;