yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
TextEditor::UndoRecord Class Reference
Collaboration diagram for TextEditor::UndoRecord:

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
 

Detailed Description

Definition at line 276 of file text_editor.h.

Constructor & Destructor Documentation

◆ UndoRecord() [1/2]

TextEditor::UndoRecord::UndoRecord ( )
inline

Definition at line 278 of file text_editor.h.

◆ ~UndoRecord()

TextEditor::UndoRecord::~UndoRecord ( )
inline

Definition at line 279 of file text_editor.h.

◆ UndoRecord() [2/2]

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.

Member Function Documentation

◆ Undo()

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.

Here is the call graph for this function:

◆ Redo()

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.

Here is the call graph for this function:

Member Data Documentation

◆ mAdded

std::string TextEditor::UndoRecord::mAdded

Definition at line 295 of file text_editor.h.

Referenced by TextEditor::EnterCharacter(), and TextEditor::Paste().

◆ mAddedStart

Coordinates TextEditor::UndoRecord::mAddedStart

Definition at line 296 of file text_editor.h.

Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().

◆ mAddedEnd

Coordinates TextEditor::UndoRecord::mAddedEnd

Definition at line 297 of file text_editor.h.

Referenced by TextEditor::EnterCharacter(), TextEditor::Paste(), and UndoRecord().

◆ mRemoved

std::string TextEditor::UndoRecord::mRemoved

◆ mRemovedStart

Coordinates TextEditor::UndoRecord::mRemovedStart

◆ mRemovedEnd

Coordinates TextEditor::UndoRecord::mRemovedEnd

◆ mBefore

EditorState TextEditor::UndoRecord::mBefore

◆ mAfter

EditorState TextEditor::UndoRecord::mAfter

The documentation for this class was generated from the following files: