#include <abstractwidgetdatabase.h>
Inheritance diagram for QDesignerWidgetDataBaseInterface:


Definition at line 83 of file abstractwidgetdatabase.h.
Signals | |
| void | changed () |
Public Member Functions | |
| QDesignerWidgetDataBaseInterface (QObject *parent=0) | |
| virtual | ~QDesignerWidgetDataBaseInterface () |
| virtual int | count () const |
| virtual QDesignerWidgetDataBaseItemInterface * | item (int index) const |
| virtual int | indexOf (QDesignerWidgetDataBaseItemInterface *item) const |
| virtual void | insert (int index, QDesignerWidgetDataBaseItemInterface *item) |
| virtual void | append (QDesignerWidgetDataBaseItemInterface *item) |
| virtual int | indexOfObject (QObject *object, bool resolveName=true) const |
| virtual int | indexOfClassName (const QString &className, bool resolveName=true) const |
| virtual QDesignerFormEditorInterface * | core () const |
| bool | isContainer (QObject *object, bool resolveName=true) const |
| bool | isCustom (QObject *object, bool resolveName=true) const |
Protected Attributes | |
| QList< QDesignerWidgetDataBaseItemInterface * > | m_items |
| QDesignerWidgetDataBaseInterface::QDesignerWidgetDataBaseInterface | ( | QObject * | parent = 0 |
) |
Constructs an interface to the widget database with the given parent.
Definition at line 39 of file abstractwidgetdatabase.cpp.
| QDesignerWidgetDataBaseInterface::~QDesignerWidgetDataBaseInterface | ( | ) | [virtual] |
Destroys the interface to the widget database.
Definition at line 47 of file abstractwidgetdatabase.cpp.
References m_items, and qDeleteAll().
00048 { 00049 qDeleteAll(m_items); 00050 }
Here is the call graph for this function:

| int QDesignerWidgetDataBaseInterface::count | ( | ) | const [virtual] |
Definition at line 55 of file abstractwidgetdatabase.cpp.
References QList< T >::count(), and m_items.
Referenced by qdesigner_internal::WidgetDataBase::grabDefaultPropertyValues(), indexOfClassName(), and qdesigner_internal::PromoteToCustomWidgetDialog::PromoteToCustomWidgetDialog().
Here is the call graph for this function:

| QDesignerWidgetDataBaseItemInterface * QDesignerWidgetDataBaseInterface::item | ( | int | index | ) | const [virtual] |
Definition at line 62 of file abstractwidgetdatabase.cpp.
References QList< T >::at(), and m_items.
Referenced by qdesigner_internal::PromoteToCustomWidgetDialog::accept(), append(), qdesigner_internal::QDesignerResource::createDom(), qdesigner_internal::WidgetFactory::createWidget(), indexOf(), indexOfClassName(), insert(), isContainer(), isCustom(), qdesigner_internal::WidgetDataBase::item(), qdesigner_internal::QDesignerTaskMenu::promoteToCustomWidget(), qdesigner_internal::PromoteToCustomWidgetDialog::PromoteToCustomWidgetDialog(), qdesigner_internal::ResetPropertyCommand::redo(), qdesigner_internal::ObjectInspector::setFormWindow(), QDesignerActions::showWidgetSpecificHelp(), and qdesigner_internal::FormWindowManager::slotUpdateActions().
Here is the call graph for this function:

| int QDesignerWidgetDataBaseInterface::indexOf | ( | QDesignerWidgetDataBaseItemInterface * | item | ) | const [virtual] |
Definition at line 69 of file abstractwidgetdatabase.cpp.
References QList< T >::indexOf(), item(), and m_items.
Here is the call graph for this function:

| void QDesignerWidgetDataBaseInterface::insert | ( | int | index, | |
| QDesignerWidgetDataBaseItemInterface * | item | |||
| ) | [virtual] |
Definition at line 76 of file abstractwidgetdatabase.cpp.
References QList< T >::insert(), item(), and m_items.
Here is the call graph for this function:

| void QDesignerWidgetDataBaseInterface::append | ( | QDesignerWidgetDataBaseItemInterface * | item | ) | [virtual] |
Definition at line 83 of file abstractwidgetdatabase.cpp.
References QList< T >::append(), item(), and m_items.
Referenced by qdesigner_internal::QDesignerResource::createCustomWidgets(), qdesigner_internal::WidgetFactory::createWidget(), qdesigner_internal::WidgetDataBase::loadPlugins(), qdesigner_internal::QDesignerTaskMenu::promoteToCustomWidget(), and qdesigner_internal::WidgetDataBase::WidgetDataBase().
Here is the call graph for this function:

| int QDesignerWidgetDataBaseInterface::indexOfObject | ( | QObject * | object, | |
| bool | resolveName = true | |||
| ) | const [virtual] |
Definition at line 110 of file abstractwidgetdatabase.cpp.
References QString::fromUtf8(), indexOfClassName(), and object.
Referenced by qdesigner_internal::QDesignerResource::createDom(), isContainer(), isCustom(), qdesigner_internal::realClassName(), qdesigner_internal::ResetPropertyCommand::redo(), qdesigner_internal::ObjectInspector::setFormWindow(), QDesignerActions::showWidgetSpecificHelp(), and qdesigner_internal::FormWindowManager::slotUpdateActions().
00111 { 00112 if (!object) 00113 return -1; 00114 00115 QString className = QString::fromUtf8(object->metaObject()->className()); 00116 return indexOfClassName(className); 00117 }
Here is the call graph for this function:

| int QDesignerWidgetDataBaseInterface::indexOfClassName | ( | const QString & | className, | |
| bool | resolveName = true | |||
| ) | const [virtual] |
Definition at line 97 of file abstractwidgetdatabase.cpp.
References count(), i, item(), and name.
Referenced by qdesigner_internal::PromoteToCustomWidgetDialog::accept(), qdesigner_internal::WidgetFactory::createWidget(), qdesigner_internal::WidgetDataBase::indexOfObject(), indexOfObject(), qdesigner_internal::QDesignerTaskMenu::promoteToCustomWidget(), and qdesigner_internal::WidgetDataBase::WidgetDataBase().
00098 { 00099 for (int i=0; i<count(); ++i) { 00100 QDesignerWidgetDataBaseItemInterface *entry = item(i); 00101 if (entry->name() == name) 00102 return i; 00103 } 00104 00105 return -1; 00106 }
Here is the call graph for this function:

| QDesignerFormEditorInterface * QDesignerWidgetDataBaseInterface::core | ( | ) | const [virtual] |
| bool QDesignerWidgetDataBaseInterface::isContainer | ( | QObject * | object, | |
| bool | resolveName = true | |||
| ) | const |
Definition at line 121 of file abstractwidgetdatabase.cpp.
References i, indexOfObject(), item(), and object.
Referenced by qdesigner_internal::Layout::breakLayout(), qdesigner_internal::FormWindow::findContainer(), and qdesigner_internal::Layout::setup().
00122 { 00123 if (QDesignerWidgetDataBaseItemInterface *i = item(indexOfObject(object, resolveName))) 00124 return i->isContainer(); 00125 return false; 00126 }
Here is the call graph for this function:

| bool QDesignerWidgetDataBaseInterface::isCustom | ( | QObject * | object, | |
| bool | resolveName = true | |||
| ) | const |
Definition at line 130 of file abstractwidgetdatabase.cpp.
References i, indexOfObject(), item(), and object.
00131 { 00132 if (QDesignerWidgetDataBaseItemInterface *i = item(indexOfObject(object, resolveName))) 00133 return i->isCustom(); 00134 return false; 00135 }
Here is the call graph for this function:

| void QDesignerWidgetDataBaseInterface::changed | ( | ) | [signal] |
This signal is emitted ...
Definition at line 109 of file abstractwidgetdatabase.h.
Referenced by append(), count(), indexOf(), insert(), item(), qdesigner_internal::WidgetDataBase::loadPlugins(), and ~QDesignerWidgetDataBaseInterface().
1.5.1