• 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
K3NamedCommand Class Reference

#include <k3command.h>

Inheritance diagram for K3NamedCommand:
Inheritance graph
[legend]

Public Member Functions

virtual ~K3NamedCommand ()
 
virtual QString name () const
 
void setName (const QString &name)
 
- Public Member Functions inherited from K3Command
virtual ~K3Command ()
 
virtual void execute ()=0
 
virtual void unexecute ()=0
 

Protected Member Functions

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

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
namethe 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 
)
protectedvirtual

Reimplemented from K3Command.

Reimplemented in K3MacroCommand.

Definition at line 439 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