#include "HYDROGUI_Operation.h"
#include <vector>
+#include <QMap>
//extern "C" {
#include <shapelib/shapefil.h>
//};
class SUIT_FileDlg;
+class HYDROGUI_Shape;
class TopoDS_Face;
+
class HYDROGUI_ImportLandCoverOp : public HYDROGUI_Operation
{
Q_OBJECT
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 onSelectionChanged( const QStringList& theSelectedNames );
+ void onViewerSelectionChanged ();
private:
- SUIT_FileDlg* myFileDlg;
std::vector<SHPObject*> mySHPObjects;
+ QMap<QString, HYDROGUI_Shape*> myPolygonName2PrsShape;
};
#endif