#include "HYDROGUI_DigueDlg.h"
#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_Shape.h"
#include <HYDROData_Document.h>
#include <HYDROData_Digue.h>
}
}
+bool HYDROGUI_DigueOp::processApply( int& theUpdateFlags,
+ QString& theErrorMsg )
+{
+ if ( !HYDROGUI_ChannelOp::processApply( theUpdateFlags, theErrorMsg ) )
+ return false;
+
+ if ( !myIsEdit )
+ {
+ myEditedObject->SetFillingColor( HYDROData_Digue::DefaultFillingColor() );
+ myEditedObject->SetBorderColor( HYDROData_Digue::DefaultBorderColor() );
+ }
+
+ return true;
+}
+
HYDROGUI_InputPanel* HYDROGUI_DigueOp::createInputPanel() const
{
HYDROGUI_DigueDlg* aPanel = new HYDROGUI_DigueDlg( module(), getName() );