Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3f684444755c5ad1181cdd5a97348f3c > files > 1677

PyQt4-devel-4.7.4-2.fc14.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QUndoView Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QUndoView Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QUndoView class displays the contents of a <a href="qundostack.html">QUndoStack</a>. <a href="#details">More...</a></p>
<p>Inherits <a href="qlistview.html">QListView</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qundoview.html#QUndoView">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qundoview.html#QUndoView-2">__init__</a></b> (<i>self</i>, QUndoStack, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qundoview.html#QUndoView-3">__init__</a></b> (<i>self</i>, QUndoGroup, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />QIcon <b><a href="qundoview.html#cleanIcon">cleanIcon</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qundoview.html#emptyLabel">emptyLabel</a></b> (<i>self</i>)</li><li><div class="fn" />QUndoGroup <b><a href="qundoview.html#group">group</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qundoview.html#setCleanIcon">setCleanIcon</a></b> (<i>self</i>, QIcon)</li><li><div class="fn" /><b><a href="qundoview.html#setEmptyLabel">setEmptyLabel</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qundoview.html#setGroup">setGroup</a></b> (<i>self</i>, QUndoGroup)</li><li><div class="fn" /><b><a href="qundoview.html#setStack">setStack</a></b> (<i>self</i>, QUndoStack)</li><li><div class="fn" />QUndoStack <b><a href="qundoview.html#stack">stack</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QUndoView class displays the contents of a <a href="qundostack.html">QUndoStack</a>.</p>
<p>QUndoView is a <a href="qlistview.html">QListView</a> which displays the list of commands pushed on an undo stack. The most recently executed command is always selected. Selecting a different command results in a call to <a href="qundostack.html#setIndex">QUndoStack.setIndex</a>(), rolling the state of the document backwards or forward to the new command.</p>
<p>The stack can be set explicitly with <a href="qundoview.html#setStack">setStack</a>(). Alternatively, a <a href="qundogroup.html">QUndoGroup</a> object can be set with <a href="qundoview.html#setGroup">setGroup</a>(). The view will then update itself automatically whenever the active stack of the group changes.</p>
<p align="center"><img src="images/qundoview.png" /></p><hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QUndoView" />QUndoView.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;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 new view with parent <i>parent</i>.</p>
<h3 class="fn"><a name="QUndoView-2" />QUndoView.__init__ (<i>self</i>, <a href="qundostack.html">QUndoStack</a>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;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 new view with parent <i>parent</i> and sets the observed stack to <i>stack</i>.</p>
<h3 class="fn"><a name="QUndoView-3" />QUndoView.__init__ (<i>self</i>, <a href="qundogroup.html">QUndoGroup</a>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;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 new view with parent <i>parent</i> and sets the observed group to <i>group</i>.</p>
<p>The view will update itself autmiatically whenever the active stack of the group changes.</p>
<a name="//apple_ref/cpp/instm/QUndoView/~QUndoView" />
<h3 class="fn"><a name="cleanIcon" /><a href="qicon.html">QIcon</a> QUndoView.cleanIcon (<i>self</i>)</h3><h3 class="fn"><a name="emptyLabel" />QString QUndoView.emptyLabel (<i>self</i>)</h3><h3 class="fn"><a name="group" /><a href="qundogroup.html">QUndoGroup</a> QUndoView.group (<i>self</i>)</h3><p>Returns the group displayed by this view.</p>
<p>If the view is not looking at group, this function returns 0.</p>
<p>See also <a href="qundoview.html#setGroup">setGroup</a>() and <a href="qundoview.html#setStack">setStack</a>().</p>
<a name="//apple_ref/cpp/instm/QUndoView/setGroup" />
<h3 class="fn"><a name="setCleanIcon" />QUndoView.setCleanIcon (<i>self</i>, <a href="qicon.html">QIcon</a>)</h3><h3 class="fn"><a name="setEmptyLabel" />QUndoView.setEmptyLabel (<i>self</i>, QString)</h3><h3 class="fn"><a name="setGroup" />QUndoView.setGroup (<i>self</i>, <a href="qundogroup.html">QUndoGroup</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setGroup(QUndoGroup *)</tt>.</p><p>Sets the group displayed by this view to <i>group</i>. If <i>group</i> is 0, the view will be empty.</p>
<p>The view will update itself autmiatically whenever the active stack of the group changes.</p>
<p>See also <a href="qundoview.html#group">group</a>() and <a href="qundoview.html#setStack">setStack</a>().</p>
<a name="//apple_ref/cpp/instm/QUndoView/setStack" />
<h3 class="fn"><a name="setStack" />QUndoView.setStack (<i>self</i>, <a href="qundostack.html">QUndoStack</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setStack(QUndoStack *)</tt>.</p><p>Sets the stack displayed by this view to <i>stack</i>. If <i>stack</i> is 0, the view will be empty.</p>
<p>If the view was previously looking at a <a href="qundogroup.html">QUndoGroup</a>, the group is set to 0.</p>
<p>See also <a href="qundoview.html#stack">stack</a>() and <a href="qundoview.html#setGroup">setGroup</a>().</p>
<a name="//apple_ref/cpp/instm/QUndoView/stack" />
<h3 class="fn"><a name="stack" /><a href="qundostack.html">QUndoStack</a> QUndoView.stack (<i>self</i>)</h3><p>Returns the stack currently displayed by this view. If the view is looking at a <a href="qundogroup.html">QUndoGroup</a>, this the group's active stack.</p>
<p>See also <a href="qundoview.html#setStack">setStack</a>() and <a href="qundoview.html#setGroup">setGroup</a>().</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.4 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>