• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KMacroCommand Class Reference

#include <kcommand.h>

Inheritance diagram for KMacroCommand:
KNamedCommand KCommand

Public Member Functions

 KMacroCommand (const TQString &name)
 
void addCommand (KCommand *command)
 
virtual void execute ()
 
virtual void unexecute ()
 
- Public Member Functions inherited from KNamedCommand
virtual TQString name () const
 
void setName (const TQString &name)
 
virtual void execute ()=0
 
virtual void unexecute ()=0
 
virtual TQString name () const =0
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KNamedCommand
 KNamedCommand (const TQString &name)
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KCommand
 KCommand ()
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TQPtrList< KCommand > 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.

Definition at line 110 of file kcommand.h.

Constructor & Destructor Documentation

◆ KMacroCommand()

KMacroCommand::KMacroCommand ( const TQString &  name)

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.

Definition at line 33 of file kcommand.cpp.

◆ ~KMacroCommand()

virtual KMacroCommand::~KMacroCommand ( )
inlinevirtual

Definition at line 120 of file kcommand.h.

Member Function Documentation

◆ addCommand()

void KMacroCommand::addCommand ( KCommand *  command)

Appends a command to this macro command.

The ownership is transfered to the macro command.

Definition at line 38 of file kcommand.cpp.

◆ execute()

void KMacroCommand::execute ( )
virtual

Executes this command, i.e.

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

Implements KCommand.

Definition at line 43 of file kcommand.cpp.

◆ unexecute()

void KMacroCommand::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 KCommand.

Definition at line 50 of file kcommand.cpp.

◆ virtual_hook()

void KMacroCommand::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Reimplemented from KNamedCommand.

Definition at line 373 of file kcommand.cpp.

Member Data Documentation

◆ m_commands

TQPtrList<KCommand> KMacroCommand::m_commands
protected

Definition at line 140 of file kcommand.h.


The documentation for this class was generated from the following files:
  • kcommand.h
  • kcommand.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.