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

tdeui

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

#include <kcommand.h>

Inheritance diagram for KNamedCommand:
KCommand KMacroCommand

Public Member Functions

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

Protected Member Functions

 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)
 

Detailed Description

A command which stores its name.

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

Definition at line 78 of file kcommand.h.

Constructor & Destructor Documentation

◆ KNamedCommand()

KNamedCommand::KNamedCommand ( const TQString &  name)
inlineprotected

Creates a command.

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

Definition at line 86 of file kcommand.h.

Member Function Documentation

◆ name()

virtual TQString KNamedCommand::name ( ) const
inlinevirtual
Returns
the name of this command

Implements KCommand.

Definition at line 92 of file kcommand.h.

◆ setName()

void KNamedCommand::setName ( const TQString &  name)
inline

Updates the name of this command.

Rarely necessary.

Definition at line 97 of file kcommand.h.

◆ virtual_hook()

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

Reimplemented from KCommand.

Definition at line 370 of file kcommand.cpp.


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.