|
Jameo Core Library
|
This object stores an editing step made to the file. The undo list is a doubly linked list. More...
Public Member Functions | |
| UndoStep () | |
| Constructor for the UndoStep class. | |
| ~UndoStep () | |
| Destructor. | |
| void | add (UndoChange *change) |
| Adds a change to the step. | |
Public Attributes | |
| UndoStep * | prev |
| The previous step that was executed. When "Undo" is clicked, it will jump to this step. This step represents the state of the file before the changes in the current step were applied. | |
| UndoChange * | recent |
| The list of changes made to the file. Here is the most recent change in this step. | |
| UndoChange * | eldest |
| The oldest change in the list of file modifications in this step. This represents the state of the file before the changes in the current step were applied. | |
| uint32 | count |
| The number of changes made in this step. This represents the total count of modifications made to the file in this step. | |
This object stores an editing step made to the file. The undo list is a doubly linked list.
Each step in the undo list represents a set of changes made to the file. The changes are stored as UndoChange objects, which encapsulate the modifications made to different types of values.
| jm::UndoStep::UndoStep | ( | ) |
Constructor for the UndoStep class.
| jm::UndoStep::~UndoStep | ( | ) |
Destructor.
| void jm::UndoStep::add | ( | UndoChange * | change | ) |
Adds a change to the step.
| change | The change to be added. |
This function adds a change to the list of modifications made in this step. It takes a pointer to an UndoChange object as a parameter and adds it to the list of changes.
| uint32 jm::UndoStep::count |
The number of changes made in this step. This represents the total count of modifications made to the file in this step.
| UndoChange* jm::UndoStep::eldest |
The oldest change in the list of file modifications in this step. This represents the state of the file before the changes in the current step were applied.
| UndoStep* jm::UndoStep::prev |
The previous step that was executed. When "Undo" is clicked, it will jump to this step. This step represents the state of the file before the changes in the current step were applied.
| UndoChange* jm::UndoStep::recent |
The list of changes made to the file. Here is the most recent change in this step.