QDesignerFormWindowManagerInterface Class Reference

#include <abstractformwindowmanager.h>

Inheritance diagram for QDesignerFormWindowManagerInterface:

Inheritance graph
[legend]
Collaboration diagram for QDesignerFormWindowManagerInterface:

Collaboration graph
[legend]
List of all members.

Detailed Description

The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer's form editing actions.

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.

See also:
QDesignerFormEditorInterface, QDesignerFormWindowInterface

Definition at line 40 of file abstractformwindowmanager.h.

Public Slots

virtual void addFormWindow (QDesignerFormWindowInterface *formWindow)
virtual void removeFormWindow (QDesignerFormWindowInterface *formWindow)
virtual void setActiveFormWindow (QDesignerFormWindowInterface *formWindow)

Signals

void formWindowAdded (QDesignerFormWindowInterface *formWindow)
void formWindowRemoved (QDesignerFormWindowInterface *formWindow)
void activeFormWindowChanged (QDesignerFormWindowInterface *formWindow)

Public Member Functions

 QDesignerFormWindowManagerInterface (QObject *parent=0)
virtual ~QDesignerFormWindowManagerInterface ()
virtual QActionactionCut () const
virtual QActionactionCopy () const
virtual QActionactionPaste () const
virtual QActionactionDelete () const
virtual QActionactionSelectAll () const
virtual QActionactionLower () const
virtual QActionactionRaise () const
virtual QActionactionUndo () const
virtual QActionactionRedo () const
virtual QActionactionHorizontalLayout () const
virtual QActionactionVerticalLayout () const
virtual QActionactionSplitHorizontal () const
virtual QActionactionSplitVertical () const
virtual QActionactionGridLayout () const
virtual QActionactionBreakLayout () const
virtual QActionactionAdjustSize () const
virtual QDesignerFormWindowInterfaceactiveFormWindow () const
virtual int formWindowCount () const
virtual QDesignerFormWindowInterfaceformWindow (int index) const
virtual QDesignerFormWindowInterfacecreateFormWindow (QWidget *parentWidget=0, Qt::WindowFlags flags=0)
virtual QDesignerFormEditorInterfacecore () const
virtual void dragItems (const QList< QDesignerDnDItemInterface * > &item_list)=0


Constructor & Destructor Documentation

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.

00091     : QObject(parent)
00092 {
00093 }

QDesignerFormWindowManagerInterface::~QDesignerFormWindowManagerInterface (  )  [virtual]

Destroys the interface for the form window manager.

Definition at line 98 of file abstractformwindowmanager.cpp.

00099 {
00100 }


Member Function Documentation

QAction * QDesignerFormWindowManagerInterface::actionCut (  )  const [virtual]

Allows you to intervene and control 's "cut" action. The function returns the original action.

See also:
QAction

Definition at line 108 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00109 {
00110     return 0;
00111 }

QAction * QDesignerFormWindowManagerInterface::actionCopy (  )  const [virtual]

Allows you to intervene and control 's "copy" action. The function returns the original action.

See also:
QAction

Definition at line 119 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00120 {
00121     return 0;
00122 }

QAction * QDesignerFormWindowManagerInterface::actionPaste (  )  const [virtual]

Allows you to intervene and control 's "paste" action. The function returns the original action.

See also:
QAction

Definition at line 130 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00131 {
00132     return 0;
00133 }

QAction * QDesignerFormWindowManagerInterface::actionDelete (  )  const [virtual]

Allows you to intervene and control 's "delete" action. The function returns the original action.

See also:
QAction

Definition at line 141 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00142 {
00143     return 0;
00144 }

QAction * QDesignerFormWindowManagerInterface::actionSelectAll (  )  const [virtual]

Allows you to intervene and control 's "select all" action. The function returns the original action.

See also:
QAction

Definition at line 152 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00153 {
00154     return 0;
00155 }

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.

See also:
QAction

Definition at line 164 of file abstractformwindowmanager.cpp.

Referenced by QDesignerActions::QDesignerActions().

00165 {
00166     return 0;
00167 }

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.

See also:
QAction

Definition at line 176 of file abstractformwindowmanager.cpp.

Referenced by QDesignerActions::QDesignerActions().

00177 {
00178     return 0;
00179 }

QAction * QDesignerFormWindowManagerInterface::actionUndo (  )  const [virtual]

Allows you to intervene and control 's "undo" action. The function returns the original action.

See also:
QAction

Definition at line 354 of file abstractformwindowmanager.cpp.

Referenced by QDesignerActions::QDesignerActions().

00355 {
00356     return 0;
00357 }

QAction * QDesignerFormWindowManagerInterface::actionRedo (  )  const [virtual]

Allows you to intervene and control 's "redo" action. The function returns the original action.

See also:
QAction

Definition at line 365 of file abstractformwindowmanager.cpp.

Referenced by QDesignerActions::QDesignerActions().

00366 {
00367     return 0;
00368 }

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.

See also:
QAction

Definition at line 188 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00189 {
00190     return 0;
00191 }

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.

See also:
QAction

Definition at line 200 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00201 {
00202     return 0;
00203 }

QAction * QDesignerFormWindowManagerInterface::actionSplitHorizontal (  )  const [virtual]

Allows you to intervene and control 's "split horizontal" action. The function returns the original action.

See also:
QAction

Definition at line 211 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00212 {
00213     return 0;
00214 }

QAction * QDesignerFormWindowManagerInterface::actionSplitVertical (  )  const [virtual]

Allows you to intervene and control 's "split vertical" action. The function returns the original action.

See also:
QAction

Definition at line 222 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00223 {
00224     return 0;
00225 }

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.

See also:
QAction

Definition at line 234 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00235 {
00236     return 0;
00237 }

QAction * QDesignerFormWindowManagerInterface::actionBreakLayout (  )  const [virtual]

Allows you to intervene and control 's "break layout" action. The function returns the original action.

See also:
QAction

Definition at line 245 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00246 {
00247     return 0;
00248 }

QAction * QDesignerFormWindowManagerInterface::actionAdjustSize (  )  const [virtual]

Allows you to intervene and control 's "adjust size" action. The function returns the original action.

See also:
QAction

Definition at line 256 of file abstractformwindowmanager.cpp.

Referenced by qdesigner_internal::FormWindow::createPopupMenu(), and QDesignerActions::QDesignerActions().

00257 {
00258     return 0;
00259 }

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::activeFormWindow (  )  const [virtual]

Returns the currently active form window in 's workspace.

See also:
setActiveFormWindow(), removeFormWindow()

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().

00267 {
00268     return 0;
00269 }

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().

00318 {
00319     return 0;
00320 }

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::formWindow ( int  index  )  const [virtual]

Returns the form window at the given index.

See also:
setActiveFormWindow(), removeFormWindow()

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.

See also:
addFormWindow()

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.

00276 {
00277     return 0;
00278 }

void QDesignerFormWindowManagerInterface::dragItems ( const QList< QDesignerDnDItemInterface * > &  item_list  )  [pure virtual]

Referenced by qdesigner_internal::FormWindow::handleMouseMoveEvent(), and qdesigner_internal::WidgetBox::handleMousePress().

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.

See also:
addFormWindow(), setActiveFormWindow()

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.

See also:
removeFormWindow()

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.

See also:
activeFormWindow()

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.

See also:
formWindowAdded()

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.

See also:
formWindow(), formWindowRemoved()

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.

See also:
activeFormWindow(), activeFormWindowChanged()

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 }


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 17:15:44 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1