20#ifndef SDFORMAT_EDITOR_GENERIC_COMMAND_HH_
21#define SDFORMAT_EDITOR_GENERIC_COMMAND_HH_
24#include <interfaces/command_interface.h>
39 private:
bool Execute()
override;
61 private:
bool IsThreaded(
bool& prevent_user_input)
override;
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor...
Definition command_interface.h:29
Executes a given function handle.
Definition GenericCommand.h:30
std::function< void()> function_handle
Function pointer to hold the command function.
Definition GenericCommand.h:68
bool ChangesProgramStateIrreversibly() override
Implementation of interface method.
Definition GenericCommand.cpp:59
bool Execute() override
Implementation of interface method.
Definition GenericCommand.cpp:27
bool IsThreaded(bool &prevent_user_input) override
Implementation of interface method.
Definition GenericCommand.cpp:53
bool ExecuteUndo() override
Implementation of interface method.
Definition GenericCommand.cpp:33
bool IsRedoable() override
Implementation of interface method.
Definition GenericCommand.cpp:48
bool ExecuteRedo() override
Implementation of interface method.
Definition GenericCommand.cpp:38
bool IsUndoable() override
Implementation of interface method.
Definition GenericCommand.cpp:43