<HTML> <HEAD> <TITLE>class KCommand</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KCommand</h1> </TD> <TD valign="top" align="right" colspan="1"> The abstract base class for all Commands. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH colspan="2">Contains pure virtuals</TH></TR><TR><TH>Definition</TH><TD><code>#include <<A HREF="kcommand_h.html">kcommand.h</A>></code></TD></TR> <TR><TH>Inherited by</TH><TD><A HREF="KMacroCommand.html">KMacroCommand</A></TD></TR> <TR><TH><A HREF="full-list-KCommand.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI>virtual <b><A HREF="#ref2">~KCommand</A></b> () </LI> <LI>virtual void <b><i><A HREF="#ref3">execute</A></i></b> () </LI> <LI>virtual void <b><i><A HREF="#ref4">unexecute</A></i></b> () </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref5">name</A></b> () const </LI> <LI>void <b><A HREF="#ref6">setName</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &name) </LI> </ul><h4>Protected Methods</h4><ul><LI> <b><A HREF="#ref1">KCommand</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &name) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> The abstract base class for all Commands. Commands are used to store information needed for Undo/Redo functionality... </p> <A NAME="KCommand"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KCommand</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &name) <br></td><td align="right"><h3><strong>KCommand</strong></h3></td></tr></table><p> <small>[protected]</small></p><p> Creates a command </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">the name of this command, translated, since it will appear in the menus. </TD></TR> </TABLE></P> <A NAME="~KCommand"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KCommand</strong> () <br></td><td align="right"><h3><strong>~KCommand</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="execute"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <i><strong>execute</strong></i> () <br></td><td align="right"><h3><i><strong>execute</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> The main method: execute this command. Implement here what this command is about, and remember to record any information that will be helpful for <A HREF="KCommand.html#unexecute">unexecute</A>. </p> <A NAME="unexecute"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <i><strong>unexecute</strong></i> () <br></td><td align="right"><h3><i><strong>unexecute</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Unexecute (undo) this command. 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. </p> <A NAME="name"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>name</strong> () <br></td><td align="right"><h3><strong>name</strong></h3></td></tr></table><p> <small>[const]</small></p><p> </p> <p><b>Returns</b>: the name of this command </p> <A NAME="setName"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setName</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &name) <br></td><td align="right"><h3><strong>setName</strong></h3></td></tr></table><p></p><p> Update the name of this command. Rarely necessary. </p> <HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:05 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>