<HTML> <HEAD> <TITLE>class KMacroCommand</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 KMacroCommand</h1> </TD> <TD valign="top" align="right" colspan="1"> A Macro Command is a command that holds several sub-commands. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kcommand_h.html">kcommand.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><i><A HREF="KCommand.html">KCommand</A></i> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KMacroCommand.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> <b><A HREF="#ref1">KMacroCommand</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & name ) </LI> <LI>virtual <b><A HREF="#ref2">~KMacroCommand</A></b> () </LI> <LI>void <b><A HREF="#ref3">addCommand</A></b> (<A HREF="KCommand.html">KCommand</A> *command) </LI> <LI>virtual void <b><A HREF="#ref4">execute</A></b> () </LI> <LI>virtual void <b><A HREF="#ref5">unexecute</A></b> () </LI> </ul><h4>Protected Members</h4><ul><LI>QList<KCommand> <b><A HREF="#ref6">m_commands</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> A Macro Command is a command that holds several sub-commands. It will appear as one to the user and in the command history, but it can use the implementation of multiple commands internally. </p> <A NAME="KMacroCommand"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KMacroCommand</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & name ) <br></td><td align="right"><h3><strong>KMacroCommand</strong></h3></td></tr></table><p></p><p> Create a macro command. You will then need to call <A HREF="KMacroCommand.html#addCommand">addCommand</A> for each subcommand to be added to this macro 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="~KMacroCommand"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KMacroCommand</strong> () <br></td><td align="right"><h3><strong>~KMacroCommand</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="addCommand"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>addCommand</strong> (<A HREF="KCommand.html">KCommand</A> *command) <br></td><td align="right"><h3><strong>addCommand</strong></h3></td></tr></table><p></p><p> Appends a command to this macro command. The ownership is transfered to the macro command. </p> <A NAME="execute"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>execute</strong> () <br></td><td align="right"><h3><strong>execute</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Execute this command, i.e. execute all the sub-commands in the order in which they were added. </p> <p>Reimplemented from <A HREF="KCommand.html#execute">KCommand</A>.</p> <A NAME="unexecute"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>unexecute</strong> () <br></td><td align="right"><h3><strong>unexecute</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Undo the execution of this command, i.e. unexecute all the sub-commands in the _reverse_ order to the one in which they were added. </p> <p>Reimplemented from <A HREF="KCommand.html#unexecute">KCommand</A>.</p> <A NAME="m_commands"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlist.html">QList</A><<A HREF="KCommand.html">KCommand</A>> <strong>m_commands</strong> </td><td align="right"><h3><strong>m_commands</strong></h3></td></tr></table><p> <small>[protected]</small></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>