Salome HOME
Image positioning by two points.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Operation.h
index 573300604ba8a791402d32f7651fd6764615236b..5bce481fe919790f66e62c27722201598e02c520 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef HYDROGUI_OPERATION_H
 #define HYDROGUI_OPERATION_H
 
-#include "HYDROGUI.h"
-
 #include <LightApp_Operation.h>
 
 class HYDROGUI_Module;
@@ -41,24 +39,39 @@ public:
   HYDROGUI_Operation( HYDROGUI_Module* theModule );
   virtual ~HYDROGUI_Operation();
 
+  void setName( const QString& theName );
+  const QString& getName() const;
+
   HYDROGUI_InputPanel* inputPanel() const;
   SUIT_SelectionMgr* selectionMgr() const;
   HYDROGUI_Module* module() const;
 
 protected:
   virtual void startOperation();
-  virtual HYDROGUI_InputPanel* createInputPanel() const = 0;
+  virtual void abortOperation();
+  virtual void commitOperation();
+  virtual void setDialogActive( const bool );
+
+  virtual HYDROGUI_InputPanel* createInputPanel() const;
+  virtual void closeInputPanel();
+
+  virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+  virtual void processCancel();
+
+  void startDocOperation();
+  void abortDocOperation();
+  void commitDocOperation();
 
   Handle_HYDROData_Document doc() const;
-  Handle_HYDROData_Object FindObjectByName( const QString& theName, int theKind ) const;
 
 protected slots:
-  virtual void OnApply();
-  virtual void OnCancel();
+  virtual void onApply();
+  virtual void onCancel();
 
 private:
   HYDROGUI_Module* myModule;
   HYDROGUI_InputPanel* myPanel;
+  QString myName;
 };
 
 #endif