wxMaxima
Loading...
Searching...
No Matches
Data Structures
TreeUndoManager.h File Reference

Declares TreeUndoManager: the owner of the cell-tree undo/redo state. More...

#include "TreeUndoAction.h"
Include dependency graph for TreeUndoManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  TreeUndoManager
 Owns the cell-tree undo/redo stacks and the active-cell snapshot. More...
 

Detailed Description

Declares TreeUndoManager: the owner of the cell-tree undo/redo state.

Second step of extracting the cell-tree undo/redo subsystem out of the Worksheet god class (the first was moving TreeUndoAction into its own header). The manager owns the two action stacks and the active-cell snapshot, and implements every operation that only touches that state. The operations that perform actual tree surgery (applying an undo action to the worksheet) remain in Worksheet, which accesses the stacks through UndoStack()/RedoStack().