#include "HYDROGUI_Operation.h"
+#include <HYDROData_Image.h>
+
+#include <QImage>
+
class GraphicsView_ViewManager;
class SUIT_ViewManager;
Q_OBJECT
public:
- HYDROGUI_ImportImageOp( HYDROGUI_Module* theModule );
+ HYDROGUI_ImportImageOp( HYDROGUI_Module* theModule, const bool theIsEdit );
virtual ~HYDROGUI_ImportImageOp();
protected:
virtual void startOperation();
+ virtual void abortOperation();
+ virtual void commitOperation();
virtual HYDROGUI_InputPanel* createInputPanel() const;
-protected slots:
- virtual void onApply();
- virtual void onCancel();
+ virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
- void onCreatePreview( QString );
+protected slots:
+ void onCreatePreview( QImage );
void onActivatePointSelection( int );
+ void onPointCoordChanged( bool, int, bool, int );
+ void onRefImageActivated( const QString& );
+
+ void onLastViewClosed( SUIT_ViewManager* );
+
void onPointSelected();
+ void onPointSelected( bool theIsRefImage );
private:
void closePreview();
private:
+ bool myIsEdit;
+ Handle(HYDROData_Image) myEditedObject;
+
SUIT_ViewManager* myActiveViewManager;
GraphicsView_ViewManager* myPreviewViewManager;
HYDROGUI_PrsImage* myPreviewPrs;
+ HYDROGUI_PrsImage* myRefPreviewPrs;
+
+ QImage myImage;
+ QTransform myRefTransform;
int myPointType;
};