Salome HOME
Merge branch 'BR_MULTI_BATHS' into HEAD
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.h
index f4ee385fd047cbee7db7f1c5bf57e309f9554612..6b5a44639c9d80a33394c26cffd47b04bcdfca63 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "HYDROGUI_Wizard.h"
 #include <HYDROData_CalculationCase.h>
-#include <HYDROData_LandCover.h>
+#include <HYDROData_LandCoverMap.h>
 
 class HYDROGUI_ObjSelector;
 class HYDROGUI_DataBrowser;
@@ -54,8 +54,7 @@ public:
   void                       reset();
 
   int                        getMode() const;
-  int                        getLandCoverMode() const;
-
+  
   void                       setObjectName( const QString& theName );
   QString                    getObjectName() const;
 
@@ -63,14 +62,11 @@ public:
 
   void                       setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getAllGeomObjects() const;
-  void                       setAllLandCovers( const QStringList& theObjects, const QStringList& theObjectsEntries );
-  QStringList                getAllLandCovers() const;
   void                       setPolylineNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
+  void                       setLandCoverMapsNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   void                       setStricklerTableNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getSelectedGeomObjects() const;
-  QStringList                getSelectedLandCovers() const;
   QStringList                getSelectedAvailableGeomObjects() const;
-  QStringList                getSelectedAvailableLandCovers() const;
   QStringList                getSelectedGroups() const;
   QStringList                getSelectedAvailableGroups() const;
   HYDROGUI_Zone*             getCurrentZone() const;
@@ -78,14 +74,10 @@ public:
   void                       setAvailableGroups( const QStringList& );
 
   void                       setEditZonesEnabled( const bool theIsEnabled );
-  void                       setEditLandCoversEnabled( const bool theIsEnabled );
 
   HYDROData_ListOfRules      getRules() const;
   void                       setRules( const HYDROData_ListOfRules& theRules ) const;
 
-  HYDROData_ListOfRules      getLandCoverRules() const;
-  void                       setLandCoverRules( const HYDROData_ListOfRules& theRules ) const;
-
 public slots:
   void                       setMode( int theMode );
   void                       setBoundary( const QString& theObjName );
@@ -98,13 +90,11 @@ public slots:
   void                       refreshZonesBrowser();
   void                       onDataChanged();
   void                       onOrderChanged();
+  void                       onRuleChanged();
 
-  void                       setLandCoverMode( int theMode );
   void                       setStricklerTable( const QString& theStricklerTableName, bool theBlockSignals = true );
-  void                       includeLandCovers( const QStringList& theLandCovers, bool theReset );
-  void                       excludeLandCovers( const QStringList& theLandCovers );
-  void                       onOrderLandCoverChanged();
-
+  void                       setLandCoverMap( const QString& theLandCoverMapName, bool theBlockSignals = true );
+  
   /**
    * Process items selection: hide/show bathymetry merge type selector.
    */
@@ -126,6 +116,7 @@ signals:
   void                       removeObjects();
   void                       objectsSelected();
   void                       orderChanged( bool& isConfirmed );
+  void                       ruleChanged( bool& isConfirmed );
 
   void                       addGroups();
   void                       removeGroups();
@@ -137,15 +128,12 @@ signals:
   void                       moveZones( SUIT_DataObject* theRegion, const QList<SUIT_DataObject*>& theZonesList );
   void                       clickedInZonesBrowser( SUIT_DataObject* );
 
-  void                       changeLandCoverMode( int theMode );
+  void                       landCoverMapSelected( const QString & theObjName );
 
-  void                       addLandCovers();
-  void                       removeLandCovers();
-  void                       landCoversSelected();
-  void                       orderLandCoverChanged( bool& isConfirmed );
-  
   void                       StricklerTableSelected( const QString & theObjName );
 
+  void                       regenerateColors();
+
 protected:
 
   virtual bool               acceptCurrent() const;
@@ -155,46 +143,37 @@ protected slots:
 
 private:
   QList<Handle(HYDROData_Entity)> getGeometryObjects();
-  QList<Handle(HYDROData_Entity)> getLandCovers();
-
+  
   QWizardPage*               createObjectsPage();
   QWizardPage*               createGroupsPage();
-  QWizardPage*               createLandCoversPage();
+  QWizardPage*               createLandCoverMapPage();
   QWizardPage*               createZonesPage();
-  QWizardPage*               createLandCoversPartitionPage();
-
+  
   QSplitter*                 mySplitter;
-  QSplitter*                 myLandCoverSplitter;
-
+  
   QGroupBox*                 myObjectNameGroup;
   QLineEdit*                 myObjectName;
   HYDROGUI_NameValidator*    myValidator;
 
   QComboBox*                 myPolylineName;
+  QComboBox*                 myLandCoverMapName;
   QComboBox*                 myStricklerTableName;
 
   QButtonGroup*              myModeButtons;
-  QButtonGroup*              myLandCoverModeButtons;
 
   QListWidget*               myAvailableGeomObjects;
   HYDROGUI_OrderedListWidget* myGeomObjects;
 
   HYDROGUI_PriorityWidget*   myPriorityWidget;
-  HYDROGUI_PriorityWidget*   myLandCoverPriorityWidget;
 
   QListWidget*               myAvailableGroups;
   QListWidget*               myGroups;
 
-  QListWidget*               myAvailableLandCovers;
-  HYDROGUI_OrderedListWidget* myLandCovers;
-
   HYDROGUI_DataBrowser*      myBrowser;
   Handle(HYDROData_CalculationCase) myEditedObject;
   QComboBox*                 myBathymetryChoice;
   QLabel*                    myBathymetryLabel;
   HYDROGUI_Zone*             myCurrentZone;
-
-  HYDROGUI_DataBrowser*      myLandCoverBrowser;
 };
 
 #endif