Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.h
index 1c6acb8c6e34bd7905e88648464bc777e08ff67b..3353209c5cd8cc51ead29a0d60cfedfe61f3fd14 100644 (file)
@@ -48,7 +48,7 @@ class HYDROGUI_CalculationDlg : public HYDROGUI_Wizard
   Q_OBJECT
 
 public:
-  HYDROGUI_CalculationDlg( HYDROGUI_Module* theModule, const QString& theTitle );
+  HYDROGUI_CalculationDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool IsComplete );
   virtual ~HYDROGUI_CalculationDlg();
 
   void                       reset();
@@ -63,28 +63,50 @@ public:
   void                       setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getAllGeomObjects() const;
   void                       setPolylineNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
-  // TODO: setLandCoverMapsNames(...)
+  void                       setLandCoverMapsNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   void                       setStricklerTableNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getSelectedGeomObjects() const;
   QStringList                getSelectedAvailableGeomObjects() const;
   QStringList                getSelectedGroups() const;
   QStringList                getSelectedAvailableGroups() const;
+  QStringList                getSelectedBoundaryPolygons() const;
+  QStringList                getSelectedISBoundaryPolygons() const;
+  QStringList                getSelectedAvailableBoundaryPolygons() const;
   HYDROGUI_Zone*             getCurrentZone() const;
   
   void                       setAvailableGroups( const QStringList& );
 
+  void                       setAvailableBoundaryPolygons( const QStringList&, const QVector<int>& );
+
   void                       setEditZonesEnabled( const bool theIsEnabled );
 
   HYDROData_ListOfRules      getRules() const;
   void                       setRules( const HYDROData_ListOfRules& theRules ) const;
 
+  QList<Handle(HYDROData_Entity)> getGeometryObjects(bool GeomObjOnly = true);
+
 public slots:
   void                       setMode( int theMode );
+  void                       setGeomOrderingEnabled( int enabled );
+
   void                       setBoundary( const QString& theObjName );
   void                       includeGeomObjects( const QStringList& theObjects );
   void                       excludeGeomObjects( const QStringList& theObjects );
   void                       includeGroups( const QStringList& theObjects );
   void                       excludeGroups( const QStringList& theObjects );
+
+  void                       hideAvailableGeomObjects( const QStringList& theObjects );
+  void                       setAlreadyAddedGeomObjects( const QStringList& theObjects ); 
+  QStringList                getAlreadyAddedGeomObjects();
+
+
+  void                       includeBoundaryPolygons( const QStringList& theObjects );
+  void                       includeISBoundaryPolygons( const QStringList& theObjects );
+
+  void                       excludeBoundaryPolygons( const QStringList& theObjects );
+  void                       excludeISBoundaryPolygons( const QStringList& theObjects );
+
+
   void                       onEmptyName();
   void                       onAlreadyExists( QString theName );
   void                       refreshZonesBrowser();
@@ -93,6 +115,7 @@ public slots:
   void                       onRuleChanged();
 
   void                       setStricklerTable( const QString& theStricklerTableName, bool theBlockSignals = true );
+  void                       setLandCoverMap( const QString& theLandCoverMapName, bool theBlockSignals = true );
   
   /**
    * Process items selection: hide/show bathymetry merge type selector.
@@ -121,13 +144,16 @@ signals:
   void                       removeGroups();
   void                       groupsSelected();
 
+  void                       addBoundaryPolygons();
+  void                       removeBoundaryPolygons();
+
   void                       boundarySelected( const QString & theObjName );
   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* );
 
-  void                       landCoverMapSelected();
+  void                       landCoverMapSelected( const QString & theObjName );
 
   void                       StricklerTableSelected( const QString & theObjName );
 
@@ -141,12 +167,12 @@ protected slots:
   void OnNewRegion();
 
 private:
-  QList<Handle(HYDROData_Entity)> getGeometryObjects();
-  
-  Handle(HYDROData_LandCoverMap) getLandCoverMap();
+
   
   QWizardPage*               createObjectsPage();
   QWizardPage*               createGroupsPage();
+  QWizardPage*               createBoundaryPolygonsPage();
+
   QWizardPage*               createLandCoverMapPage();
   QWizardPage*               createZonesPage();
   
@@ -157,7 +183,7 @@ private:
   HYDROGUI_NameValidator*    myValidator;
 
   QComboBox*                 myPolylineName;
-  // TODO: myLandCoverMapName
+  QComboBox*                 myLandCoverMapName;
   QComboBox*                 myStricklerTableName;
 
   QButtonGroup*              myModeButtons;
@@ -165,16 +191,26 @@ private:
   QListWidget*               myAvailableGeomObjects;
   HYDROGUI_OrderedListWidget* myGeomObjects;
 
+  QListWidget*               myAlreadyAddedGeomObjects;
+
+
   HYDROGUI_PriorityWidget*   myPriorityWidget;
 
   QListWidget*               myAvailableGroups;
   QListWidget*               myGroups;
 
+  QListWidget*               myAvailableBoundaryPolygons;
+  QListWidget*               myBoundaryPolygons;
+  QListWidget*               myISBoundaryPolygons;
+
+
   HYDROGUI_DataBrowser*      myBrowser;
   Handle(HYDROData_CalculationCase) myEditedObject;
   QComboBox*                 myBathymetryChoice;
   QLabel*                    myBathymetryLabel;
   HYDROGUI_Zone*             myCurrentZone;
+
+  bool                       myIsComplete;
 };
 
 #endif