Salome HOME
LCM // Import/Export of SHP p.3
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverMapDlg.h
index c0ec3de86890d2be27c0cf38251e8833c2d3acbf..6030b8adf3765603bf661c743fa9f3dc11359cc1 100644 (file)
@@ -21,6 +21,7 @@
 #define HYDROGUI_ImportLandCoverMapDlg_H
 
 #include "HYDROGUI_Wizard.h"
+#include <qvector.h>
 
 class QListWidget;
 class QLineEdit;
@@ -29,6 +30,7 @@ class QComboBox;
 class QLabel;
 class QTableWidget;
 
+
 class HYDROGUI_ImportLandCoverMapDlg : public HYDROGUI_Wizard
 {
   Q_OBJECT
@@ -37,61 +39,68 @@ public:
   HYDROGUI_ImportLandCoverMapDlg( HYDROGUI_Module* theModule, const QString& theTitle );
   virtual ~HYDROGUI_ImportLandCoverMapDlg();
 
-  void reset();
+  void                  reset();
+
+  void                  setPolygonNames( const QStringList& theNames );
+  //void                  removePolygonNames( const QStringList& theNames );
 
-  void setPolygonNames( const QStringList& theNames );
-  void removePolygonNames( const QStringList& theNames );
+  void                  setSelectedPolygonNames( const QStringList& theNames );
 
-  void setSelectedPolygonNames( const QStringList& theNames );
+  void                  setAttributeNames( const QStringList& theAttrNames );
 
-  void setAttributeNames( const QStringList& theAttrNames );
+  void                  FillCorrTable(const QStringList& theFirstColumn, const QStringList& theSecondColumn);
 
-  void FillCorrTable(const QStringList& theFirstColumn, const QStringList& theSecondColumn);
+  QStringList           getSelectedPolygonNames() const;
+  QString               getSelectedFieldName() const;
 
-  QStringList getSelectedPolygonNames() const;
-  QString getSelectedFieldName() const;
+  void                  setObjectName( const QString& theName );
+  QString               getObjectName() const;
 
-  void                       setObjectName( const QString& theName );
-  QString                    getObjectName() const;
+  void                  setFileName( const QString& theFileName );
+  QString               getFileName() const;
 
-  void                       setFileName( const QString& theFileName );
-  QString                    getFileName() const;
+  void                  setFirstPageState(bool bState);
+  //void                  setThirdPageState(bool bState);
+  void                  GetAttribute2StricklerCorr(QStringList& AttrValues, QStringList& ST);
+  QVector<int>          getSelectedPolygonIndices() const;
 
 signals:
-  void                       FileSelected( const QString& theFileName );
+  void                  FileSelected( const QString& theFileName );
+  void                  selectionChanged( const QStringList& );
 
 protected slots:
-  void                       onBrowse();
-
-  
-signals:
-  void selectionChanged( const QStringList& );
+  void                  onBrowse();
+  void                  onItemSelectionChanged();
 
-public slots:
-  void onItemSelectionChanged();
+protected:
+  bool                  acceptCurrent() const;
 
 private:
 
-  QWizardPage*               createPage1();
-  QWizardPage*               createPage2();
-  QWizardPage*               createPage3();
+  QWizardPage*          createPage1();
+  QWizardPage*          createPage2();
+  QWizardPage*          createPage3();
 
-  QLineEdit*                 myFileName; 
-  QGroupBox*                 myFileNameGroup;
-  QListWidget*               myPolygons;       
+  //First page
+  QLineEdit*            myFileName; 
+  QGroupBox*            myFileNameGroup;
+  QListWidget*          myPolygons;    
 
-  QGroupBox*                 myObjectNameGroup;
-  QLineEdit*                 myObjectName;
+  QGroupBox*            myObjectNameGroup;
+  QLineEdit*            myObjectName;
 
   //second page
-  QGroupBox*                 myAttrNameGroup;
-  QListWidget*               myDBFAttr; 
-  QGroupBox*                 myCorrNameGroup;
+  QGroupBox*            myAttrNameGroup;
+  QListWidget*          myDBFAttr; 
+  QGroupBox*            myCorrNameGroup;
 
   //third page
-  QLabel*                    myCLabel;
-  QTableWidget*              myTableW;
+  QLabel*               myCLabel;
+  QTableWidget*         myTableW;
 
+  //State of pages
+  bool                  myFirstPageState;
+  //bool                  myThirdPageState;
 
 };