Salome HOME
Merge branch 'BR_LAND_COVER_MAP' of ssh://git.salome-platform.org/modules/hydro into...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverMapDlg.h
index c0ec3de86890d2be27c0cf38251e8833c2d3acbf..524f41a65455208e03e61538ae0cf007993059e3 100644 (file)
@@ -21,6 +21,7 @@
 #define HYDROGUI_ImportLandCoverMapDlg_H
 
 #include "HYDROGUI_Wizard.h"
+#include <qvector.h>
 
 class QListWidget;
 class QLineEdit;
@@ -28,6 +29,8 @@ class QGroupBox;
 class QComboBox;
 class QLabel;
 class QTableWidget;
+class QCheckBox;
+
 
 class HYDROGUI_ImportLandCoverMapDlg : public HYDROGUI_Wizard
 {
@@ -37,62 +40,83 @@ public:
   HYDROGUI_ImportLandCoverMapDlg( HYDROGUI_Module* theModule, const QString& theTitle );
   virtual ~HYDROGUI_ImportLandCoverMapDlg();
 
-  void reset();
+  void                  reset();
+
+  void                  setPolygonNames( const QStringList& theNames );
+  void                  setSelectedPolygonNames( const QStringList& theNames );
+  void                  setAttributeNames( const QStringList& theAttrNames );
 
-  void setPolygonNames( const QStringList& theNames );
-  void removePolygonNames( const QStringList& theNames );
+  QStringList           getSelectedPolygonNames() const;
+  QString               getSelectedFieldName() const;
 
-  void setSelectedPolygonNames( const QStringList& theNames );
+  void                  setObjectName( const QString& theName );
+  QString               getObjectName() const;
 
-  void setAttributeNames( const QStringList& theAttrNames );
+  void                  setFileName( const QString& theFileName );
+  QString               getFileName() const;
 
-  void FillCorrTable(const QStringList& theFirstColumn, const QStringList& theSecondColumn);
+  void                  setFirstPageState(bool theState);
+  bool                  getFirstPageState() const;
+  bool                  getAttrCheckBoxState() const;
+  void                  getValAttr2StricklerTypeCorr(QStringList& theAttrValues, QStringList& theST);
+  QVector<int>          getSelectedPolygonIndices() const;
+  bool                  isPolygonListEmpty() const;
 
-  QStringList getSelectedPolygonNames() const;
-  QString getSelectedFieldName() const;
+  bool                  CheckFirstPageFilling() const;
 
-  void                       setObjectName( const QString& theName );
-  QString                    getObjectName() const;
+  void                  setDbfState(bool theState);
+  bool                  getDbfState() const;
+  int                   getCurrentWizardIndex() const;
 
-  void                       setFileName( const QString& theFileName );
-  QString                    getFileName() const;
+  void                  setViewerState(bool theState);
+  bool                  getViewerState() const;
+  
 
+  void                  FillCorrespondenceTable(const QStringList& theFirstColumn, 
+                                                const QStringList& theSecondColumn,
+                                                const QVector<int> theDefCBIndices,
+                                                const QVector<QColor> theColors);
 signals:
-  void                       FileSelected( const QString& theFileName );
+  void                  FileSelected( const QString& theFileName );
+  void                  selectionChanged( const QStringList& );
 
 protected slots:
-  void                       onBrowse();
+  void                  onBrowse();
+  void                  onItemSelectionChanged();
+  void                  onAttrCBChecked(bool theState);
+  void                  onComboBoxColorChanged(int theInd);
 
-  
-signals:
-  void selectionChanged( const QStringList& );
-
-public slots:
-  void onItemSelectionChanged();
+protected:
+  bool                  acceptCurrent() const;
 
 private:
 
-  QWizardPage*               createPage1();
-  QWizardPage*               createPage2();
-  QWizardPage*               createPage3();
-
-  QLineEdit*                 myFileName; 
-  QGroupBox*                 myFileNameGroup;
-  QListWidget*               myPolygons;       
+  QWizardPage*          createPage1();
+  QWizardPage*          createPage2();
+  QWizardPage*          createPage3();
 
-  QGroupBox*                 myObjectNameGroup;
-  QLineEdit*                 myObjectName;
+  //First page
+  QLineEdit*            myFileName; 
+  QGroupBox*            myFileNameGroup;
+  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 the first page
+  bool                  myFirstPageState;
+  QVector<QColor>       myStrColors;
+  bool                  myDbfState;
 
+  bool                  myUpdateViewerState;
 };
 
 #endif