kaddressbook Library API Documentation

StackBase Class Reference

The Undo and Redo stacks now no longer inherit directly from a stack. More...

#include <undo.h>

List of all members.

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

Command * StackBase::pop  )  [protected]
 

Protect the pop method so users must call undo/redo to properly use the stack, however the subclasses need it to modify the stack.

Definition at line 51 of file undo.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:28 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003