Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_ProfileOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx
b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx
index bda67417e629b265e12c3a3345c31629ace59d38..609bdafdf98cca622bbcfa9f42d153daee9234d9 100644
(file)
--- 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 "HYDROGUI_ProfileDlg.h"
#include "HYDROGUI_Tool.h"
#include "HYDROGUI_UpdateFlags.h"
-
+#include <HYDROGUI_DataObject.h>
#include "HYDROData_Document.h"
#include "HYDROData_Profile.h"
#include "CurveCreator_Profile.hxx"
#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,
}
bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags,
- QString& theErrorMsg )
+ QString& theErrorMsg,
+ QStringList& theBrowseObjectsEntries )
{
HYDROGUI_ProfileDlg* aPanel = ::qobject_cast<HYDROGUI_ProfileDlg*>( inputPanel() );
if ( !aPanel )
{
HYDROGUI_ProfileDlg* aPanel = ::qobject_cast<HYDROGUI_ProfileDlg*>( inputPanel() );
if ( !aPanel )
@@
-236,7
+237,15
@@
bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags,
aProfileObj->Update();
module()->setIsToUpdate( aProfileObj );
aProfileObj->Update();
module()->setIsToUpdate( aProfileObj );
- theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
+ theUpdateFlags = UF_Model;
+ if ( myIsEdit )
+ theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
+ else
+ {
+ QString anEntry = HYDROGUI_DataObject::dataObjectEntry( aProfileObj );
+ theBrowseObjectsEntries.append( anEntry );
+ }
+
return true;
}
return true;
}