yaze 0.2.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 2226 of file text_editor.cc.

References mAdded, mAddedEnd, mAddedStart, mAfter, mBefore, mRemoved, mRemovedEnd, and mRemovedStart.

Member Function Documentation

◆ Undo()

◆ Redo()

Member Data Documentation

◆ mAdded

std::string TextEditor::UndoRecord::mAdded

Definition at line 295 of file text_editor.h.

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

◆ mAddedStart

Coordinates TextEditor::UndoRecord::mAddedStart

Definition at line 296 of file text_editor.h.

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

◆ mAddedEnd

Coordinates TextEditor::UndoRecord::mAddedEnd

Definition at line 297 of file text_editor.h.

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

◆ mRemoved

std::string TextEditor::UndoRecord::mRemoved

◆ mRemovedStart

◆ mRemovedEnd

◆ mBefore

◆ mAfter


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