Salome HOME
Observe Image operation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_TwoImagesOp.h
index 5b98368ab5c25ec6ad5a559ca977a598f221da59..ee3bbda7ce5652bce3a32808c86154fad114bbff 100644 (file)
@@ -30,17 +30,21 @@ class HYDROGUI_TwoImagesOp : public HYDROGUI_Operation
   Q_OBJECT
 
 public:
-  HYDROGUI_TwoImagesOp( HYDROGUI_Module* theModule, const QString& theTitle );
+  enum OperationType { Fuse, Cut };
+
+public:
+  HYDROGUI_TwoImagesOp( HYDROGUI_Module* theModule, const int theType );
   virtual ~HYDROGUI_TwoImagesOp();
 
 protected:
+  virtual void               startOperation();
+
   virtual HYDROGUI_InputPanel* createInputPanel() const;
 
-protected slots:
-  virtual void OnApply();
+  virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
 private:
-  QString myTitle;
+  int myType;
 };
 
 #endif