#define HYDROGUI_ImportLandCoverMapDlg_H
#include "HYDROGUI_Wizard.h"
+#include <qvector.h>
class QListWidget;
class QLineEdit;
class QComboBox;
class QLabel;
class QTableWidget;
+class QCheckBox;
+
class HYDROGUI_ImportLandCoverMapDlg : public HYDROGUI_Wizard
{
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 setSelectedPolygonNames( const QStringList& theNames );
+ void setAttributeNames( const QStringList& theAttrNames );
- void setSelectedPolygonNames( const QStringList& theNames );
+ QStringList getSelectedPolygonNames() const;
+ QString getSelectedFieldName() const;
- QStringList getSelectedPolygonNames() 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 theState);
+ bool getFirstPageState() const;
+ bool getAttrCheckBoxState() const;
+ void getValAttr2StricklerTypeCorr(QStringList& theAttrValues, QStringList& theST);
+ QVector<int> getSelectedPolygonIndices() const;
+ bool isPolygonListEmpty() const;
-signals:
- void FileSelected( const QString& theFileName );
+ bool CheckFirstPageFilling() const;
-protected slots:
- void onBrowse();
+ void setDbfState(bool theState);
+ bool getDbfState() const;
+ int getCurrentWizardIndex() 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 selectionChanged( const QStringList& );
+ void FileSelected( const QString& theFileName );
+ void selectionChanged( const QStringList& );
-public slots:
- void onItemSelectionChanged();
+protected slots:
+ void onBrowse();
+ void onItemSelectionChanged();
+ void onAttrCBChecked(bool theState);
+ void onComboBoxColorChanged(int theInd);
-private:
+protected:
+ bool acceptCurrent() const;
- QWizardPage* createPage1();
- QWizardPage* createPage2();
- QWizardPage* createPage3();
+private:
- 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