The app's undo history: steps that each undo and redo one change.
More...
#include <gui_core/input/gui_undo_history.h>
The app's undo history: steps that each undo and redo one change.
Text fields push their committed edits here, and so can the app's own editors; Undo / Redo walk it.
◆ Push()
| void tachyon::UndoHistory::Push |
( |
Step | step | ) |
|
|
inline |
Adds a step after the current one, dropping any undone steps (or merges it into the last step, see Step::mergeKey).
Does not run it.
◆ EndMerge()
| void tachyon::UndoHistory::EndMerge |
( |
| ) |
|
|
inline |
The next push starts a step of its own (e.g. when a field loses the focus).
◆ CanUndo()
| bool tachyon::UndoHistory::CanUndo |
( |
| ) |
const |
|
inline |
◆ CanRedo()
| bool tachyon::UndoHistory::CanRedo |
( |
| ) |
const |
|
inline |
◆ Undo()
| void tachyon::UndoHistory::Undo |
( |
| ) |
|
|
inline |
◆ Redo()
| void tachyon::UndoHistory::Redo |
( |
| ) |
|
|
inline |
◆ UndoCount()
| size_t tachyon::UndoHistory::UndoCount |
( |
| ) |
const |
|
inline |
◆ RedoCount()
| size_t tachyon::UndoHistory::RedoCount |
( |
| ) |
const |
|
inline |
◆ UndoDescription()
| std::string_view tachyon::UndoHistory::UndoDescription |
( |
| ) |
const |
|
inline |
◆ RedoDescription()
| std::string_view tachyon::UndoHistory::RedoDescription |
( |
| ) |
const |
|
inline |
◆ Clear()
| void tachyon::UndoHistory::Clear |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: