QDesignerComponents Class Reference

#include <qdesigner_components.h>

List of all members.


Detailed Description

The QDesignerComponents class provides a central resource for the various components used in the user interface. QtDesigner.

Definition at line 40 of file qdesigner_components.h.

Static Public Member Functions

static void initializeResources ()
static void initializePlugins (QDesignerFormEditorInterface *core)
static QDesignerFormEditorInterfacecreateFormEditor (QObject *parent)
static QDesignerWidgetBoxInterfacecreateWidgetBox (QDesignerFormEditorInterface *core, QWidget *parent)
static QDesignerPropertyEditorInterfacecreatePropertyEditor (QDesignerFormEditorInterface *core, QWidget *parent)
static QDesignerObjectInspectorInterfacecreateObjectInspector (QDesignerFormEditorInterface *core, QWidget *parent)
static QDesignerActionEditorInterfacecreateActionEditor (QDesignerFormEditorInterface *core, QWidget *parent)
static QObjectcreateTaskMenu (QDesignerFormEditorInterface *core, QObject *parent)
static QWidgetcreateResourceEditor (QDesignerFormEditorInterface *core, QWidget *parent)
static QWidgetcreateSignalSlotEditor (QDesignerFormEditorInterface *core, QWidget *parent)


Member Function Documentation

void QDesignerComponents::initializeResources (  )  [static]

Initializes the resources used by the components.

Definition at line 82 of file qdesigner_components.cpp.

References Q_INIT_RESOURCE.

Referenced by QDesigner::QDesigner().

00083 {
00084     Q_INIT_RESOURCE(formeditor);
00085     Q_INIT_RESOURCE(widgetbox);
00086 }

void QDesignerComponents::initializePlugins ( QDesignerFormEditorInterface core  )  [static]

Initializes the plugins used by the components.

Definition at line 90 of file qdesigner_components.cpp.

References QDesignerFormEditorInterface::widgetDataBase(), and QDesignerFormEditorInterface::widgetFactory().

Referenced by QDesignerWorkbench::initialize().

00091 {
00092     using namespace qdesigner_internal;
00093 
00094     // load the plugins
00095     if (WidgetDataBase *widgetDatabase = qobject_cast<WidgetDataBase*>(core->widgetDataBase())) {
00096         widgetDatabase->loadPlugins();
00097         widgetDatabase->grabDefaultPropertyValues();
00098     }
00099 
00100     if (WidgetFactory *widgetFactory = qobject_cast<WidgetFactory*>(core->widgetFactory())) {
00101         widgetFactory->loadPlugins();
00102     }
00103 }

Here is the call graph for this function:

QDesignerFormEditorInterface * QDesignerComponents::createFormEditor ( QObject parent  )  [static]

Constructs a form editor interface with the given parent.

Definition at line 107 of file qdesigner_components.cpp.

References INIT_PLUGIN_INSTANCE.

Referenced by QDesignerWorkbench::initialize().

00108 {
00109     static bool plugins_initialized = false;
00110 
00111     if (!plugins_initialized) {
00112         INIT_PLUGIN_INSTANCE(SignalSlotEditorPlugin);
00113         INIT_PLUGIN_INSTANCE(BuddyEditorPlugin);
00114         INIT_PLUGIN_INSTANCE(TabOrderEditorPlugin);
00115 
00116         plugins_initialized = true;
00117     }
00118 
00119     return new qdesigner_internal::FormEditor(parent);
00120 }

QDesignerWidgetBoxInterface * QDesignerComponents::createWidgetBox ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new widget box interface with the given parent for the core interface.

Definition at line 131 of file qdesigner_components.cpp.

Referenced by QDesignerWidgetBox::QDesignerWidgetBox().

00132 {
00133     return new qdesigner_internal::WidgetBox(core, parent);
00134 }

QDesignerPropertyEditorInterface * QDesignerComponents::createPropertyEditor ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new property editor interface with the given parent for the core interface.

Definition at line 138 of file qdesigner_components.cpp.

Referenced by QDesignerPropertyEditor::QDesignerPropertyEditor().

00139 {
00140     return new qdesigner_internal::PropertyEditor(core, parent);
00141 }

QDesignerObjectInspectorInterface * QDesignerComponents::createObjectInspector ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new object inspector interface with the given parent for the core interface.

Definition at line 145 of file qdesigner_components.cpp.

Referenced by QDesignerObjectInspector::QDesignerObjectInspector().

00146 {
00147     return new qdesigner_internal::ObjectInspector(core, parent);
00148 }

QDesignerActionEditorInterface * QDesignerComponents::createActionEditor ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new action editor interface with the given parent for the core interface.

Definition at line 152 of file qdesigner_components.cpp.

Referenced by QDesignerActionEditor::QDesignerActionEditor().

00153 {
00154     return new qdesigner_internal::ActionEditor(core, parent);
00155 }

QObject * QDesignerComponents::createTaskMenu ( QDesignerFormEditorInterface core,
QObject parent 
) [static]

Returns a new task menu with the given parent for the core interface.

Definition at line 124 of file qdesigner_components.cpp.

Referenced by QDesignerWorkbench::initialize().

00125 {
00126     return new qdesigner_internal::TaskMenuComponent(core, parent);
00127 }

QWidget * QDesignerComponents::createResourceEditor ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new resource editor with the given parent for the core interface.

Definition at line 159 of file qdesigner_components.cpp.

Referenced by QDesignerResourceEditor::QDesignerResourceEditor().

00160 {
00161     return new qdesigner_internal::ResourceEditor(core, parent);
00162 }

QWidget * QDesignerComponents::createSignalSlotEditor ( QDesignerFormEditorInterface core,
QWidget parent 
) [static]

Returns a new signal-slot editor with the given parent for the core interface.

Definition at line 166 of file qdesigner_components.cpp.

Referenced by QDesignerSignalSlotEditor::QDesignerSignalSlotEditor().

00167 {
00168     return new qdesigner_internal::SignalSlotEditorWindow(core, parent);
00169 }


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