Salome HOME
Import of shapefile - bug fixes; #refs 614
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverDlg.h
index db99f74fcf8b711d6072a1083c5fe3664ecdeeb8..67482a903bb15e2cdab2610e0b18409a0608a884 100644 (file)
 #ifndef HYDROGUI_ImportLandCoverDlg_H
 #define HYDROGUI_ImportLandCoverDlg_H
 
-#include <QtxDialog.h>
+#include "HYDROGUI_InputPanel.h"
 
-class QLabel;
-class QTextEdit;
 class QListWidget;
-class QListWidgetItem;
+class QLineEdit;
+class QGroupBox;
 
-#include <shapelib/shapefil.h> 
-
-class HYDROGUI_ImportLandCoverDlg : public QtxDialog
+class HYDROGUI_ImportLandCoverDlg : public HYDROGUI_InputPanel
 {
   Q_OBJECT
 
 public:
-  HYDROGUI_ImportLandCoverDlg( std::vector<SHPObject*> theSHPObjects, 
-    std::map<QListWidgetItem*, SHPObject*>& theWItemToSObjectMap, QWidget* = 0 );
+  HYDROGUI_ImportLandCoverDlg( HYDROGUI_Module* theModule, const QString& theTitle );
   virtual ~HYDROGUI_ImportLandCoverDlg();
 
-public:
-   QList<QListWidgetItem*> GetSelectedItems();
+  void reset();
+
+  void setPolygonNames( const QStringList& theNames );
+  void removePolygonNames( const QStringList& theNames );
+
+  void setSelectedPolygonNames( const QStringList& theNames );
+
+  QStringList getSelectedPolygonNames() const;
+
+  void                       setObjectName( const QString& theName );
+  QString                    getObjectName() const;
+
+  void                       setFileName( const QString& theFileName );
+  QString                    getFileName() const;
+
+signals:
+  void                       FileSelected( const QString& theFileName );
+
+protected slots:
+  void                       onBrowse();
+  
+signals:
+  void selectionChanged( const QStringList& );
+
+public slots:
+  void onItemSelectionChanged();
 
 private:
-  QLabel* myObjectsLabel;
-  QListWidget* myListW;
+  QLineEdit*                 myFileName; 
+  QGroupBox*                 myFileNameGroup;
+  QListWidget*               myPolygons;       
 
-public:
+  QGroupBox*                 myObjectNameGroup;
+  QLineEdit*                 myObjectName;
 
-  int GetSeleItemsSize();
 };
 
 #endif