#include <abstractformwindowmanager.h>
Inheritance diagram for QDesignerFormWindowManagerInterface:


QtDesigner
QDesignerFormWindowManagerInterface is not intended to be instantiated directly. uses the form window manager to control the various form windows in its workspace. You can retrieve an interface to 's form window manager using the QDesignerFormEditorInterface::formWindowManager() function. For example:
QDesignerFormWindowManagerInterface *manager = 0; QDesignerFormWindowInterface *formWindow = 0; manager = formEditor->formWindowManager(); formWindow = manager->formWindow(0); manager->setActiveFormWindow(formWindow);
When implementing a custom widget plugin, a pointer to 's current QDesignerFormEditorInterface object (formEditor in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. You must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer.
The form window manager interface provides the createFormWindow() 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 addFormWindow() slot. It also provides the formWindowCount() function returning the number of form windows currently under the manager's control, the formWindow() function returning the form window associated with a given index, and the activeFormWindow() function returning the currently selected form window. The removeFormWindow() slot allows you to reduce the number of form windows the manager must maintain, and the setActiveFormWindow() slot allows you to change the form window focus in 's workspace.
In addition, QDesignerFormWindowManagerInterface contains a collection of functions that enables you to intervene and control 's form editing actions. All these functions return the original action, making it possible to propagate the function further after intervention.
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.
Definition at line 40 of file abstractformwindowmanager.h.
| QDesignerFormWindowManagerInterface::QDesignerFormWindowManagerInterface | ( | QObject * | parent = 0 |
) |
Constructs an interface with the given parent for the form window manager.
Definition at line 90 of file abstractformwindowmanager.cpp.
| QDesignerFormWindowManagerInterface::~QDesignerFormWindowManagerInterface | ( | ) | [virtual] |
Destroys the interface for the form window manager.
Definition at line 98 of file abstractformwindowmanager.cpp.
| QAction * QDesignerFormWindowManagerInterface::actionCut | ( | ) | const [virtual] |
Allows you to intervene and control 's "cut" action. The function returns the original action.
Definition at line 108 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionCopy | ( | ) | const [virtual] |
Allows you to intervene and control 's "copy" action. The function returns the original action.
Definition at line 119 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionPaste | ( | ) | const [virtual] |
Allows you to intervene and control 's "paste" action. The function returns the original action.
Definition at line 130 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionDelete | ( | ) | const [virtual] |
Allows you to intervene and control 's "delete" action. The function returns the original action.
Definition at line 141 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionSelectAll | ( | ) | const [virtual] |
Allows you to intervene and control 's "select all" action. The function returns the original action.
Definition at line 152 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionLower | ( | ) | const [virtual] |
Allows you to intervene and control the action of lowering a form window in 's workspace. The function returns the original action.
Definition at line 164 of file abstractformwindowmanager.cpp.
Referenced by QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionRaise | ( | ) | const [virtual] |
Allows you to intervene and control the action of raising of a form window in 's workspace. The function returns the original action.
Definition at line 176 of file abstractformwindowmanager.cpp.
Referenced by QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionUndo | ( | ) | const [virtual] |
Allows you to intervene and control 's "undo" action. The function returns the original action.
Definition at line 354 of file abstractformwindowmanager.cpp.
Referenced by QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionRedo | ( | ) | const [virtual] |
Allows you to intervene and control 's "redo" action. The function returns the original action.
Definition at line 365 of file abstractformwindowmanager.cpp.
Referenced by QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionHorizontalLayout | ( | ) | const [virtual] |
Allows you to intervene and control a request for horizontal layout for a form window in 's workspace. The function returns the original action.
Definition at line 188 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionVerticalLayout | ( | ) | const [virtual] |
Allows you to intervene and control a request for vertical layout for a form window in 's workspace. The function returns the original action.
Definition at line 200 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionSplitHorizontal | ( | ) | const [virtual] |
Allows you to intervene and control 's "split horizontal" action. The function returns the original action.
Definition at line 211 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionSplitVertical | ( | ) | const [virtual] |
Allows you to intervene and control 's "split vertical" action. The function returns the original action.
Definition at line 222 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionGridLayout | ( | ) | const [virtual] |
Allows you to intervene and control a request for grid layout for a form window in 's workspace. The function returns the original action.
Definition at line 234 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionBreakLayout | ( | ) | const [virtual] |
Allows you to intervene and control 's "break layout" action. The function returns the original action.
Definition at line 245 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QAction * QDesignerFormWindowManagerInterface::actionAdjustSize | ( | ) | const [virtual] |
Allows you to intervene and control 's "adjust size" action. The function returns the original action.
Definition at line 256 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().
| QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::activeFormWindow | ( | ) | const [virtual] |
Returns the currently active form window in 's workspace.
Definition at line 266 of file abstractformwindowmanager.cpp.
Referenced by qdesigner_internal::GraphicsPropertyEditor::populateCombo(), qdesigner_internal::PropertyEditor::resetProperty(), qdesigner_internal::GraphicsPropertyEditor::showDialog(), QDesignerActions::showFormSettings(), QDesignerActions::showWidgetSpecificHelp(), qdesigner_internal::BrushEditor::textureChooserActivated(), and qdesigner_internal::QDesignerIntegration::updateSelection().
| int QDesignerFormWindowManagerInterface::formWindowCount | ( | ) | const [virtual] |
Returns the number of form windows maintained by 's form window manager.
Definition at line 317 of file abstractformwindowmanager.cpp.
Referenced by QDesignerActions::editWidgetsSlot(), and QDesignerActions::readInForm().
| QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::formWindow | ( | int | index | ) | const [virtual] |
Returns the form window at the given index.
Definition at line 327 of file abstractformwindowmanager.cpp.
Referenced by addFormWindow(), QDesignerActions::editWidgetsSlot(), QDesignerActions::readInForm(), removeFormWindow(), and setActiveFormWindow().
00328 { 00329 Q_UNUSED(index); 00330 return 0; 00331 }
| QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::createFormWindow | ( | QWidget * | parent = 0, |
|
| Qt::WindowFlags | flags = 0 | |||
| ) | [virtual] |
Creates a form window with the given parent and the given window flags.
Definition at line 341 of file abstractformwindowmanager.cpp.
Referenced by QDesignerFormWindow::QDesignerFormWindow().
00342 { 00343 Q_UNUSED(parentWidget); 00344 Q_UNUSED(flags); 00345 return 0; 00346 }
| QDesignerFormEditorInterface * QDesignerFormWindowManagerInterface::core | ( | ) | const [virtual] |
Returns a pointer to 's current QDesignerFormEditorInterface object.
Definition at line 275 of file abstractformwindowmanager.cpp.
| void QDesignerFormWindowManagerInterface::dragItems | ( | const QList< QDesignerDnDItemInterface * > & | item_list | ) | [pure virtual] |
| void QDesignerFormWindowManagerInterface::formWindowAdded | ( | QDesignerFormWindowInterface * | formWindow | ) | [signal] |
This signal is emitted when a new form window is added to the collection of windows that 's form window manager maintains. A pointer to the new formWindow is passed as an argument.
Referenced by qdesigner_internal::FormWindowManager::addFormWindow().
| void QDesignerFormWindowManagerInterface::formWindowRemoved | ( | QDesignerFormWindowInterface * | formWindow | ) | [signal] |
This signal is emitted when a form window is removed from the collection of windows that 's form window manager maintains. A pointer to the removed formWindow is passed as an argument.
Referenced by qdesigner_internal::FormWindowManager::removeFormWindow().
| void QDesignerFormWindowManagerInterface::activeFormWindowChanged | ( | QDesignerFormWindowInterface * | formWindow | ) | [signal] |
This signal is emitted when the contents of the currently active form window in 's workspace changed. A pointer to the currently active formWindow is passed as an argument.
Referenced by qdesigner_internal::FormWindowManager::setActiveFormWindow().
| void QDesignerFormWindowManagerInterface::addFormWindow | ( | QDesignerFormWindowInterface * | formWindow | ) | [virtual, slot] |
Adds the given formWindow to the collection of windows that 's form window manager maintains.
Definition at line 286 of file abstractformwindowmanager.cpp.
References formWindow().
Referenced by qdesigner_internal::FormWindow::FormWindow().
00287 { 00288 Q_UNUSED(formWindow); 00289 }
| void QDesignerFormWindowManagerInterface::removeFormWindow | ( | QDesignerFormWindowInterface * | formWindow | ) | [virtual, slot] |
Removes the given formWindow from the collection of windows that 's form window manager maintains.
Definition at line 297 of file abstractformwindowmanager.cpp.
References formWindow().
Referenced by qdesigner_internal::FormWindow::~FormWindow().
00298 { 00299 Q_UNUSED(formWindow); 00300 }
| void QDesignerFormWindowManagerInterface::setActiveFormWindow | ( | QDesignerFormWindowInterface * | formWindow | ) | [virtual, slot] |
Sets the given formWindow to be the currently active form window in 's workspace.
Definition at line 308 of file abstractformwindowmanager.cpp.
References formWindow().
Referenced by QDesignerWorkbench::activateWorkspaceChildWindow(), qdesigner_internal::FormWindow::dropWidgets(), qdesigner_internal::FormWindow::handleMousePressEvent(), and QDesignerActions::readInForm().
00309 { 00310 Q_UNUSED(formWindow); 00311 }
1.5.1