KDE3Support
K3NamedCommand Class Reference
#include <k3command.h>
Inheritance diagram for K3NamedCommand:
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
|
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.
|
virtual |
Definition at line 55 of file k3command.cpp.
Member Function Documentation
|
virtual |
void K3NamedCommand::setName | ( | const QString & | name | ) |
|
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.