Salome HOME
Dump Image data to python script (Feature #13).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageOp.h
index 04a0f704d08afe86f3c477cc9ca421e38d36e4c0..9dd9c050dd0e573abb6f1ac62a3cf01dcddd3464 100644 (file)
 
 #include "HYDROGUI_Operation.h"
 
+#include <HYDROData_Image.h>
+
+#include <QImage>
+
 class GraphicsView_ViewManager;
 
 class SUIT_ViewManager;
@@ -36,30 +40,39 @@ class HYDROGUI_ImportImageOp : public HYDROGUI_Operation
   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;
 
-  virtual bool               processApply( int& theUpdateFlags );
-  virtual void               processCancel();
+  virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
 protected slots:
-  void                       onCreatePreview( QString );
+  void                       onCreatePreview( QImage );
   void                       onActivatePointSelection( int );
+  void                       onPointCoordChanged( bool, int, bool, int );
+  void                       onRefImageActivated( const QString& );
+
   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;
 
   int                        myPointType;
 };