Salome HOME
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.h
index 37206ede90ca26759bd3511c617c2a76407e077d..15b7578baca31ffc6f291ffe1d347e9ec22da044 100644 (file)
@@ -31,8 +31,12 @@ class QGroupBox;
 class QLineEdit;
 class QListWidget;
 class QComboBox;
+class QLabel;
+class QStringList;
 class HYDROGUI_DataBrowser;
 class HYDROGUI_NameValidator;
+class SUIT_DataObject;
+class HYDROGUI_Zone;
 
 class HYDROGUI_CalculationDlg : public HYDROGUI_Wizard
 {
@@ -49,13 +53,45 @@ public:
 
   void                       setEditedObject( const Handle(HYDROData_CalculationCase) theCase );
 
-  void                       setGeomObjects( const QStringList& theObjects );
-  void                       setSelectedGeomObjects( const QStringList& theObjects );
+  void                       setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries );
+  void                       setPolylineNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getSelectedGeomObjects() const;
+  QStringList                getSelectedAvailableGeomObjects() const;
+  HYDROGUI_Zone*             getCurrentZone() const;
+
+public slots:
+  void                       setBoundary( const QString& theObjName );
+  void                       includeGeomObjects( const QStringList& theObjects );
+  void                       excludeGeomObjects( const QStringList& theObjects );
+  void                       onEmptyName();
+  void                       onAlreadyExists( QString theName );
+  void                       refreshZonesBrowser();
+  /**
+   * Process items selection: hide/show bathymetry merge type selector.
+   */
+  void                       onSelected( SUIT_DataObject* theObject );
+  /**
+   * Process merge type selection: set the selected bathymetry merge type for the currently selected zone.
+   */
+  void                       onMergeTypeSelected( int theIndex );
+  /**
+   * Process zones moving. Create a new region with dropped zones or add to existing one.
+   */
+  void                       onZonesDropped( const QList<SUIT_DataObject*>& theList, 
+    SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction );
+
+signals:
+  void                       addObjects();
+  void                       removeObjects();
+  void                       objectSelected( const QString & theObjName );
+  void                       boundarySelected( const QString & theObjName );
+  void                       splitZones();
+  void                       hideZones();
+  void                       setMergeType( int theMergeType, QString& theBathymetryName );
+  void                       createRegion( const QList<SUIT_DataObject*>& theZonesList );
+  void                       moveZones( SUIT_DataObject* theRegion, const QList<SUIT_DataObject*>& theZonesList );
+  void                       clickedInZonesBrowser( SUIT_DataObject* );
 
-  public slots:
-    void                     onEmptyName();
-    void                     onAlreadyExists( QString theName );
 private:
 
   QWizardPage*               createObjectsPage();
@@ -65,11 +101,16 @@ private:
   QLineEdit*                 myObjectName;
   HYDROGUI_NameValidator*    myValidator;
 
+  QComboBox*                 myPolylineName;
+
+  QListWidget*               myAvailableGeomObjects;
   QListWidget*               myGeomObjects;
 
-  HYDROGUI_DataBrowser*         myBrowser;
+  HYDROGUI_DataBrowser*      myBrowser;
   Handle(HYDROData_CalculationCase) myEditedObject;
-  QComboBox*                    myBathymetryChoice;
+  QComboBox*                 myBathymetryChoice;
+  QLabel*                    myBatimetryLabel;
+  HYDROGUI_Zone*             myCurrentZone;
 };
 
 #endif