X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PolylineOp.cxx;h=a97508ef261b4073a2d426e0371419965d2c1580;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=2c299e2f778c38e300cb5ce9f59c7df6891d07a3;hpb=43fce0c79196b05197b76ba4cad50776dba86ddb;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index 2c299e2f..a97508ef 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -23,6 +23,7 @@ #include "HYDROGUI_PolylineOp.h" #include "HYDROGUI_Module.h" +#include "HYDROGUI_DataObject.h" #include "HYDROGUI_PolylineDlg.h" #include "HYDROGUI_Tool.h" #include "HYDROGUI_UpdateFlags.h" @@ -86,7 +87,7 @@ bool HYDROGUI_PolylineOp::deleteEnabled() */ void HYDROGUI_PolylineOp::updatePreviewZLayer( int theLayer ) { - setPreviewZLayer( theLayer ); + HYDROGUI_Operation::updatePreviewZLayer( theLayer ); int aZLayer = getPreviewZLayer(); if ( aZLayer >= 0 ) @@ -211,7 +212,8 @@ HYDROGUI_InputPanel* HYDROGUI_PolylineOp::createInputPanel() const } bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags, - QString& theErrorMsg ) + QString& theErrorMsg, + QStringList& theBrowseObjectsEntries ) { HYDROGUI_PolylineDlg* aPanel = ::qobject_cast( inputPanel() ); if ( !aPanel ) @@ -321,6 +323,8 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags, if( !myIsEdit ) { module()->setObjectVisible( anActiveViewId, aPolylineObj, true ); + QString anEntry = HYDROGUI_DataObject::dataObjectEntry( aPolylineObj ); + theBrowseObjectsEntries.append( anEntry ); } return true;