KDE3Support
K3UndoRedoAction Class Reference
This type of action is used to show undo or redo actions in the menu or in the toolbars. More...
#include <k3command.h>
Inheritance diagram for K3UndoRedoAction:

Public Types | |
enum | Type { Undo, Redo } |
Public Member Functions | |
K3UndoRedoAction (Type type, KActionCollection *actionCollection, K3CommandHistory *commandHistory) |
Detailed Description
This type of action is used to show undo or redo actions in the menu or in the toolbars.This action will keep itself up to date and change the text based on the undo history, plus it will disable itself when there is nothing to undo/redo. You will typically need two instances of this action per view (e.g. the mainwindow).
new KUndoRedoAction( KUndoRedoAction::Undo, view->actionCollection(), m_history ); new KUndoRedoAction( KUndoRedoAction::Redo, view->actionCollection(), m_history );
Note: you might want to use the QUndo framework instead. It didn't exist when K3Command was written.
Definition at line 357 of file k3command.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
K3UndoRedoAction::K3UndoRedoAction | ( | Type | type, | |
KActionCollection * | actionCollection, | |||
K3CommandHistory * | commandHistory | |||
) |
Definition at line 359 of file k3command.cpp.
The documentation for this class was generated from the following files: