#include <history_owner.h>
Definition at line 16 of file history_owner.h.
◆ HistoryOwner()
PBD::HistoryOwner::HistoryOwner |
( |
std::string const & |
name | ) |
|
◆ ~HistoryOwner()
virtual PBD::HistoryOwner::~HistoryOwner |
( |
| ) |
|
|
virtual |
◆ abort_empty_reversible_command()
bool PBD::HistoryOwner::abort_empty_reversible_command |
( |
| ) |
|
Abort reversible command IFF no undo changes have been collected.
- Returns
- true if undo operation was aborted.
◆ abort_reversible_command()
void PBD::HistoryOwner::abort_reversible_command |
( |
| ) |
|
abort an open undo command This must only be called after begin_reversible_command ()
◆ add_command()
void PBD::HistoryOwner::add_command |
( |
PBD::Command *const |
cmd | ) |
|
◆ add_commands()
void PBD::HistoryOwner::add_commands |
( |
std::vector< PBD::Command * > const & |
cmds | ) |
|
◆ add_stateful_diff_command()
create an StatefulDiffCommand from the given object and add it to the stack.
This function must only be called after begin_reversible_command. Failing to do so may lead to a crash.
- Parameters
-
- Returns
- the allocated StatefulDiffCommand (already added via add_command)
◆ begin_reversible_command() [1/2]
void PBD::HistoryOwner::begin_reversible_command |
( |
const std::string & |
cmd_name | ) |
|
◆ begin_reversible_command() [2/2]
void PBD::HistoryOwner::begin_reversible_command |
( |
GQuark |
| ) |
|
◆ collected_undo_commands()
bool PBD::HistoryOwner::collected_undo_commands |
( |
| ) |
const |
|
inline |
Test if any undo commands were added since the call to begin_reversible_command ()
This is useful to determine if an undoable action was performed before adding additional information (e.g. selection changes) to the undo transaction.
- Returns
- true if undo operation is valid but empty
Definition at line 72 of file history_owner.h.
◆ commit_reversible_command()
void PBD::HistoryOwner::commit_reversible_command |
( |
PBD::Command * |
cmd = 0 | ) |
|
finalize an undo command and commit pending transactions
This must only be called after begin_reversible_command ()
- Parameters
-
cmd | (additional) command to add |
◆ current_operations()
std::list<GQuark> const& PBD::HistoryOwner::current_operations |
( |
| ) |
|
|
inline |
- Returns
- The list of operations that are currently in progress
Definition at line 55 of file history_owner.h.
◆ current_reversible_command()
◆ operation_in_progress()
bool PBD::HistoryOwner::operation_in_progress |
( |
GQuark |
| ) |
const |
◆ undo_redo()
◆ _current_trans
◆ _current_trans_quarks
std::list<GQuark> PBD::HistoryOwner::_current_trans_quarks |
|
protected |
GQuarks to describe the reversible commands that are currently in progress. These may be nested, in which case more recently-started commands are toward the front of the list.
Definition at line 98 of file history_owner.h.
◆ _history
◆ _name
std::string PBD::HistoryOwner::_name |
|
protected |
The documentation for this class was generated from the following file: