1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_OperationAction.h
6 * Created on: Apr 2, 2014
10 #ifndef ModuleBase_OperationAction_H
11 #define ModuleBase_OperationAction_H
13 #include <ModuleBase.h>
15 #include <ModuleBase_Operation.h>
18 * \class ModuleBase_OperationAction
20 * \brief Base class for action operations
22 * This is an action-like operation, which modifies the structure of data through
23 * starting/comitting transactions in the document. This operations are single stepped,
24 * and have no filled property panel, like Delete/Detach.
27 class MODULEBASE_EXPORT ModuleBase_OperationAction : public ModuleBase_Operation
33 /// \param theId the operation identifier
34 /// \param theParent the QObject parent
35 ModuleBase_OperationAction(const QString& theId = "", QObject* theParent = 0);
37 virtual ~ModuleBase_OperationAction();
40 /// Commits the operation. Change is modified state to true value.
41 /// \return the result of commit
42 virtual bool commit();