Salome HOME
Merge remote-tracking branch 'origin/BR_1321_ECW' into BR_DEMO
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandCoverMapOp.h
index 7582f667c0d2fa662f213cc6719726e25fd960fa..1c84c04f3f79b413bb0189358f9463327b5b85b8 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;
-
+#include <HYDROData_LandCoverMap.h>
 
 class HYDROGUI_ImportLandCoverMapOp : public HYDROGUI_Operation
 {
@@ -46,6 +50,7 @@ protected:
 
   virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg, QStringList& theBrowseObjectsEntries );
   HYDROGUI_InputPanel* createInputPanel() const;
+  virtual void onApply();
 
   void erasePreview();
  
@@ -54,10 +59,16 @@ protected slots:
   void onSelectionChanged( const QStringList& theSelectedNames );
   void onViewerSelectionChanged ();
   void onNext( const int theIndex );
-  void onBack( const int theIndex );
 
 private:
   QMap<QString, HYDROGUI_Shape*> myPolygonName2PrsShape;
+  TopTools_SequenceOfShape myPolygonFaces;
+  HYDROData_ShapeFile myImporter;
+  QString myFileName;
+  QStringList myFieldList;
+  std::vector<HYDROData_ShapeFile::DBF_AttrValue> myAttrValue;
+  QSet<QString> mySetOfAttrValues;
+  Handle(HYDROData_LandCoverMap) myLCM;
 };
 
 #endif