Salome HOME
LCM // Import/Export of SHP p.3
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverMapOp.h
index 7582f667c0d2fa662f213cc6719726e25fd960fa..1a525fc9b61cc6e5c4613b759c2e4d2da2944a37 100644 (file)
 #include "HYDROGUI_Operation.h"
 #include <vector>
 #include <QMap>
+#include <QSet>
+
+#include <TopTools_SequenceOfShape.hxx>
+#include <HYDROData_ShapeFile.h>
 
 class SUIT_FileDlg;
 class HYDROGUI_Shape;
 class TopoDS_Face;
 
-
 class HYDROGUI_ImportLandCoverMapOp : public HYDROGUI_Operation
 {
   Q_OBJECT
@@ -46,6 +49,7 @@ protected:
 
   virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg, QStringList& theBrowseObjectsEntries );
   HYDROGUI_InputPanel* createInputPanel() const;
+  virtual void onApply();
 
   void erasePreview();
  
@@ -56,8 +60,15 @@ protected slots:
   void onNext( const int theIndex );
   void onBack( const int theIndex );
 
+
 private:
   QMap<QString, HYDROGUI_Shape*> myPolygonName2PrsShape;
+  TopTools_SequenceOfShape myPolygonFaces;
+  QSet<QString> mySetOfAttrValues;
+  HYDROData_ShapeFile myImporter;
+  QString myFileName;
+  QStringList myFieldList;
+  std::vector<HYDROData_ShapeFile::DBF_AttrValue> myAttrV;;
 };
 
 #endif