class KMacroCommand

# class KMacroCommand | A Macro Command is a command that holds several sub-commands. More...
Definition | `#include <kcommand.h>`
Inherits | KNamedCommand [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

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

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- QPtrList m_commands

## 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.

KMacroCommand ( const QString & name ) | ### KMacroCommand

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.

~KMacroCommand () | ### ~KMacroCommand

[virtual]

void addCommand (KCommand *command) | ### addCommand

Appends a command to this macro command. The ownership is transfered to the macro command.

void execute () | ### execute

[virtual]

Executes this command, i.e. execute all the sub-commands in the order in which they were added.

Reimplemented from KCommand.

void unexecute () | ### 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.

Reimplemented from KCommand.

QPtrList<KCommand> m_commands | ### m_commands

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KNamedCommand.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.