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

KDE3Support

K3NamedCommand Class Reference

A command which stores its name. More...

#include <k3command.h>

Inheritance diagram for K3NamedCommand:

Inheritance graph
[legend]

List of all members.


Public Member Functions

virtual QString name () const
void setName (const QString &name)
virtual ~K3NamedCommand ()

Protected Member Functions

 K3NamedCommand (const QString &name)
virtual void virtual_hook (int id, void *data)

Detailed Description

A command which stores its name.

It is more memory-efficient to use K3Command and to implement the name() method, but in some cases it's more simple or more flexible to store the name at creation time.

Note: you might want to use the QUndo framework instead. It didn't exist when K3Command was written.

Definition at line 89 of file k3command.h.


Constructor & Destructor Documentation

K3NamedCommand::K3NamedCommand ( const QString &  name  )  [protected]

Creates a command.

Parameters:
name the name of this command, translated, since it will appear in the menus.

Definition at line 48 of file k3command.cpp.

K3NamedCommand::~K3NamedCommand (  )  [virtual]

Definition at line 55 of file k3command.cpp.


Member Function Documentation

QString K3NamedCommand::name (  )  const [virtual]

Returns:
the name of this command

Implements K3Command.

Definition at line 60 of file k3command.cpp.

void K3NamedCommand::setName ( const QString &  name  ) 

Updates the name of this command.

Rarely necessary.

Definition at line 65 of file k3command.cpp.

void K3NamedCommand::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from K3Command.

Reimplemented in K3MacroCommand.

Definition at line 438 of file k3command.cpp.


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

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal