KDE3Support
K3NamedCommand Class Reference
A command which stores its name. More...
#include <k3command.h>
Inheritance diagram for K3NamedCommand:

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] |
void K3NamedCommand::setName | ( | const QString & | name | ) |
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: