• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

Public Member Functions | Protected Member Functions | List of all members
K3MacroCommand Class Reference

#include <k3command.h>

Inheritance diagram for K3MacroCommand:
Inheritance graph
[legend]

Public Member Functions

 K3MacroCommand (const QString &name)
 
virtual ~K3MacroCommand ()
 
void addCommand (K3Command *command)
 
virtual void execute ()
 
virtual void unexecute ()
 
- Public Member Functions inherited from K3NamedCommand
virtual ~K3NamedCommand ()
 
virtual QString name () const
 
void setName (const QString &name)
 
- Public Member Functions inherited from K3Command
virtual ~K3Command ()
 

Protected Member Functions

const QList< K3Command * > commands () const
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from K3NamedCommand
 K3NamedCommand (const QString &name)
 
- Protected Member Functions inherited from K3Command
 K3Command ()
 

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 126 of file k3command.h.

Constructor & Destructor Documentation

K3MacroCommand::K3MacroCommand ( const QString &  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 76 of file k3command.cpp.

K3MacroCommand::~K3MacroCommand ( )
virtual

Definition at line 82 of file k3command.cpp.

Member Function Documentation

void K3MacroCommand::addCommand ( K3Command *  command)

Appends a command to this macro command.

The ownership is transferred to the macro command.

Definition at line 88 of file k3command.cpp.

const QList< K3Command * > K3MacroCommand::commands ( ) const
protected

Definition at line 110 of file k3command.cpp.

void K3MacroCommand::execute ( )
virtual

Executes this command, i.e.

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

Implements K3Command.

Definition at line 93 of file k3command.cpp.

void K3MacroCommand::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 K3Command.

Definition at line 101 of file k3command.cpp.

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

Reimplemented from K3NamedCommand.

Definition at line 442 of file k3command.cpp.


The documentation for this class was generated from the following files:
  • k3command.h
  • k3command.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal