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

QDesignerFormEditorInterface Class Reference

Inheritance diagram for QDesignerFormEditorInterface:

QObject

List of all members.


Detailed Description

The QDesignerFormEditorInterface class allows you to access Qt Designer's various components.

QtDesigner

's current QDesignerFormEditorInterface object holds information about all 's components: The action editor, the object inspector, the property editor, the widget box, and the extension and form window managers. QDesignerFormEditorInterface contains a collection of functions that provides interfaces to all these components. They are typically used to query (and manipulate) the respective component. For example:

        QDesignerObjectInspectorInterface *objectInspector = 0;
        objectInspector = formEditor->objectInspector();

        QDesignerFormWindowManagerInterface *manager = 0;
        manager = formEditor->formWindowManager();

        objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer to 's current QDesignerFormEditorInterface object (formEditor in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. When implementing a custom widget plugin, you must subclass the QDesignerCustomWidgetInterface to expose your plugin to .

QDesignerFormEditorInterface also provides functions that can set the action editor, property editor, object inspector and widget box. These are only useful if you want to provide your own custom components.

Finally, QDesignerFormEditorInterface provides the topLevel() function that returns 's top-level widget.

See also:
QDesignerCustomWidgetInterface

Definition at line 50 of file abstractformeditor.h.


Public Slots

void deleteLater ()

Signals

void destroyed (QObject *=0)

Public Member Functions

QDesignerActionEditorInterfaceactionEditor () const
bool blockSignals (bool b)
QDesignerBrushManagerInterface * brushManager () const
const QObjectListchildren () const
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const QObject *receiver, const char *member=0)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool event (QEvent *)
virtual bool eventFilter (QObject *, QEvent *)
QExtensionManagerextensionManager () const
template<typename T>
findChild (const QString &name=QString()) const
template<typename T>
QList< T > findChildren (const QRegExp &re) const
template<typename T>
QList< T > findChildren (const QString &name=QString()) const
QDesignerFormWindowManagerInterfaceformWindowManager () const
QDesignerIconCacheInterface * iconCache () const
bool inherits (const char *classname) const
void installEventFilter (QObject *)
bool isWidgetType () const
void killTimer (int id)
QDesignerMetaDataBaseInterfacemetaDataBase () const
void moveToThread (QThread *thread)
QDesignerObjectInspectorInterfaceobjectInspector () const
QString objectName () const
QObjectparent () const
QDesignerPluginManager * pluginManager () const
QVariant property (const char *name) const
QDesignerPropertyEditorInterfacepropertyEditor () const
 QDesignerFormEditorInterface (QObject *parent=0)
void removeEventFilter (QObject *)
QString resourceLocation () const
void setActionEditor (QDesignerActionEditorInterface *actionEditor)
void setObjectInspector (QDesignerObjectInspectorInterface *objectInspector)
void setObjectName (const QString &name)
void setParent (QObject *)
void setPluginManager (QDesignerPluginManager *pluginManager)
bool setProperty (const char *name, const QVariant &value)
void setPropertyEditor (QDesignerPropertyEditorInterface *propertyEditor)
void setTopLevel (QWidget *topLevel)
void setUserData (uint id, QObjectUserData *data)
void setWidgetBox (QDesignerWidgetBoxInterface *widgetBox)
bool signalsBlocked () const
int startTimer (int interval)
QThreadthread () const
QWidgettopLevel () const
QObjectUserData * userData (uint id) const
QDesignerWidgetBoxInterfacewidgetBox () const
QDesignerWidgetDataBaseInterfacewidgetDataBase () const
QDesignerWidgetFactoryInterfacewidgetFactory () const
virtual ~QDesignerFormEditorInterface ()

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 setBrushManager (QDesignerBrushManagerInterface *brushManager)
void setExtensionManager (QExtensionManager *extensionManager)
void setFormManager (QDesignerFormWindowManagerInterface *formWindowManager)
void setIconCache (QDesignerIconCacheInterface *cache)
void setMetaDataBase (QDesignerMetaDataBaseInterface *metaDataBase)
void setWidgetDataBase (QDesignerWidgetDataBaseInterface *widgetDataBase)
void setWidgetFactory (QDesignerWidgetFactoryInterface *widgetFactory)
virtual void timerEvent (QTimerEvent *)

Protected Attributes

QObjectData * d_ptr

Static Protected Attributes

static const QMetaObject staticQtMetaObject

Properties

QString objectName
 the name of this object

Private Member Functions

void operator= (const QDesignerFormEditorInterface &other)
 QDesignerFormEditorInterface (const QDesignerFormEditorInterface &other)

Private Attributes

QPointer
< QDesignerActionEditorInterface
m_actionEditor
QPointer
< QDesignerBrushManagerInterface > 
m_brushManager
QPointer< QExtensionManagerm_extensionManager
QPointer
< QDesignerFormWindowManagerInterface
m_formWindowManager
QPointer
< QDesignerIconCacheInterface > 
m_iconCache
QPointer
< QDesignerMetaDataBaseInterface
m_metaDataBase
QPointer
< QDesignerObjectInspectorInterface
m_objectInspector
QDesignerPluginManager * m_pluginManager
QPointer
< QDesignerPropertyEditorInterface
m_propertyEditor
QPointer< QWidgetm_topLevel
QPointer
< QDesignerWidgetBoxInterface
m_widgetBox
QPointer
< QDesignerWidgetDataBaseInterface
m_widgetDataBase
QPointer
< QDesignerWidgetFactoryInterface
m_widgetFactory

Friends

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=QString(), T dummy=0)
qFindChild (const QObject *obj, const QString &name)
QList< T > qFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
QList< T > qFindChildren (const QObject *obj, const QString &name)
T * qobject_cast (QObject *object)
 QObjectList
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