|
|
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: caleb on tcdevel on Tue Jan 28 12:54:10 2003, using kdoc $. |