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

KDE3Support

K3MacroCommand Class Reference

#include <k3command.h>

Inheritance diagram for K3MacroCommand:

Inheritance graph
[legend]

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 126 of file k3command.h.


Public Member Functions

void addCommand (K3Command *command)
virtual void execute ()
 K3MacroCommand (const QString &name)
virtual void unexecute ()
virtual ~K3MacroCommand ()

Protected Member Functions

const QList< K3Command * > commands () const
virtual void virtual_hook (int id, void *data)

Constructor & Destructor Documentation

K3MacroCommand::K3MacroCommand ( 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 76 of file k3command.cpp.

K3MacroCommand::~K3MacroCommand (  )  [virtual]

Definition at line 82 of file k3command.cpp.


Member Function Documentation

void K3MacroCommand::addCommand ( K3Command *  command  ) 

Appends a command to this macro command.

The ownership is transfered to the macro command.

Definition at line 87 of file k3command.cpp.

const QList< K3Command * > K3MacroCommand::commands (  )  const [protected]

Definition at line 109 of file k3command.cpp.

void K3MacroCommand::execute (  )  [virtual]

Executes this command, i.e.

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

Implements K3Command.

Definition at line 92 of file k3command.cpp.

void K3MacroCommand::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 K3Command.

Definition at line 100 of file k3command.cpp.

void K3MacroCommand::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from K3NamedCommand.

Definition at line 441 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