X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROGUI%2FHYDROGUI_ProfileOp.cxx;h=609bdafdf98cca622bbcfa9f42d153daee9234d9;hb=7810759dad7d7f4552ad1008af73112509256813;hp=fa0ad6d72479b52aa4b85484c41c7acb1466ad3c;hpb=2d99821157e770385d7af917b2d22d6aa3cacb7e;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index fa0ad6d7..609bdafd 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx @@ -24,7 +24,7 @@ #include "HYDROGUI_ProfileDlg.h" #include "HYDROGUI_Tool.h" #include "HYDROGUI_UpdateFlags.h" - +#include #include "HYDROData_Document.h" #include "HYDROData_Profile.h" #include "CurveCreator_Profile.hxx" @@ -155,7 +155,8 @@ HYDROGUI_InputPanel* HYDROGUI_ProfileOp::createInputPanel() const } bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags, - QString& theErrorMsg ) + QString& theErrorMsg, + QStringList& theBrowseObjectsEntries ) { HYDROGUI_ProfileDlg* aPanel = ::qobject_cast( inputPanel() ); if ( !aPanel ) @@ -228,9 +229,23 @@ bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags, aProfileObj->SetBorderColor( HYDROData_Profile::DefaultBorderColor() ); } + // At first we update the child u,z profile object + aProfileUZ->SetToUpdate( true ); + aProfileUZ->Update(); + + // And now we update our edited object aProfileObj->Update(); + module()->setIsToUpdate( aProfileObj ); + + theUpdateFlags = UF_Model; + if ( myIsEdit ) + theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer; + else + { + QString anEntry = HYDROGUI_DataObject::dataObjectEntry( aProfileObj ); + theBrowseObjectsEntries.append( anEntry ); + } - theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced; return true; }