class KMacroCommand

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

Definition#include <kcommand.h>
InheritsKNamedCommand [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

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

 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:
namethe 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: dfaure on faure on Tue Apr 16 08:49:25 2002, using kdoc 2.0a53.