.TH "KCommand" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KCommand \- The abstract base class for all Commands.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kcommand.h>\fP
.PP
Inherited by \fBKNamedCommand\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBexecute\fP ()=0"
.br
.ti -1c
.RI "virtual void \fBunexecute\fP ()=0"
.br
.ti -1c
.RI "virtual \fBQString\fP \fBname\fP () const =0"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBKCommand\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The abstract base class for all Commands. 

Commands are used to store information needed for Undo/Redo functionality... 
.PP
Definition at line 37 of file kcommand.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KCommand::KCommand ()\fC [inline, protected]\fP"
.PP
Creates a command. 
.PP
Definition at line 43 of file kcommand.h.
.SH "Member Function Documentation"
.PP 
.SS "virtual void KCommand::execute ()\fC [pure virtual]\fP"
.PP
The main method: executes this command. 
.PP
Implement here what this command is about, and remember to record any information that will be helpful for \fBunexecute\fP. 
.PP
Implemented in \fBKMacroCommand\fP.
.SS "virtual void KCommand::unexecute ()\fC [pure virtual]\fP"
.PP
Unexecutes (undo) this command. 
.PP
Implement here the steps to take for undoing the command. If your application uses actions for everything (it should), and if you implement unexecute correctly, the application is in the same state after unexecute as it was before execute. This means, the next call to execute will do the same thing as it did the first time. 
.PP
Implemented in \fBKMacroCommand\fP.
.SS "virtual \fBQString\fP KCommand::name () const\fC [pure virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
the name of this command, translated, since it will appear in the menus. 
.RE
.PP

.PP
Implemented in \fBKNamedCommand\fP.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
