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 2226 of file text_editor.cc.
References mAdded, mAddedEnd, mAddedStart, mAfter, mBefore, mRemoved, mRemovedEnd, and mRemovedStart.
void TextEditor::UndoRecord::Undo | ( | TextEditor * | aEditor | ) |
Definition at line 2246 of file text_editor.cc.
References TextEditor::Colorize(), TextEditor::DeleteRange(), TextEditor::EnsureCursorVisible(), TextEditor::InsertTextAt(), mAdded, mAddedEnd, mAddedStart, mBefore, mRemoved, mRemovedEnd, mRemovedStart, TextEditor::mState, and TextEditor::TextEditor().
void TextEditor::UndoRecord::Redo | ( | TextEditor * | aEditor | ) |
Definition at line 2264 of file text_editor.cc.
References TextEditor::Colorize(), TextEditor::DeleteRange(), TextEditor::EnsureCursorVisible(), TextEditor::InsertTextAt(), mAdded, mAddedEnd, mAddedStart, mAfter, mRemoved, mRemovedEnd, mRemovedStart, TextEditor::mState, and TextEditor::TextEditor().
std::string TextEditor::UndoRecord::mAdded |
Definition at line 295 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), Redo(), Undo(), and UndoRecord().
Coordinates TextEditor::UndoRecord::mAddedStart |
Definition at line 296 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), Redo(), Undo(), and UndoRecord().
Coordinates TextEditor::UndoRecord::mAddedEnd |
Definition at line 297 of file text_editor.h.
Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), Redo(), Undo(), 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(), TextEditor::Paste(), Redo(), Undo(), and UndoRecord().
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(), Redo(), Undo(), 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(), Redo(), Undo(), 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(), TextEditor::Paste(), Undo(), and UndoRecord().
EditorState TextEditor::UndoRecord::mAfter |
Definition at line 304 of file text_editor.h.
Referenced by TextEditor::Backspace(), TextEditor::Cut(), TextEditor::Delete(), TextEditor::EnterCharacter(), TextEditor::Paste(), Redo(), and UndoRecord().