<?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>QDesignerFormWindowManagerInterface 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">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QDesignerFormWindowManagerInterface Class Reference<br /><sup><sup>[<a href="qtdesigner.html">QtDesigner</a> module]</sup></sup></h1><p>The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer's form editing actions. <a href="#details">More...</a></p> <p>Inherits <a href="qobject.html">QObject</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qdesignerformwindowmanagerinterface.html#QDesignerFormWindowManagerInterface">__init__</a></b> (<i>self</i>, QObject <i>parent</i> = None)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionAdjustSize">actionAdjustSize</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionBreakLayout">actionBreakLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionCopy">actionCopy</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionCut">actionCut</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionDelete">actionDelete</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionFormLayout">actionFormLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionGridLayout">actionGridLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionHorizontalLayout">actionHorizontalLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionLower">actionLower</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionPaste">actionPaste</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionRaise">actionRaise</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionRedo">actionRedo</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionSelectAll">actionSelectAll</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionSimplifyLayout">actionSimplifyLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionSplitHorizontal">actionSplitHorizontal</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionSplitVertical">actionSplitVertical</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionUndo">actionUndo</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qdesignerformwindowmanagerinterface.html#actionVerticalLayout">actionVerticalLayout</a></b> (<i>self</i>)</li><li><div class="fn" />QDesignerFormWindowInterface <b><a href="qdesignerformwindowmanagerinterface.html#activeFormWindow">activeFormWindow</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qdesignerformwindowmanagerinterface.html#addFormWindow">addFormWindow</a></b> (<i>self</i>, QDesignerFormWindowInterface <i>formWindow</i>)</li><li><div class="fn" />QDesignerFormEditorInterface <b><a href="qdesignerformwindowmanagerinterface.html#core">core</a></b> (<i>self</i>)</li><li><div class="fn" />QDesignerFormWindowInterface <b><a href="qdesignerformwindowmanagerinterface.html#createFormWindow">createFormWindow</a></b> (<i>self</i>, QWidget <i>parent</i> = None, Qt.WindowFlags <i>flags</i> = 0)</li><li><div class="fn" />QDesignerFormWindowInterface <b><a href="qdesignerformwindowmanagerinterface.html#formWindow">formWindow</a></b> (<i>self</i>, int <i>index</i>)</li><li><div class="fn" />int <b><a href="qdesignerformwindowmanagerinterface.html#formWindowCount">formWindowCount</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qdesignerformwindowmanagerinterface.html#removeFormWindow">removeFormWindow</a></b> (<i>self</i>, QDesignerFormWindowInterface <i>formWindow</i>)</li><li><div class="fn" /><b><a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a></b> (<i>self</i>, QDesignerFormWindowInterface <i>formWindow</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qdesignerformwindowmanagerinterface.html#activeFormWindowChanged">activeFormWindowChanged</a></b> (QDesignerFormWindowInterface *)</li><li><div class="fn" />void <b><a href="qdesignerformwindowmanagerinterface.html#formWindowAdded">formWindowAdded</a></b> (QDesignerFormWindowInterface *)</li><li><div class="fn" />void <b><a href="qdesignerformwindowmanagerinterface.html#formWindowRemoved">formWindowRemoved</a></b> (QDesignerFormWindowInterface *)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer's form editing actions.</p> <p>QDesignerFormWindowManagerInterface is not intended to be instantiated directly. <i>Qt Designer</i> uses the form window manager to control the various form windows in its workspace. You can retrieve an interface to <i>Qt Designer</i>'s form window manager using the <a href="qdesignerformeditorinterface.html#formWindowManager">QDesignerFormEditorInterface.formWindowManager</a>() function. For example:</p> <pre class="cpp"> <span class="type">QDesignerFormWindowManagerInterface</span> <span class="operator">*</span>manager <span class="operator">=</span> <span class="number">0</span>; <span class="type"><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a></span> <span class="operator">*</span>formWindow <span class="operator">=</span> <span class="number">0</span>; manager <span class="operator">=</span> formEditor<span class="operator">-</span><span class="operator">></span>formWindowManager(); formWindow <span class="operator">=</span> manager<span class="operator">-</span><span class="operator">></span><a href="qdesignerformwindowmanagerinterface.html#formWindow">formWindow</a>(<span class="number">0</span>); manager<span class="operator">-</span><span class="operator">></span><a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a>(formWindow); </pre> <p>When implementing a custom widget plugin, a pointer to <i>Qt Designer</i>'s current <a href="qdesignerformeditorinterface.html">QDesignerFormEditorInterface</a> object (<tt>formEditor</tt> in the example above) is provided by the <a href="qdesignercustomwidgetinterface.html#initialize">QDesignerCustomWidgetInterface.initialize</a>() function's parameter. You must subclass the <a href="qdesignercustomwidgetinterface.html">QDesignerCustomWidgetInterface</a> to expose your plugin to Qt Designer.</p> <p>The form window manager interface provides the <a href="qdesignerformwindowmanagerinterface.html#createFormWindow">createFormWindow</a>() function that enables you to create a new form window which you can add to the collection of form windows that the manager maintains, using the <a href="qdesignerformwindowmanagerinterface.html#addFormWindow">addFormWindow</a>() slot. It also provides the <a href="qdesignerformwindowmanagerinterface.html#formWindowCount">formWindowCount</a>() function returning the number of form windows currently under the manager's control, the <a href="qdesignerformwindowmanagerinterface.html#formWindow">formWindow</a>() function returning the form window associated with a given index, and the <a href="qdesignerformwindowmanagerinterface.html#activeFormWindow">activeFormWindow</a>() function returning the currently selected form window. The <a href="qdesignerformwindowmanagerinterface.html#removeFormWindow">removeFormWindow</a>() slot allows you to reduce the number of form windows the manager must maintain, and the <a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a>() slot allows you to change the form window focus in <i>Qt Designer</i>'s workspace.</p> <p>In addition, QDesignerFormWindowManagerInterface contains a collection of functions that enables you to intervene and control <i>Qt Designer</i>'s form editing actions. All these functions return the original action, making it possible to propagate the function further after intervention.</p> <p>Finally, the interface provides three signals which are emitted when a form window is added, when the currently selected form window changes, or when a form window is removed, respectively. All the signals carry the form window in question as their parameter.</p> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QDesignerFormWindowManagerInterface" />QDesignerFormWindowManagerInterface.__init__ (<i>self</i>, <a href="qobject.html">QObject</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 an interface with the given <i>parent</i> for the form window manager.</p> <h3 class="fn"><a name="actionAdjustSize" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionAdjustSize (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "adjust size" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionBreakLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionBreakLayout (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "break layout" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionCopy" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionCopy (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "copy" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionCut" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionCut (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "cut" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionDelete" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionDelete (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "delete" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionFormLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionFormLayout (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "form layout" action. The function returns the original action.</p> <p>FormWindowManagerPrivateMap *fwmpm = g_FormWindowManagerPrivateMap();</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionGridLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionGridLayout (<i>self</i>)</h3><p>Allows you to intervene and control a request for grid layout for a form window in <i>Qt Designer</i>'s workspace. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionHorizontalLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionHorizontalLayout (<i>self</i>)</h3><p>Allows you to intervene and control a request for horizontal layout for a form window in <i>Qt Designer</i>'s workspace. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionLower" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionLower (<i>self</i>)</h3><p>Allows you to intervene and control the action of lowering a form window in <i>Qt Designer</i>'s workspace. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionPaste" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionPaste (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "paste" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionRaise" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionRaise (<i>self</i>)</h3><p>Allows you to intervene and control the action of raising of a form window in <i>Qt Designer</i>'s workspace. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionRedo" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionRedo (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "redo" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionSelectAll" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionSelectAll (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "select all" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionSimplifyLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionSimplifyLayout (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "simplify layout" action. The function returns the original action.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionSplitHorizontal" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionSplitHorizontal (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "split horizontal" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionSplitVertical" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionSplitVertical (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "split vertical" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionUndo" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionUndo (<i>self</i>)</h3><p>Allows you to intervene and control <i>Qt Designer</i>'s "undo" action. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="actionVerticalLayout" /><a href="qaction.html">QAction</a> QDesignerFormWindowManagerInterface.actionVerticalLayout (<i>self</i>)</h3><p>Allows you to intervene and control a request for vertical layout for a form window in <i>Qt Designer</i>'s workspace. The function returns the original action.</p> <p><b>See also</b> <a href="qaction.html">QAction</a>.</p> <h3 class="fn"><a name="activeFormWindow" /><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> QDesignerFormWindowManagerInterface.activeFormWindow (<i>self</i>)</h3><p>Returns the currently active form window in <i>Qt Designer</i>'s workspace.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a>() and <a href="qdesignerformwindowmanagerinterface.html#removeFormWindow">removeFormWindow</a>().</p> <h3 class="fn"><a name="addFormWindow" />QDesignerFormWindowManagerInterface.addFormWindow (<i>self</i>, <a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> <i>formWindow</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void addFormWindow(QDesignerFormWindowInterface *)</tt>.</p><p>Adds the given <i>formWindow</i> to the collection of windows that <i>Qt Designer</i>'s form window manager maintains.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#formWindowAdded">formWindowAdded</a>().</p> <h3 class="fn"><a name="core" /><a href="qdesignerformeditorinterface.html">QDesignerFormEditorInterface</a> QDesignerFormWindowManagerInterface.core (<i>self</i>)</h3><p>Returns a pointer to <i>Qt Designer</i>'s current <a href="qdesignerformeditorinterface.html">QDesignerFormEditorInterface</a> object.</p> <h3 class="fn"><a name="createFormWindow" /><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> QDesignerFormWindowManagerInterface.createFormWindow (<i>self</i>, <a href="qwidget.html">QWidget</a> <i>parent</i> = None, <a href="qt-windowflags.html">Qt.WindowFlags</a> <i>flags</i> = 0)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Creates a form window with the given <i>parent</i> and the given window <i>flags</i>.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#addFormWindow">addFormWindow</a>().</p> <h3 class="fn"><a name="formWindow" /><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> QDesignerFormWindowManagerInterface.formWindow (<i>self</i>, int <i>index</i>)</h3><p>Returns the form window at the given <i>index</i>.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a>() and <a href="qdesignerformwindowmanagerinterface.html#removeFormWindow">removeFormWindow</a>().</p> <h3 class="fn"><a name="formWindowCount" />int QDesignerFormWindowManagerInterface.formWindowCount (<i>self</i>)</h3><p>Returns the number of form windows maintained by <i>Qt Designer</i>'s form window manager.</p> <h3 class="fn"><a name="removeFormWindow" />QDesignerFormWindowManagerInterface.removeFormWindow (<i>self</i>, <a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> <i>formWindow</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void removeFormWindow(QDesignerFormWindowInterface *)</tt>.</p><p>Removes the given <i>formWindow</i> from the collection of windows that <i>Qt Designer</i>'s form window manager maintains.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#formWindow">formWindow</a>() and <a href="qdesignerformwindowmanagerinterface.html#formWindowRemoved">formWindowRemoved</a>().</p> <h3 class="fn"><a name="setActiveFormWindow" />QDesignerFormWindowManagerInterface.setActiveFormWindow (<i>self</i>, <a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> <i>formWindow</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setActiveFormWindow(QDesignerFormWindowInterface *)</tt>.</p><p>Sets the given <i>formWindow</i> to be the currently active form window in <i>Qt Designer</i>'s workspace.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#activeFormWindow">activeFormWindow</a>() and <a href="qdesignerformwindowmanagerinterface.html#activeFormWindowChanged">activeFormWindowChanged</a>().</p> <hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="activeFormWindowChanged" />void activeFormWindowChanged (QDesignerFormWindowInterface *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the contents of the currently active form window in <i>Qt Designer</i>'s workspace changed. A pointer to the currently active <i>formWindow</i> is passed as an argument.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#activeFormWindow">activeFormWindow</a>().</p> <h3 class="fn"><a name="formWindowAdded" />void formWindowAdded (QDesignerFormWindowInterface *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a new form window is added to the collection of windows that <i>Qt Designer</i>'s form window manager maintains. A pointer to the new <i>formWindow</i> is passed as an argument.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#addFormWindow">addFormWindow</a>() and <a href="qdesignerformwindowmanagerinterface.html#setActiveFormWindow">setActiveFormWindow</a>().</p> <h3 class="fn"><a name="formWindowRemoved" />void formWindowRemoved (QDesignerFormWindowInterface *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a form window is removed from the collection of windows that <i>Qt Designer</i>'s form window manager maintains. A pointer to the removed <i>formWindow</i> is passed as an argument.</p> <p><b>See also</b> <a href="qdesignerformwindowmanagerinterface.html#removeFormWindow">removeFormWindow</a>().</p> <address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.10.3 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> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>