31#ifndef TREEUNDOACTION_H
32#define TREEUNDOACTION_H
47 long long oldSelStart = -1,
long long oldSelEnd = -1) :
51 wxASSERT_MSG(start, _(
"Bug: Trying to record a cell contents change for undo without a cell."));
56 wxASSERT_MSG(start, _(
"Bug: Trying to record a cell contents change for undo without a cell."));
96 const long long m_oldSelEnd = -1;
Implementation of an observing weak Cell pointer.
This file defines the class GroupCell that bundles input and output in the worksheet.
std::list< TreeUndoAction > UndoActions
The type of the list of tree actions that can be undone.
Definition: TreeUndoAction.h:120
A weak non-owning pointer that becomes null whenever the observed object is destroyed.
Definition: CellPtr.h:511
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87
The description of one action for the undo (or redo) command.
Definition: TreeUndoAction.h:44
const wxString m_oldText
The old contents of the cell start.
Definition: TreeUndoAction.h:87
const long long m_oldSelStart
The old cursor/selection range in the EditorCell pointed to by m_start.
Definition: TreeUndoAction.h:95
CellPtr< GroupCell > m_start
The position this action started at.
Definition: TreeUndoAction.h:80
std::unique_ptr< GroupCell > m_oldCells
Cells that were deleted in this action.
Definition: TreeUndoAction.h:116
CellPtr< GroupCell > m_newCellsEnd
This action inserted all cells from start to newCellsEnd.
Definition: TreeUndoAction.h:107
bool m_partOfAtomicAction
True = This undo action is only part of an atomic undo action.
Definition: TreeUndoAction.h:68