Salome HOME
refs #585: polylines operations (split/merge)
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportLandcoverOp.h
index f8b95c5eb637c2a7b14f07b424f32748cabc9e9d..35c8ef8405df287f840ac8133cef010b11e45473 100644 (file)
 
 #include "HYDROGUI_Operation.h"
 #include <vector>
+#include <QMap>
 
 //extern "C" {
 #include <shapelib/shapefil.h> 
 //};
 
 class SUIT_FileDlg;
+class HYDROGUI_Shape;
 class TopoDS_Face;
 
 
@@ -44,17 +46,22 @@ public:
 
 protected:
   virtual void startOperation();
-  virtual void onApply();
+  virtual void abortOperation();
+
+  virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg, QStringList& theBrowseObjectsEntries );
   HYDROGUI_InputPanel* createInputPanel() const;
   void Parse(SHPHandle theHandle);
   void ProcessSHP(SHPObject* anObj, int i, TopoDS_Face& F);
+  void erasePreview();
  
 protected slots:
-  void                            onFileSelected();
+  void onFileSelected();
+  void onSelectionChanged( const QStringList& theSelectedNames );
+  void onViewerSelectionChanged ();
 
 private:
-  //SUIT_FileDlg* myFileDlg;
   std::vector<SHPObject*> mySHPObjects;
+  QMap<QString, HYDROGUI_Shape*> myPolygonName2PrsShape;
 };
 
 #endif