Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 972

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:06:32 CEST 2007 -->
<TITLE>
QUndoStack
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QUndoStack class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QUndoStack";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QUndoGroup.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QUndoView.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QUndoStack.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QUndoStack.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QUndoStack</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QUndoStack</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QUndoStack</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></DL>
</PRE>

<P>
<p>The <a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> class is a stack of <a href="QUndoCommand.html"><tt>QUndoCommand</tt></a> objects.</p>
<p>For an overview of Qt's Undo Framework, see the <a href="%2E%2E/qundo.html">overview document</tt></a>.</p>
<p>An undo stack maintains a stack of commands that have been applied to a document.</p>
<p>New commands are pushed on the stack using <a href="QUndoStack.html#push(com.trolltech.qt.gui.QUndoCommand)"><tt>push</tt></a>. Commands can be undone and redone using <a href="QUndoStack.html#undo()"><tt>undo</tt></a> and <a href="QUndoStack.html#redo()"><tt>redo</tt></a>, or by triggering the actions returned by <a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a> and <a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>.</p>
<p><a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> keeps track of the <tt>current</tt> command. This is the command which will be executed by the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>. The index of this command is returned by <a href="QUndoStack.html#index()"><tt>index</tt></a>. The state of the edited object can be rolled forward or back using <a href="QUndoStack.html#setIndex(int)"><tt>setIndex</tt></a>. If the top-most command on the stack has already been redone, <a href="QUndoStack.html#index()"><tt>index</tt></a> is equal to <a href="QUndoStack.html#count()"><tt>count</tt></a>.</p>
<p><a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> provides support for undo and redo actions, command compression, command macros, and supports the concept of a <i>clean state</i>.</p>
<a name="undo-and-redo-actions"></a>
<h3>Undo and Redo Actions</h3>
<p><a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> provides convenient undo and redo <a href="QAction.html"><tt>QAction</tt></a> objects, which can be inserted into a menu or a toolbar. When commands are undone or redone, <a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> updates the text properties of these actions to reflect what change they will trigger. The actions are also disabled when no command is available for undo or redo. These actions are returned by QUndoStack::createUndoAction() and QUndoStack::createRedoAction().</p>
<a name="command-compression-and-macros"></a>
<h3>Command Compression and Macros</h3>
<p>Command compression is useful when several commands can be compressed into a single command that can be undone and redone in a single operation. For example, when a user types a character in a text editor, a new command is created. This command inserts the character into the document at the cursor position. However, it is more convenient for the user to be able to undo or redo typing of whole words, sentences, or paragraphs. Command compression allows these single-character commands to be merged into a single command which inserts or deletes sections of text. For more information, see QUndoCommand::mergeWith() and <a href="QUndoStack.html#push(com.trolltech.qt.gui.QUndoCommand)"><tt>push</tt></a>.</p>
<p>A command macro is a sequence of commands, all of which are undone and redone in one go. Command macros are created by giving a command a list of child commands. Undoing or redoing the parent command will cause the child commands to be undone or redone. Command macros may be created explicitly by specifying a parent in the <a href="QUndoCommand.html"><tt>QUndoCommand</tt></a> constructor, or by using the convenience functions <a href="QUndoStack.html#beginMacro(java.lang.String)"><tt>beginMacro</tt></a> and <a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a>.</p>
<p>Although command compression and macros appear to have the same effect to the user, they often have different uses in an application. Commands that perform small changes to a document may be usefully compressed if there is no need to individually record them, and if only larger changes are relevant to the user. However, for commands that need to be recorded individually, or those that cannot be compressed, it is useful to use macros to provide a more convenient user experience while maintaining a record of each command.</p>
<a name="clean-state"></a>
<h3>Clean State</h3>
<p><a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> supports the concept of a clean state. When the document is saved to disk, the stack can be marked as clean using <a href="QUndoStack.html#setClean()"><tt>setClean</tt></a>. Whenever the stack returns to this state through undoing and redoing commands, it emits the signal <a href="QUndoStack.html#cleanChanged(boolean)"><tt>cleanChanged</tt></a>. This signal is also emitted when the stack leaves the clean state. This signal is usually used to enable and disable the save actions in the application, and to update the document's title to reflect that it contains unsaved changes.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QUndoCommand.html"><tt>QUndoCommand</tt></a>, 
<a href="QUndoView.html"><tt>QUndoView</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#canRedoChanged">canRedoChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the value of <a href="QUndoStack.html#canRedo()"><tt>canRedo</tt></a> changes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#canUndoChanged">canUndoChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the value of <a href="QUndoStack.html#canUndo()"><tt>canUndo</tt></a> changes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#cleanChanged">cleanChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the stack enters or leaves the clean state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#indexChanged">indexChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever a command modifies the state of the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#redoTextChanged">redoTextChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the value of <a href="QUndoStack.html#redoText()"><tt>redoText</tt></a> changes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#undoTextChanged">undoTextChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the value of <a href="QUndoStack.html#undoText()"><tt>undoText</tt></a> changes.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#QUndoStack()">QUndoStack</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)">QUndoStack</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an empty undo stack with the parent <tt>parent</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#beginMacro(java.lang.String)">beginMacro</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begins composition of a macro command with the given <tt>text</tt> description.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#canRedo()">canRedo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if there is a command available for redo; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#canUndo()">canUndo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if there is a command available for undo; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#cleanIndex()">cleanIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the clean index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#clear()">clear</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the command stack by deleting all commands on it, and returns the stack to the clean state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#count()">count</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of commands on the stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject)">createRedoAction</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>(<tt>parent</tt>, QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)">createRedoAction</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent,
                 java.lang.String&nbsp;prefix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an redo <a href="QAction.html"><tt>QAction</tt></a> object with the given <tt>parent</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject)">createUndoAction</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a>(<tt>parent</tt>, QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)">createUndoAction</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent,
                 java.lang.String&nbsp;prefix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an undo <a href="QAction.html"><tt>QAction</tt></a> object with the given <tt>parent</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#endMacro()">endMacro</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ends composition of a macro command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html" title="class in com.trolltech.qt.gui">QUndoStack</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QUndoStack instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#index()">index</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the current command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#isActive()">isActive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the active status of this stack..</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#isClean()">isClean</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the stack is in the clean state, returns true; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#push(com.trolltech.qt.gui.QUndoCommand)">push</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QUndoCommand.html" title="class in com.trolltech.qt.gui">QUndoCommand</A>&nbsp;cmd)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pushes <tt>cmd</tt> on the stack or merges it with the most recently executed command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#redo()">redo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redoes the current command by calling QUndoCommand::redo().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#redoText()">redoText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text of the command which will be redone in the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#setActive()">setActive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QUndoStack.html#setActive(boolean)"><tt>setActive</tt></a>(true).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#setActive(boolean)">setActive</A></B>(boolean&nbsp;active)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active status of this stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#setClean()">setClean</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marks the stack as clean and emits <a href="QUndoStack.html#cleanChanged(boolean)"><tt>cleanChanged</tt></a> if the stack was not already clean.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#setIndex(int)">setIndex</A></B>(int&nbsp;idx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repeatedly calls <a href="QUndoStack.html#undo()"><tt>undo</tt></a> or <a href="QUndoStack.html#redo()"><tt>redo</tt></a> until the the current command index reaches <tt>idx</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#setUndoLimit(int)">setUndoLimit</A></B>(int&nbsp;limit)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum number of commands on this stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#text(int)">text</A></B>(int&nbsp;idx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text of the command at index <tt>idx</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#undo()">undo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Undoes the command below the current command by calling QUndoCommand::undo().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#undoLimit()">undoLimit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum number of commands on this stack..</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html#undoText()">undoText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text of the command which will be undone in the next call to <a href="QUndoStack.html#undo()"><tt>undo</tt></a>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="canRedoChanged"><!-- --></A><H3>
canRedoChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>canRedoChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the value of <a href="QUndoStack.html#canRedo()"><tt>canRedo</tt></a> changes. It is used to enable or disable the redo action returned by <a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>. <tt>canRedo</tt> specifies the new value.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean canRedo)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="canUndoChanged"><!-- --></A><H3>
canUndoChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>canUndoChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the value of <a href="QUndoStack.html#canUndo()"><tt>canUndo</tt></a> changes. It is used to enable or disable the undo action returned by <a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a>. <tt>canUndo</tt> specifies the new value.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean canUndo)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="cleanChanged"><!-- --></A><H3>
cleanChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>cleanChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the stack enters or leaves the clean state. If <tt>clean</tt> is true, the stack is in a clean state; otherwise this signal indicates that it has left the clean state.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean clean)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QUndoStack.html#isClean()"><tt>isClean</tt></a>, <a href="QUndoStack.html#setClean()"><tt>setClean</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="indexChanged"><!-- --></A><H3>
indexChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>indexChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever a command modifies the state of the document. This happens when a command is undone or redone. When a macro command is undone or redone, or <a href="QUndoStack.html#setIndex(int)"><tt>setIndex</tt></a> is called, this signal is emitted only once.</p>
<p><tt>idx</tt> specifies the index of the current command, ie. the command which will be executed on the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int idx)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QUndoStack.html#index()"><tt>index</tt></a>, <a href="QUndoStack.html#setIndex(int)"><tt>setIndex</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="redoTextChanged"><!-- --></A><H3>
redoTextChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.String&gt; <B>redoTextChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the value of <a href="QUndoStack.html#redoText()"><tt>redoText</tt></a> changes. It is used to update the text property of the redo action returned by <a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>. <tt>redoText</tt> specifies the new text.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(java.lang.String redoText)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="undoTextChanged"><!-- --></A><H3>
undoTextChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.String&gt; <B>undoTextChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the value of <a href="QUndoStack.html#undoText()"><tt>undoText</tt></a> changes. It is used to update the text property of the undo action returned by <a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a>. <tt>undoText</tt> specifies the new text.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(java.lang.String undoText)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QUndoStack()"><!-- --></A><H3>
QUndoStack</H3>
<PRE>
public <B>QUndoStack</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a>(0).
<P>
</DL>
<HR>

<A NAME="QUndoStack(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QUndoStack</H3>
<PRE>
public <B>QUndoStack</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs an empty undo stack with the parent <tt>parent</tt>. The stack will initally be in the clean state. If <tt>parent</tt> is a <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a> object, the stack is automatically added to the group.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#push(com.trolltech.qt.gui.QUndoCommand)"><tt>push</tt></a></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="beginMacro(java.lang.String)"><!-- --></A><H3>
beginMacro</H3>
<PRE>
public final void <B>beginMacro</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Begins composition of a macro command with the given <tt>text</tt> description.</p>
<p>An empty command described by the specified <tt>text</tt> is pushed on the stack. Any subsequent commands pushed on the stack will be appended to the empty command's children until <a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a> is called.</p>
<p>Calls to <a href="QUndoStack.html#beginMacro(java.lang.String)"><tt>beginMacro</tt></a> and <a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a> may be nested, but every call to <a href="QUndoStack.html#beginMacro(java.lang.String)"><tt>beginMacro</tt></a> must have a matching call to <a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a>.</p>
<p>While a macro is composed, the stack is disabled. This means that:</p>
<ul>
<li><a href="QUndoStack.html#indexChanged(int)"><tt>indexChanged</tt></a> and <a href="QUndoStack.html#cleanChanged(boolean)"><tt>cleanChanged</tt></a> are not emitted,</li>
<li><a href="QUndoStack.html#canUndo()"><tt>canUndo</tt></a> and <a href="QUndoStack.html#canRedo()"><tt>canRedo</tt></a> return false,</li>
<li>calling <a href="QUndoStack.html#undo()"><tt>undo</tt></a> or <a href="QUndoStack.html#redo()"><tt>redo</tt></a> has no effect,</li>
<li>the undo/redo actions are disabled.</li>
</ul>
<p>The stack becomes enabled and appropriate signals are emitted when <a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a> is called for the outermost macro.</p>
<pre>    stack.beginMacro(&quot;insert red text&quot;);
    stack.push(new InsertText(document, idx, text));
    stack.push(new SetColor(document, idx, text.length(), Qt::red));
    stack.endMacro(); <span class="comment">// indexChanged() is emitted</span></pre>
<p>This code is equivalent to:</p>
<pre>    QUndoCommand *insertRed = new QUndoCommand(); <span class="comment">// an empty command</span>
    insertRed-&gt;setText(&quot;insert red text&quot;);

    new InsertText(document, idx, text, insertRed); <span class="comment">// becomes child of insertRed</span>
    new SetColor(document, idx, text.length(), Qt::red, insertRed);

    stack.push(insertRed);</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#endMacro()"><tt>endMacro</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="canRedo()"><!-- --></A><H3>
canRedo</H3>
<PRE>
public final boolean <B>canRedo</B>()</PRE>
<DL>
<DD><p>Returns true if there is a command available for redo; otherwise returns false.</p>
<p>This function returns false if the stack is empty or if the top command on the stack has already been redone.</p>
<p>Synonymous with <a href="QUndoStack.html#index()"><tt>index</tt></a> == <a href="QUndoStack.html#count()"><tt>count</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#index()"><tt>index</tt></a>, 
<a href="QUndoStack.html#canUndo()"><tt>canUndo</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="canUndo()"><!-- --></A><H3>
canUndo</H3>
<PRE>
public final boolean <B>canUndo</B>()</PRE>
<DL>
<DD><p>Returns true if there is a command available for undo; otherwise returns false.</p>
<p>This function returns false if the stack is empty, or if the bottom command on the stack has already been undone.</p>
<p>Synonymous with <a href="QUndoStack.html#index()"><tt>index</tt></a> == 0.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#index()"><tt>index</tt></a>, 
<a href="QUndoStack.html#canRedo()"><tt>canRedo</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="cleanIndex()"><!-- --></A><H3>
cleanIndex</H3>
<PRE>
public final int <B>cleanIndex</B>()</PRE>
<DL>
<DD><p>Returns the clean index. This is the index at which <a href="QUndoStack.html#setClean()"><tt>setClean</tt></a> was called.</p>
<p>A stack may not have a clean index. This happens if a document is saved, some commands are undone, then a new command is pushed. Since <a href="QUndoStack.html#push(com.trolltech.qt.gui.QUndoCommand)"><tt>push</tt></a> deletes all the undone commands before pushing the new command, the stack can't return to the clean state again. In this case, this function returns -1.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#isClean()"><tt>isClean</tt></a>, 
<a href="QUndoStack.html#setClean()"><tt>setClean</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="clear()"><!-- --></A><H3>
clear</H3>
<PRE>
public final void <B>clear</B>()</PRE>
<DL>
<DD><p>Clears the command stack by deleting all commands on it, and returns the stack to the clean state.</p>
<p>Commands are not undone or redone; the state of the edited object remains unchanged.</p>
<p>This function is usually used when the contents of the document are abandoned.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="count()"><!-- --></A><H3>
count</H3>
<PRE>
public final int <B>count</B>()</PRE>
<DL>
<DD><p>Returns the number of commands on the stack. Macro commands are counted as one command.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#index()"><tt>index</tt></a>, 
<a href="QUndoStack.html#setIndex(int)"><tt>setIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="createRedoAction(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
createRedoAction</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A> <B>createRedoAction</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Equivalent to <a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>(<tt>parent</tt>, QString()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><!-- --></A><H3>
createRedoAction</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A> <B>createRedoAction</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent,
                                      java.lang.String&nbsp;prefix)</PRE>
<DL>
<DD><p>Creates an redo <a href="QAction.html"><tt>QAction</tt></a> object with the given <tt>parent</tt>.</p>
<p>Triggering this action will cause a call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>. The text of this action is the text of the command which will be redone in the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>, prefixed by the specified <tt>prefix</tt>. If there is no command available for redo, this action will be disabled.</p>
<p>If <tt>prefix</tt> is empty, the default prefix &quot;Redo&quot; is used.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a>, 
<a href="QUndoStack.html#canRedo()"><tt>canRedo</tt></a>, 
<tt>QUndoCommand::text</tt></DL>
</DD>
</DL>
<HR>

<A NAME="createUndoAction(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
createUndoAction</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A> <B>createUndoAction</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Equivalent to <a href="QUndoStack.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createUndoAction</tt></a>(<tt>parent</tt>, QString()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)"><!-- --></A><H3>
createUndoAction</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAction.html" title="class in com.trolltech.qt.gui">QAction</A> <B>createUndoAction</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent,
                                      java.lang.String&nbsp;prefix)</PRE>
<DL>
<DD><p>Creates an undo <a href="QAction.html"><tt>QAction</tt></a> object with the given <tt>parent</tt>.</p>
<p>Triggering this action will cause a call to <a href="QUndoStack.html#undo()"><tt>undo</tt></a>. The text of this action is the text of the command which will be undone in the next call to <a href="QUndoStack.html#undo()"><tt>undo</tt></a>, prefixed by the specified <tt>prefix</tt>. If there is no command available for undo, this action will be disabled.</p>
<p>If <tt>prefix</tt> is empty, the default prefix &quot;Undo&quot; is used.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)"><tt>createRedoAction</tt></a>, 
<a href="QUndoStack.html#canUndo()"><tt>canUndo</tt></a>, 
<tt>QUndoCommand::text</tt></DL>
</DD>
</DL>
<HR>

<A NAME="endMacro()"><!-- --></A><H3>
endMacro</H3>
<PRE>
public final void <B>endMacro</B>()</PRE>
<DL>
<DD><p>Ends composition of a macro command.</p>
<p>If this is the outermost macro in a set nested macros, this function emits <a href="QUndoStack.html#indexChanged(int)"><tt>indexChanged</tt></a> once for the entire macro command.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#beginMacro(java.lang.String)"><tt>beginMacro</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="index()"><!-- --></A><H3>
index</H3>
<PRE>
public final int <B>index</B>()</PRE>
<DL>
<DD><p>Returns the index of the current command. This is the command that will be executed on the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>. It is not always the top-most command on the stack, since a number of commands may have been undone.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#setIndex(int)"><tt>setIndex</tt></a>, 
<a href="QUndoStack.html#undo()"><tt>undo</tt></a>, 
<a href="QUndoStack.html#redo()"><tt>redo</tt></a>, 
<a href="QUndoStack.html#count()"><tt>count</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isActive()"><!-- --></A><H3>
isActive</H3>
<PRE>
public final boolean <B>isActive</B>()</PRE>
<DL>
<DD><p>Returns the active status of this stack..</p>
<p>An application often has multiple undo stacks, one for each opened document. The active stack is the one associated with the currently active document. If the stack belongs to a <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a>, calls to QUndoGroup::undo() or QUndoGroup::redo() will be forwarded to this stack when it is active. If the <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a> is watched by a <a href="QUndoView.html"><tt>QUndoView</tt></a>, the view will display the contents of this stack when it is active. If the stack does not belong to a <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a>, making it active has no effect.</p>
<p>It is the programmer's responsibility to specify which stack is active by calling <a href="QUndoStack.html#setActive(boolean)"><tt>setActive</tt></a>, usually when the associated document window receives focus.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoGroup.html"><tt>QUndoGroup</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isClean()"><!-- --></A><H3>
isClean</H3>
<PRE>
public final boolean <B>isClean</B>()</PRE>
<DL>
<DD><p>If the stack is in the clean state, returns true; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#setClean()"><tt>setClean</tt></a>, 
<a href="QUndoStack.html#cleanIndex()"><tt>cleanIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="push(com.trolltech.qt.gui.QUndoCommand)"><!-- --></A><H3>
push</H3>
<PRE>
public final void <B>push</B>(<A HREF="../../../../com/trolltech/qt/gui/QUndoCommand.html" title="class in com.trolltech.qt.gui">QUndoCommand</A>&nbsp;cmd)</PRE>
<DL>
<DD><p>Pushes <tt>cmd</tt> on the stack or merges it with the most recently executed command. In either case, executes <tt>cmd</tt> by calling its <a href="QUndoStack.html#redo()"><tt>redo</tt></a> function.</p>
<p>If <tt>cmd</tt>'s id is not -1, and if the id is the same as that of the most recently executed command, <a href="QUndoStack.html#QUndoStack(com.trolltech.qt.core.QObject)"><tt>QUndoStack</tt></a> will attempt to merge the two commands by calling QUndoCommand::mergeWith() on the most recently executed command. If QUndoCommand::mergeWith() returns true, <tt>cmd</tt> is deleted.</p>
<p>In all other cases <tt>cmd</tt> is simply pushed on the stack.</p>
<p>If commands were undone before <tt>cmd</tt> was pushed, the current command and all commands above it are deleted. Hence <tt>cmd</tt> always ends up being the top-most on the stack.</p>
<p>Once a command is pushed, the stack takes ownership of it. There are no getters to return the command, since modifying it after it has been executed will almost always lead to corruption of the document's state.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QUndoCommand::id</tt>, 
<tt>QUndoCommand::mergeWith</tt></DL>
</DD>
</DL>
<HR>

<A NAME="redo()"><!-- --></A><H3>
redo</H3>
<PRE>
public final void <B>redo</B>()</PRE>
<DL>
<DD><p>Redoes the current command by calling QUndoCommand::redo(). Increments the current command index.</p>
<p>If the stack is empty, or if the top command on the stack has already been redone, this function does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#undo()"><tt>undo</tt></a>, 
<a href="QUndoStack.html#index()"><tt>index</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="redoText()"><!-- --></A><H3>
redoText</H3>
<PRE>
public final java.lang.String <B>redoText</B>()</PRE>
<DL>
<DD><p>Returns the text of the command which will be redone in the next call to <a href="QUndoStack.html#redo()"><tt>redo</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QUndoCommand::text</tt>, 
<a href="QUndoStack.html#undoText()"><tt>undoText</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setActive()"><!-- --></A><H3>
setActive</H3>
<PRE>
public final void <B>setActive</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QUndoStack.html#setActive(boolean)"><tt>setActive</tt></a>(true).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setActive(boolean)"><!-- --></A><H3>
setActive</H3>
<PRE>
public final void <B>setActive</B>(boolean&nbsp;active)</PRE>
<DL>
<DD><p>Sets the active status of this stack. to <tt>active</tt>.</p>
<p>An application often has multiple undo stacks, one for each opened document. The active stack is the one associated with the currently active document. If the stack belongs to a <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a>, calls to QUndoGroup::undo() or QUndoGroup::redo() will be forwarded to this stack when it is active. If the <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a> is watched by a <a href="QUndoView.html"><tt>QUndoView</tt></a>, the view will display the contents of this stack when it is active. If the stack does not belong to a <a href="QUndoGroup.html"><tt>QUndoGroup</tt></a>, making it active has no effect.</p>
<p>It is the programmer's responsibility to specify which stack is active by calling <a href="QUndoStack.html#setActive(boolean)"><tt>setActive</tt></a>, usually when the associated document window receives focus.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#isActive()"><tt>isActive</tt></a>, 
<a href="QUndoGroup.html"><tt>QUndoGroup</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setClean()"><!-- --></A><H3>
setClean</H3>
<PRE>
public final void <B>setClean</B>()</PRE>
<DL>
<DD><p>Marks the stack as clean and emits <a href="QUndoStack.html#cleanChanged(boolean)"><tt>cleanChanged</tt></a> if the stack was not already clean.</p>
<p>Whenever the stack returns to this state through the use of undo/redo commands, it emits the signal <a href="QUndoStack.html#cleanChanged(boolean)"><tt>cleanChanged</tt></a>. This signal is also emitted when the stack leaves the clean state.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#isClean()"><tt>isClean</tt></a>, 
<a href="QUndoStack.html#cleanIndex()"><tt>cleanIndex</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setIndex(int)"><!-- --></A><H3>
setIndex</H3>
<PRE>
public final void <B>setIndex</B>(int&nbsp;idx)</PRE>
<DL>
<DD><p>Repeatedly calls <a href="QUndoStack.html#undo()"><tt>undo</tt></a> or <a href="QUndoStack.html#redo()"><tt>redo</tt></a> until the the current command index reaches <tt>idx</tt>. This function can be used to roll the state of the document forwards of backwards. <a href="QUndoStack.html#indexChanged(int)"><tt>indexChanged</tt></a> is emitted only once.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#index()"><tt>index</tt></a>, 
<a href="QUndoStack.html#count()"><tt>count</tt></a>, 
<a href="QUndoStack.html#undo()"><tt>undo</tt></a>, 
<a href="QUndoStack.html#redo()"><tt>redo</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setUndoLimit(int)"><!-- --></A><H3>
setUndoLimit</H3>
<PRE>
public final void <B>setUndoLimit</B>(int&nbsp;limit)</PRE>
<DL>
<DD><p>Sets the maximum number of commands on this stack. to <tt>limit</tt>.</p>
<p>When the number of commands on a stack exceedes the stack's <a href="QUndoStack.html#undoLimit()"><tt>undoLimit</tt></a>, commands are deleted from the bottom of the stack. Macro commands (commands with child commands) are treated as one command. The default value is 0, which means that there is no limit.</p>
<p>This property may only be set when the undo stack is empty, since setting it on a non-empty stack might delete the command at the current index. Calling <a href="QUndoStack.html#setUndoLimit(int)"><tt>setUndoLimit</tt></a> on a non-empty stack prints a warning and does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#undoLimit()"><tt>undoLimit</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="text(int)"><!-- --></A><H3>
text</H3>
<PRE>
public final java.lang.String <B>text</B>(int&nbsp;idx)</PRE>
<DL>
<DD><p>Returns the text of the command at index <tt>idx</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#beginMacro(java.lang.String)"><tt>beginMacro</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="undo()"><!-- --></A><H3>
undo</H3>
<PRE>
public final void <B>undo</B>()</PRE>
<DL>
<DD><p>Undoes the command below the current command by calling QUndoCommand::undo(). Decrements the current command index.</p>
<p>If the stack is empty, or if the bottom command on the stack has already been undone, this function does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#redo()"><tt>redo</tt></a>, 
<a href="QUndoStack.html#index()"><tt>index</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="undoLimit()"><!-- --></A><H3>
undoLimit</H3>
<PRE>
public final int <B>undoLimit</B>()</PRE>
<DL>
<DD><p>Returns the maximum number of commands on this stack..</p>
<p>When the number of commands on a stack exceedes the stack's <a href="QUndoStack.html#undoLimit()"><tt>undoLimit</tt></a>, commands are deleted from the bottom of the stack. Macro commands (commands with child commands) are treated as one command. The default value is 0, which means that there is no limit.</p>
<p>This property may only be set when the undo stack is empty, since setting it on a non-empty stack might delete the command at the current index. Calling <a href="QUndoStack.html#setUndoLimit(int)"><tt>setUndoLimit</tt></a> on a non-empty stack prints a warning and does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QUndoStack.html#setUndoLimit(int)"><tt>setUndoLimit</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="undoText()"><!-- --></A><H3>
undoText</H3>
<PRE>
public final java.lang.String <B>undoText</B>()</PRE>
<DL>
<DD><p>Returns the text of the command which will be undone in the next call to <a href="QUndoStack.html#undo()"><tt>undo</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QUndoCommand::text</tt>, 
<a href="QUndoStack.html#redoText()"><tt>redoText</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QUndoStack.html" title="class in com.trolltech.qt.gui">QUndoStack</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QUndoStack instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QUndoGroup.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QUndoView.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QUndoStack.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QUndoStack.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>