50
50
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QUndoCommand" />QUndoCommand.__init__ (<i>self</i>, <a href="qundocommand.html">QUndoCommand</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qundocommand.html">QUndoCommand</a> object with parent <i>parent</i>.</p>
51
51
<p>If <i>parent</i> is not 0, this command is appended to parent's child list. The parent command then owns this command and will delete it in its destructor.</p>
52
52
<p>See also <a href="qundocommand.html#dtor.QUndoCommand">~QUndoCommand</a>().</p>
53
<h3 class="fn"><a name="QUndoCommand-2" />QUndoCommand.__init__ (<i>self</i>, <a href="qstring.html">QString</a> <i>text</i>, <a href="qundocommand.html">QUndoCommand</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qundocommand.html">QUndoCommand</a> object with the given <i>parent</i> and <i>text</i>.</p>
53
<h3 class="fn"><a name="QUndoCommand-2" />QUndoCommand.__init__ (<i>self</i>, QString <i>text</i>, <a href="qundocommand.html">QUndoCommand</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qundocommand.html">QUndoCommand</a> object with the given <i>parent</i> and <i>text</i>.</p>
54
54
<p>If <i>parent</i> is not 0, this command is appended to parent's child list. The parent command then owns this command and will delete it in its destructor.</p>
55
55
<p>See also <a href="qundocommand.html#dtor.QUndoCommand">~QUndoCommand</a>().</p>
56
56
<h3 class="fn"><a name="child" /><a href="qundocommand.html">QUndoCommand</a> QUndoCommand.child (<i>self</i>, int <i>index</i>)</h3><p>Returns the child command at <i>index</i>.</p>
79
79
<h3 class="fn"><a name="redo" />QUndoCommand.redo (<i>self</i>)</h3><p>Applies a change to the document. This function must be implemented in the derived class. Calling <a href="qundostack.html#push">QUndoStack.push</a>(), <a href="qundostack.html#undo">QUndoStack.undo</a>() or <a href="qundostack.html#redo">QUndoStack.redo</a>() from this function leads to undefined beahavior.</p>
80
80
<p>The default implementation calls redo() on all child commands.</p>
81
81
<p>See also <a href="qundocommand.html#undo">undo</a>().</p>
82
<h3 class="fn"><a name="setText" />QUndoCommand.setText (<i>self</i>, <a href="qstring.html">QString</a> <i>text</i>)</h3><p>Sets the command's text to be the <i>text</i> specified.</p>
82
<h3 class="fn"><a name="setText" />QUndoCommand.setText (<i>self</i>, QString <i>text</i>)</h3><p>Sets the command's text to be the <i>text</i> specified.</p>
83
83
<p>The specified text should be a short user-readable string describing what this command does.</p>
84
84
<p>See also <a href="qundocommand.html#text">text</a>(), <a href="qundostack.html#createUndoAction">QUndoStack.createUndoAction</a>(), and <a href="qundostack.html#createRedoAction">QUndoStack.createRedoAction</a>().</p>
85
<h3 class="fn"><a name="text" /><a href="qstring.html">QString</a> QUndoCommand.text (<i>self</i>)</h3><p>Returns a short text string describing what this command does; for example, "insert text".</p>
85
<h3 class="fn"><a name="text" />QString QUndoCommand.text (<i>self</i>)</h3><p>Returns a short text string describing what this command does; for example, "insert text".</p>
86
86
<p>The text is used when the text properties of the stack's undo and redo actions are updated.</p>
87
87
<p>See also <a href="qundocommand.html#setText">setText</a>(), <a href="qundostack.html#createUndoAction">QUndoStack.createUndoAction</a>(), and <a href="qundostack.html#createRedoAction">QUndoStack.createRedoAction</a>().</p>
88
88
<h3 class="fn"><a name="undo" />QUndoCommand.undo (<i>self</i>)</h3><p>Reverts a change to the document. After undo() is called, the state of the document should be the same as before <a href="qundocommand.html#redo">redo</a>() was called. This function must be implemented in the derived class. Calling <a href="qundostack.html#push">QUndoStack.push</a>(), <a href="qundostack.html#undo">QUndoStack.undo</a>() or <a href="qundostack.html#redo">QUndoStack.redo</a>() from this function leads to undefined beahavior.</p>
89
89
<p>The default implementation calls undo() on all child commands in reverse order.</p>
90
90
<p>See also <a href="qundocommand.html#redo">redo</a>().</p>
91
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.5.4 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt 4.5.1</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'
91
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.6 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt 4.5.2</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'