KNamedCommand Class Reference
#include <kcommand.h>
Inheritance diagram for KNamedCommand:
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 |
Protected Member Functions | |
KNamedCommand (const TQString &name) | |
virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from KCommand | |
KCommand () | |
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()
|
inlineprotected |
Creates a command.
- Parameters
-
name the name of this command, translated, since it will appear in the menus.
Definition at line 86 of file kcommand.h.
Member Function Documentation
◆ name()
|
inlinevirtual |
◆ setName()
|
inline |
The documentation for this class was generated from the following files: