VCV Rack API v2
|
An undo action with an inverse redo action. More...
#include <history.hpp>
Public Member Functions | |
virtual | ~Action () |
virtual void | undo () |
virtual void | redo () |
Public Attributes | |
std::string | name |
Name of the action, lowercase. | |
An undo action with an inverse redo action.
Pointers to Modules, Params, etc. are not allowed in Actions because the object they refer to may be deleted and restored. Instead, use moduleIds, etc.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in rack::history::CableAdd, rack::history::CableColorChange, rack::history::ComplexAction, rack::history::InverseAction< CableAdd >, rack::history::InverseAction< ModuleAdd >, rack::history::ModuleAdd, rack::history::ModuleBypass, rack::history::ModuleChange, rack::history::ModuleMove, and rack::history::ParamChange.
|
inlinevirtual |
Reimplemented in rack::history::CableAdd, rack::history::CableColorChange, rack::history::ComplexAction, rack::history::InverseAction< CableAdd >, rack::history::InverseAction< ModuleAdd >, rack::history::ModuleAdd, rack::history::ModuleBypass, rack::history::ModuleChange, rack::history::ModuleMove, and rack::history::ParamChange.
std::string rack::history::Action::name |
Name of the action, lowercase.
Used in the phrase "Undo ..."