Eneboo - Documentación para desarrolladores
|
The WidgetDatabase class holds information about widgets. Más...
#include <widgetdatabase.h>
The WidgetDatabase class holds information about widgets.
The WidgetDatabase holds information about widgets like toolTip(), iconSet(), ... It works Id-based, so all access functions take the widget id as parameter. To get the id for a widget (classname), use idFromClassName().
All access functions are static. Having multiple widgetdatabases in one application doesn't make sense anyway and so you don't need more than an instance of the widgetdatabase.
For creating widgets, layouts, etc. see WidgetFactory.
WidgetDatabase::WidgetDatabase | ( | ) |
Creates widget database. Does nothing.
int WidgetDatabase::addCustomWidget | ( | WidgetDatabaseRecord * | r | ) | [static] |
void WidgetDatabase::append | ( | WidgetDatabaseRecord * | r | ) | [static] |
WidgetDatabaseRecord * WidgetDatabase::at | ( | int | index | ) | [static] |
Returns the classname of the widget which is registered as id.
int WidgetDatabase::count | ( | ) | [static] |
Returns the number of elements in the widget database.
void WidgetDatabase::customWidgetClassNameChanged | ( | const QString & | oldName, |
const QString & | newName | ||
) | [static] |
Returns the group the widget registered as id belongs to.
Returns the iconset which represents the class registered as id.
Returns the id for name or -1 if name is unknown.
Returns the include file if the widget which is registered as id.
void WidgetDatabase::insert | ( | int | index, |
WidgetDatabaseRecord * | r | ||
) | [static] |
Returns whether the widget registered as id can have children.
Returns whether the widget registered as id is a form.
bool WidgetDatabase::isWhatsThisLoaded | ( | ) | [static] |
void WidgetDatabase::loadWhatsThis | ( | const QString & | docPath | ) | [static] |
int WidgetDatabase::numWidgetGroups | ( | ) | [static] |
void WidgetDatabase::setupDataBase | ( | int | id | ) | [static] |
Sets up the widget database. If the static widgetdatabase already exists, the functions returns immediately.
void WidgetDatabase::setupPlugins | ( | ) | [static] |
int WidgetDatabase::startCustom | ( | ) | [static] |
Returns the id at which the ids of custom widgets start.
Returns the tooltip text of the widget which is registered as id.
Returns the what's this? text of the widget which is registered as id.