kaddressbook Library API Documentation

StackBase Class Reference

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

#include <undo.h>

Inheritance diagram for StackBase:

QObject List of all members.

Signals

void changed ()

Public Methods

 StackBase ()
void push (Command *c)
bool isEmpty ()
Command * top ()
void clear ()

Protected Methods

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.

References QPtrStack< Command >::pop().


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.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:54 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003