#define HYDROGUI_ImportLandCoverMapDlg_H
#include "HYDROGUI_Wizard.h"
+#include <qvector.h>
class QListWidget;
class QLineEdit;
class QLabel;
class QTableWidget;
+
class HYDROGUI_ImportLandCoverMapDlg : public HYDROGUI_Wizard
{
Q_OBJECT
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 );
- QStringList getSelectedPolygonNames() const;
+ void setAttributeNames( const QStringList& theAttrNames );
- void setObjectName( const QString& theName );
- QString getObjectName() const;
+ void FillCorrTable(const QStringList& theFirstColumn, const QStringList& theSecondColumn);
- void setFileName( const QString& theFileName );
- QString getFileName() const;
+ QStringList getSelectedPolygonNames() const;
+ QString getSelectedFieldName() const;
-signals:
- void FileSelected( const QString& theFileName );
+ void setObjectName( const QString& theName );
+ QString getObjectName() const;
-protected slots:
- void onBrowse();
+ 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 selectionChanged( const QStringList& );
+ void FileSelected( const QString& theFileName );
+ void selectionChanged( const QStringList& );
+
+protected slots:
+ 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;
};