#ifndef HYDROGUI_OPERATION_H
#define HYDROGUI_OPERATION_H
-#include "HYDROGUI.h"
-
#include <LightApp_Operation.h>
class HYDROGUI_Module;
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 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