dnai::commands::GenericCommand< Args > Class Template Reference
#include <genericcommand.h>
Inheritance diagram for dnai::commands::GenericCommand< Args >:

Collaboration diagram for dnai::commands::GenericCommand< Args >:

Protected Member Functions | |
void | execute () const override |
Execute the command. More... | |
void | executeSave () override |
Save current state of the command for the reverse unExcute() More... | |
void | unExcute () const override |
Reverse the execute() function. More... | |
QString | infos () const override |
Get display info for this command. More... | |
bool | isSave () const override |
Is the command is in a save state. More... | |
![]() | |
virtual | ~ICommand ()=default |
Private Member Functions | |
GenericCommand (interfaces::IEditorModel *model, std::function< void(interfaces::IEditorModel *)> dofunc, std::function< void(interfaces::IEditorModel *)> undo, const QString &name, const bool save=false) | |
Private Attributes | |
interfaces::IEditorModel * | m_model |
std::function< void(interfaces::IEditorModel *)> | m_dofunc |
std::function< void(interfaces::IEditorModel *)> | m_undo |
Additional Inherited Members | |
![]() | |
Command (const QString &name, bool save=false) | |
const QString & | name () const |
Get the command name. More... | |
![]() | |
const QString | m_name |
const bool | m_save |
Constructor & Destructor Documentation
template<class... Args>
|
inlineprivate |
Member Function Documentation
template<class... Args>
|
inlineoverrideprotectedvirtual |
Execute the command.
Reimplemented from dnai::commands::Command.
template<class... Args>
|
inlineoverrideprotectedvirtual |
Save current state of the command for the reverse unExcute()
Reimplemented from dnai::commands::Command.
template<class... Args>
|
inlineoverrideprotectedvirtual |
template<class... Args>
|
inlineoverrideprotectedvirtual |
template<class... Args>
|
inlineoverrideprotectedvirtual |
Reverse the execute() function.
Reimplemented from dnai::commands::Command.
Member Data Documentation
template<class... Args>
|
private |
template<class... Args>
|
private |
template<class... Args>
|
private |
The documentation for this class was generated from the following file:
- Gui/app/include/dnai/commands/genericcommand.h