• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDE3Support

K3UndoRedoAction Class Reference

#include <k3command.h>

Inheritance diagram for K3UndoRedoAction:

Inheritance graph
[legend]

List of all members.


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 that there is no need to connect or even keep a reference to the object as all work is done automatically.

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.


Public Types

enum  Type { Undo, Redo }

Public Member Functions

 K3UndoRedoAction (Type type, KActionCollection *actionCollection, K3CommandHistory *commandHistory)

Member Enumeration Documentation

enum K3UndoRedoAction::Type

Enumerator:
Undo 
Redo 

Definition at line 361 of file k3command.h.


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:
  • k3command.h
  • k3command.cpp

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal