Salome HOME
Minor change.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationOp.h
index 17cebaff607581ea15f04bfbe34c0df16c1a16aa..3cf13988affa816f1adf4c57d1fd81a4d6c08db8 100644 (file)
 
 #include "HYDROGUI_Operation.h"
 
-#include "HYDROGUI_SplitZonesTool.h"
+#include "HYDROData_SplitToZonesTool.h"
 #include "HYDROGUI_Shape.h"
 
-#include <HYDROData_Calculation.h>
+#include <HYDROData_CalculationCase.h>
 #include <HYDROData_Region.h>
 
 class SUIT_ViewManager;
 class OCCViewer_ViewManager;
+class HYDROGUI_CalculationDlg;
+class SUIT_DataObject;
 
 class HYDROGUI_CalculationOp : public HYDROGUI_Operation
 {
@@ -43,7 +45,7 @@ class HYDROGUI_CalculationOp : public HYDROGUI_Operation
     QString                            RegionName;
     QColor                             FillingColor;
     QColor                             BorderColor;
-    HYDROGUI_SplitZonesTool::SplitData SplitData;
+    HYDROData_SplitToZonesTool::SplitData SplitData;
     HYDROGUI_Shape*                    Shape;
     Handle(HYDROData_Region)           DataRegion;
 
@@ -76,19 +78,36 @@ protected:
 
   virtual HYDROGUI_InputPanel*    createInputPanel() const;
 
+  virtual void                    onApply();
   virtual bool                    processApply( int& theUpdateFlags, QString& theErrorMsg );
 
 protected slots:
+  /**
+   * Add geometry objects selected in the module browser to the calculation case.
+   */
+  void                            onAddObjects();
+  /**
+   * Remove selected objects from the calculation case.
+   */
+  void                            onRemoveObjects();
+  /**
+   * Set the given bathymetry merge type to the current zone.
+   */
+  void                            onSetMergeType( int theMergeType, QString& theBathymetryName );
+  void                            onMoveZones( SUIT_DataObject* theRegionItem, 
+                                               const QList<SUIT_DataObject*>& theZonesList );
+  void                            onCreateRegion( const QList<SUIT_DataObject*>& theZonesList );
   void                            onSplitZones();
   void                            onLastViewClosed( SUIT_ViewManager* );
 
 private:
   void                            createPreview();
   void                            closePreview();
+  void                            updateGeomObjectsList( HYDROGUI_CalculationDlg* thePanel ) const;
 
 private:
   bool                            myIsEdit;
-  Handle(HYDROData_Calculation)   myEditedObject;
+  Handle(HYDROData_CalculationCase) myEditedObject;
 
   SUIT_ViewManager*               myActiveViewManager;