Inherits MCore::CommandManagerCallback.
|
| ActionHistoryCallback (QListWidget *list) |
|
void | OnPreExecuteCommand (MCore::CommandGroup *group, MCore::Command *command, const MCore::CommandLine &commandLine) override |
|
void | OnPostExecuteCommand (MCore::CommandGroup *group, MCore::Command *command, const MCore::CommandLine &commandLine, bool wasSuccess, const AZStd::string &outResult) override |
|
void | OnAddCommandToHistory (size_t historyIndex, MCore::CommandGroup *group, MCore::Command *command, const MCore::CommandLine &commandLine) override |
|
void | OnPreExecuteCommandGroup (MCore::CommandGroup *group, bool undo) override |
|
void | OnPostExecuteCommandGroup (MCore::CommandGroup *group, bool wasSuccess) override |
|
void | OnRemoveCommand (size_t historyIndex) override |
|
void | OnSetCurrentCommand (size_t index) override |
|
Public Member Functions inherited from MCore::CommandManagerCallback |
| CommandManagerCallback () |
|
virtual | ~CommandManagerCallback () |
|
virtual void | OnPreExecuteCommand (CommandGroup *group, Command *command, const CommandLine &commandLine)=0 |
|
virtual void | OnPostExecuteCommand (CommandGroup *group, Command *command, const CommandLine &commandLine, bool wasSuccess, const AZStd::string &outResult)=0 |
|
virtual void | OnPreUndoCommand (MCore::Command *command, const MCore::CommandLine &commandLine) |
|
virtual void | OnPostUndoCommand (MCore::Command *command, const MCore::CommandLine &commandLine) |
|
virtual void | OnPreExecuteCommandGroup (CommandGroup *group, bool undo)=0 |
|
virtual void | OnPostExecuteCommandGroup (CommandGroup *group, bool wasSuccess)=0 |
|
virtual void | OnAddCommandToHistory (size_t historyIndex, CommandGroup *group, Command *command, const CommandLine &commandLine)=0 |
|
virtual void | OnRemoveCommand (size_t historyIndex)=0 |
|
virtual void | OnSetCurrentCommand (size_t index)=0 |
|
virtual void | OnShowErrorReport (const AZStd::vector< AZStd::string > &errors) |
|
◆ OnAddCommandToHistory()
This callback is executed when a new item is added to the command history.
- Parameters
-
historyIndex | The history index where the new item was added. |
group | The group that was added to the history list, or nullptr when it is not a group but a regular command. |
command | The command that is linked with this history item. |
commandLine | The command line that is linked to this history item. |
Implements MCore::CommandManagerCallback.
◆ OnPostExecuteCommand()
This callback is executed after we have executed a given command.
- Parameters
-
group | The group that just executed, or nullptr when it is not a group but a regular command. |
command | The command that has just been executed. |
commandLine | The command line that was used when executing the command. |
wasSuccess | This is set to true when the command execution was successful, or false when it failed. |
outResult | The string that contains the result of the execution, or the error when the execution failed. |
Implements MCore::CommandManagerCallback.
◆ OnPostExecuteCommandGroup()
void EMStudio::ActionHistoryCallback::OnPostExecuteCommandGroup |
( |
MCore::CommandGroup * |
group, |
|
|
bool |
wasSuccess |
|
) |
| |
|
overridevirtual |
This callback is executed after we have executed a given command group.
- Parameters
-
group | The group that just executed, or nullptr when it is not a group but a regular command. |
wasSuccess | This is set to true when the command execution was successful, or false when it failed. |
Implements MCore::CommandManagerCallback.
◆ OnPreExecuteCommand()
This callback is executed before we are going to execute a given command.
- Parameters
-
group | The group that is about to be executed, or nullptr when it is not a group but a regular command. |
command | The command that is about to be executed. |
commandLine | The command line that is going to be used when executing the command. |
Implements MCore::CommandManagerCallback.
◆ OnPreExecuteCommandGroup()
void EMStudio::ActionHistoryCallback::OnPreExecuteCommandGroup |
( |
MCore::CommandGroup * |
group, |
|
|
bool |
undo |
|
) |
| |
|
overridevirtual |
This callback is executed before we are going to execute a given command group.
- Parameters
-
group | The group that is about to be executed, or nullptr when it is not a group but a regular command. |
undo | True in case the command group has been executed already and is now being undone, false in case the command group is normally executed. |
Implements MCore::CommandManagerCallback.
◆ OnRemoveCommand()
void EMStudio::ActionHistoryCallback::OnRemoveCommand |
( |
size_t |
historyIndex | ) |
|
|
overridevirtual |
This callback is executed when a command is being removed from the command history.
- Parameters
-
historyIndex | The history index of the command that is being removed. |
Implements MCore::CommandManagerCallback.
◆ OnSetCurrentCommand()
void EMStudio::ActionHistoryCallback::OnSetCurrentCommand |
( |
size_t |
index | ) |
|
|
overridevirtual |
This callback is executed when we step back or forth in the command history.
- Parameters
-
index | The new history index which will be the current state the system will be in. |
Implements MCore::CommandManagerCallback.
The documentation for this class was generated from the following file:
- Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/ActionHistory/ActionHistoryCallback.h