Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QDesignerFormWindowManagerInterface Class Reference

Inheritance diagram for QDesignerFormWindowManagerInterface:


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.


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:

doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindowmanager.cpp 0

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 56 of file abstractformwindowmanager.h.

Public Slots

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


void activeFormWindowChanged (QDesignerFormWindowInterface *formWindow)
void destroyed (QObject *=0)
void formWindowAdded (QDesignerFormWindowInterface *formWindow)
void formWindowRemoved (QDesignerFormWindowInterface *formWindow)

Public Member Functions

virtual QActionactionAdjustSize () const
virtual QActionactionBreakLayout () const
virtual QActionactionCopy () const
virtual QActionactionCut () const
virtual QActionactionDelete () const
QActionactionFormLayout () const
virtual QActionactionGridLayout () const
virtual QActionactionHorizontalLayout () const
virtual QActionactionLower () const
virtual QActionactionPaste () const
virtual QActionactionRaise () const
virtual QActionactionRedo () const
virtual QActionactionSelectAll () const
QActionactionSimplifyLayout () const
virtual QActionactionSplitHorizontal () const
virtual QActionactionSplitVertical () const
virtual QActionactionUndo () const
virtual QActionactionVerticalLayout () const
activeFormWindow () const
bool blockSignals (bool b)
const QObjectListchildren () const
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
core () const
createFormWindow (QWidget *parentWidget=0, Qt::WindowFlags flags=0)
bool disconnect (const QObject *receiver, const char *member=0)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
virtual void dragItems (const QList< QDesignerDnDItemInterface * > &item_list)=0
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool event (QEvent *)
virtual bool eventFilter (QObject *, QEvent *)
template<typename T>
findChild (const QString &aName=QString()) const
template<typename T>
QList< T > findChildren (const QRegExp &re) const
template<typename T>
QList< T > findChildren (const QString &aName=QString()) const
formWindow (int index) const
virtual int formWindowCount () const
bool inherits (const char *classname) const
void installEventFilter (QObject *)
bool isWidgetType () const
void killTimer (int id)
void moveToThread (QThread *thread)
QString objectName () const
QObjectparent () const
QVariant property (const char *name) const
 QDesignerFormWindowManagerInterface (QObject *parent=0)
void removeEventFilter (QObject *)
void setObjectName (const QString &name)
void setParent (QObject *)
bool setProperty (const char *name, const QVariant &value)
void setUserData (uint id, QObjectUserData *data)
bool signalsBlocked () const
int startTimer (int interval)
QThreadthread () const
QObjectUserData * userData (uint id) const
virtual ~QDesignerFormWindowManagerInterface ()

Static Public Member Functions

static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
static uint registerUserData ()

Protected Member Functions

virtual void childEvent (QChildEvent *)
virtual void connectNotify (const char *signal)
virtual void customEvent (QEvent *)
virtual void disconnectNotify (const char *signal)
int receivers (const char *signal) const
QObjectsender () const
void setActionFormLayout (QAction *action)
void setActionSimplifyLayout (QAction *action)
virtual void timerEvent (QTimerEvent *)

Protected Attributes

QObjectData * d_ptr

Static Protected Attributes

static const QMetaObject staticQtMetaObject


QString objectName
 the name of this object

Private Member Functions

QDesignerFormWindowManagerInterfaceoperator= (const QDesignerFormWindowManagerInterface &other)
 QDesignerFormWindowManagerInterface (const QDesignerFormWindowManagerInterface &other)


class QApplication
class QApplicationPrivate
class QCoreApplication
class QCoreApplicationPrivate
struct QMetaObject
class QThreadData
class QWidget

Related Functions

(Note that these are not member functions.)

qFindChild (const QObject *obj, const QString &name)
qFindChildqFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)()
QList< T > qFindChildren (const QObject *obj, const QString &name)
QList< T > qFindChildrenqFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)()
QList< T > qFindChildrenqFindChildren (const QObject *obj, const QRegExp &regExp)()
T * qobject_cast (QObject *object)
void * qt_find_obj_child (QObject *parent, const char *type, const QString &name)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index