Salome HOME
Merge branch 'BR_LCM_COMP' into HEAD
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverMapDlg.h
index 6030b8adf3765603bf661c743fa9f3dc11359cc1..e7992563e586a2e349dd18b6b1964412f9c1d8c5 100644 (file)
@@ -29,6 +29,7 @@ class QGroupBox;
 class QComboBox;
 class QLabel;
 class QTableWidget;
+class QCheckBox;
 
 
 class HYDROGUI_ImportLandCoverMapDlg : public HYDROGUI_Wizard
@@ -42,14 +43,9 @@ public:
   void                  reset();
 
   void                  setPolygonNames( const QStringList& theNames );
-  //void                  removePolygonNames( const QStringList& theNames );
-
   void                  setSelectedPolygonNames( const QStringList& theNames );
-
   void                  setAttributeNames( const QStringList& theAttrNames );
 
-  void                  FillCorrTable(const QStringList& theFirstColumn, const QStringList& theSecondColumn);
-
   QStringList           getSelectedPolygonNames() const;
   QString               getSelectedFieldName() const;
 
@@ -59,11 +55,18 @@ public:
   void                  setFileName( const QString& theFileName );
   QString               getFileName() const;
 
-  void                  setFirstPageState(bool bState);
-  //void                  setThirdPageState(bool bState);
-  void                  GetAttribute2StricklerCorr(QStringList& AttrValues, QStringList& ST);
+  void                  setFirstPageState(bool theState);
+  bool                  getAttrCheckBoxState() const;
+  void                  getValAttr2StricklerTypeCorr(QStringList& theAttrValues, QStringList& theST);
   QVector<int>          getSelectedPolygonIndices() const;
 
+  void                  setDbfState(bool theState);
+  bool                  getDbfState() const;
+
+  void                  FillCorrespondenceTable(const QStringList& theFirstColumn, 
+                                                const QStringList& theSecondColumn,
+                                                const QVector<int> theDefCBIndices,
+                                                const QVector<QColor> theColors);
 signals:
   void                  FileSelected( const QString& theFileName );
   void                  selectionChanged( const QStringList& );
@@ -71,6 +74,8 @@ signals:
 protected slots:
   void                  onBrowse();
   void                  onItemSelectionChanged();
+  void                  onAttrCBChecked(bool theState);
+  void                  onComboBoxColorChanged(int theInd);
 
 protected:
   bool                  acceptCurrent() const;
@@ -84,24 +89,23 @@ private:
   //First page
   QLineEdit*            myFileName; 
   QGroupBox*            myFileNameGroup;
-  QListWidget*          myPolygons;    
-
+  QListWidget*          myPolygonsListWidget;          
   QGroupBox*            myObjectNameGroup;
   QLineEdit*            myObjectName;
+  QCheckBox*            myAttrCheckBox;
 
-  //second page
-  QGroupBox*            myAttrNameGroup;
-  QListWidget*          myDBFAttr; 
-  QGroupBox*            myCorrNameGroup;
+  //Second page
+  QListWidget*          myDBFAttrListWidget; 
+  QLabel*               myAvAttrLabel;
 
-  //third page
-  QLabel*               myCLabel;
-  QTableWidget*         myTableW;
+  //Third page
+  QLabel*               myCorrLabel;
+  QTableWidget*         myCorrTableWidget;
 
-  //State of pages
+  //State of the first page
   bool                  myFirstPageState;
-  //bool                  myThirdPageState;
-
+  QVector<QColor>       myStrColors;
+  bool                  myDbfState;
 };
 
 #endif