Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportPolylineOp.h
index 9bd684a91bee8ef9898cb721644c967e1947747f..695bff4dc1ebaef00503925657d01fe4566f9027 100644 (file)
 #include <vector>
 
 #include <NCollection_Sequence.hxx>
+#include <HYDROData_ShapeFile.h>
 
 class SUIT_FileDlg;
-class Handle_HYDROData_Entity;
+class HYDROData_Entity;
 
 class HYDROGUI_ImportPolylineOp : public HYDROGUI_Operation
 {
@@ -33,12 +34,20 @@ class HYDROGUI_ImportPolylineOp : public HYDROGUI_Operation
 
 public:
   HYDROGUI_ImportPolylineOp( HYDROGUI_Module* theModule );
+
   virtual ~HYDROGUI_ImportPolylineOp();
 
+  static NCollection_Sequence<Handle(HYDROData_Entity)> ImportPolyOp(const QStringList& aFileNames, 
+                                                                     Handle(HYDROData_Document) theDocument,
+                                                                     HYDROGUI_Module* module, 
+                                                                     HYDROData_ShapeFile::ImportShapeType theShapeTypesToImport);
+
 protected:
+
   virtual void startOperation();
   virtual void onApply();
-  void UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities);
+
+  static void UpdateView( HYDROGUI_Module* module, NCollection_Sequence<Handle(HYDROData_Entity)>& anEntities);
 
 private:
   SUIT_FileDlg* myFileDlg;