StackBase Class Reference
The Undo and Redo stacks now no longer inherit directly from a stack. More...
#include <undo.h>
Signals | |
void | changed () |
Public Member Functions | |
void | push (Command *c) |
bool | isEmpty () |
Command * | top () |
void | clear () |
Protected Member Functions | |
Command * | pop () |
Protected Attributes | |
QPtrStack< Command > | mCommandStack |
Detailed Description
The Undo and Redo stacks now no longer inherit directly from a stack.They now contain a stack internally and inherit from StackBase, which has a signal for when the stack is modified. This is need to keep the edit menu and toolbar up to date.
Really this is a simple observable stack.
Definition at line 61 of file undo.h.
Member Function Documentation
|
Protect the pop method so users must call undo/redo to properly use the stack, however the subclasses need it to modify the stack.
|
The documentation for this class was generated from the following files: