org.kde.koala

Class KMacroCommand

public class KMacroCommand extends KNamedCommand

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.

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

Constructor Summary
protected KMacroCommand(Class dummy)
KMacroCommand(String name)
Creates a macro command.
Method Summary
voidaddCommand(KCommand command)
Appends a command to this macro command.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
voidexecute()
Executes this command, i.e. execute all the sub-commands in the order in which they were added.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
voidunexecute()
Undoes the execution of this command, i.e.

Constructor Detail

KMacroCommand

protected KMacroCommand(Class dummy)

KMacroCommand

public KMacroCommand(String 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.

UNKNOWN: Creates a macro command.

Method Detail

addCommand

public void addCommand(KCommand command)
Appends a command to this macro command. The ownership is transfered to the macro command.

UNKNOWN: Appends a command to this macro command.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

execute

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

UNKNOWN: Executes this command, i.

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

unexecute

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

UNKNOWN: Undoes the execution of this command, i.