X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ImportLandCoverMapDlg.h;h=524f41a65455208e03e61538ae0cf007993059e3;hb=dbee981213585cb317e098b0d2a288761cd3d37b;hp=c0ec3de86890d2be27c0cf38251e8833c2d3acbf;hpb=0f2cb979c8d6ea008efeb10454f30da10b0daa8a;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.h b/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.h index c0ec3de8..524f41a6 100644 --- a/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.h +++ b/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.h @@ -21,6 +21,7 @@ #define HYDROGUI_ImportLandCoverMapDlg_H #include "HYDROGUI_Wizard.h" +#include 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 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 theDefCBIndices, + const QVector 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 myStrColors; + bool myDbfState; + bool myUpdateViewerState; }; #endif