Public Member Functions | |
UndoRecord () | |
~UndoRecord () | |
UndoRecord (const std::string &aAdded, const TextEditor::Coordinates aAddedStart, const TextEditor::Coordinates aAddedEnd, const std::string &aRemoved, const TextEditor::Coordinates aRemovedStart, const TextEditor::Coordinates aRemovedEnd, TextEditor::EditorState &aBefore, TextEditor::EditorState &aAfter) | |
void | Undo (TextEditor *aEditor) |
void | Redo (TextEditor *aEditor) |
Public Attributes | |
std::string | mAdded |
Coordinates | mAddedStart |
Coordinates | mAddedEnd |
std::string | mRemoved |
Coordinates | mRemovedStart |
Coordinates | mRemovedEnd |
EditorState | mBefore |
EditorState | mAfter |
Definition at line 276 of file text_editor.h.
|
inline |
Definition at line 278 of file text_editor.h.
|
inline |
Definition at line 279 of file text_editor.h.
TextEditor::UndoRecord::UndoRecord | ( | const std::string & | aAdded, |
const TextEditor::Coordinates | aAddedStart, | ||
const TextEditor::Coordinates | aAddedEnd, | ||
const std::string & | aRemoved, | ||
const TextEditor::Coordinates | aRemovedStart, | ||
const TextEditor::Coordinates | aRemovedEnd, | ||
TextEditor::EditorState & | aBefore, | ||
TextEditor::EditorState & | aAfter | ||
) |
Definition at line 2224 of file text_editor.cc.
References mAddedEnd, mAddedStart, mRemovedEnd, and mRemovedStart.
void TextEditor::UndoRecord::Undo | ( | TextEditor * | aEditor | ) |
Definition at line 2244 of file text_editor.cc.
References TextEditor::Colorize(), TextEditor::DeleteRange(), TextEditor::EnsureCursorVisible(), TextEditor::InsertTextAt(), and TextEditor::mState.
void TextEditor::UndoRecord::Redo | ( | TextEditor * | aEditor | ) |
Definition at line 2262 of file text_editor.cc.
References TextEditor::Colorize(), TextEditor::DeleteRange(), TextEditor::EnsureCursorVisible(), TextEditor::InsertTextAt(), and TextEditor::mState.
std::string TextEditor::UndoRecord::mAdded |
Definition at line 295 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), and TextEditor::Paste().
Coordinates TextEditor::UndoRecord::mAddedStart |
Definition at line 296 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().
Coordinates TextEditor::UndoRecord::mAddedEnd |
Definition at line 297 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().
std::string TextEditor::UndoRecord::mRemoved |
Definition at line 299 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), and TextEditor::Paste().
Coordinates TextEditor::UndoRecord::mRemovedStart |
Definition at line 300 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().
Coordinates TextEditor::UndoRecord::mRemovedEnd |
Definition at line 301 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().
EditorState TextEditor::UndoRecord::mBefore |
Definition at line 303 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), and TextEditor::Paste().
EditorState TextEditor::UndoRecord::mAfter |
Definition at line 304 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), and TextEditor::Paste().