Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
jm::UndoStep Class Reference

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

UndoStepprev
 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.
 
UndoChangerecent
 The list of changes made to the file. Here is the most recent change in this step.
 
UndoChangeeldest
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UndoStep()

jm::UndoStep::UndoStep ( )

Constructor for the UndoStep class.

◆ ~UndoStep()

jm::UndoStep::~UndoStep ( )

Destructor.

Member Function Documentation

◆ add()

void jm::UndoStep::add ( UndoChange change)

Adds a change to the step.

Parameters
changeThe 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.

Member Data Documentation

◆ count

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.

◆ eldest

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.

◆ prev

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.

◆ recent

UndoChange* jm::UndoStep::recent

The list of changes made to the file. Here is the most recent change in this step.