}
}
- aZone->setMergeStricklerType( theMergeType, theStricklerTypeName );
+void HYDROGUI_CalculationOp::onSetMergeStricklerType( int theMergeType, QString& theStricklerTypeName )
+{
+ HYDROGUI_CalculationDlg* aPanel =
+ ::qobject_cast<HYDROGUI_CalculationDlg*>( inputPanel() );
+ if ( aPanel )
+ {
+ HYDROGUI_Zone* aZone = aPanel->getCurrentZone();
+ if ( aZone )
+ {
++ aZone->setMergeType( theMergeType, theStricklerTypeName );
+ HYDROGUI_Shape* aShape = module()->getObjectShape( HYDROGUI_Module::VMR_PreviewCaseZones, aZone->modelObject() );
+ if ( aShape )
+ {
+ aShape->update( true, false );
+ }
+ }
+ aPanel->refreshLandCoverZonesBrowser();
+ }
+}
+
void HYDROGUI_CalculationOp::onAddObjects()
{
HYDROGUI_CalculationDlg* aPanel =
void onRemoveLandCovers();
/**
- * Set the given bathymetry merge type to the current zone.
+ * Set the given bathymetry/type merge type to the current zone.
*/
- void onSetMergeType( int theMergeType, QString& theBathymetryName );
+ void onSetMergeType( int theMergeType, QString& theMergeObjectName );
+ /**
+ * Set the given Strickler merge type to the current zone.
+ */
+ void onSetMergeStricklerType( int theMergeType, QString& theStricklerTypeName );
/**
* Selected zones are moved to the existing region.
*/