• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdeui

KMacroCommand Class Reference

#include <kcommand.h>

Inheritance diagram for KMacroCommand:

KNamedCommand KCommand

List of all members.


Detailed Description

A Macro Command is a command that holds several sub-commands.

It will appear as one to the user and in the command history, but it can use the implementation of multiple commands internally.

Definition at line 110 of file kcommand.h.


Public Member Functions

 KMacroCommand (const QString &name)
void addCommand (KCommand *command)
virtual void execute ()
virtual void unexecute ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Protected Attributes

QPtrList< KCommand > m_commands

Constructor & Destructor Documentation

KMacroCommand::KMacroCommand ( const QString &  name  ) 

Creates a macro command.

You will then need to call addCommand for each subcommand to be added to this macro command.

Parameters:
name the name of this command, translated, since it will appear in the menus.

Definition at line 33 of file kcommand.cpp.


Member Function Documentation

void KMacroCommand::addCommand ( KCommand *  command  ) 

Appends a command to this macro command.

The ownership is transfered to the macro command.

Definition at line 38 of file kcommand.cpp.

void KMacroCommand::execute (  )  [virtual]

Executes this command, i.e.

execute all the sub-commands in the order in which they were added.

Implements KCommand.

Definition at line 43 of file kcommand.cpp.

void KMacroCommand::unexecute (  )  [virtual]

Undoes the execution of this command, i.e.

unexecute all the sub-commands in the _reverse_ order to the one in which they were added.

Implements KCommand.

Definition at line 50 of file kcommand.cpp.


The documentation for this class was generated from the following files:
  • kcommand.h
  • kcommand.cpp

kdeui

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
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