Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos
Referencia de la Clase WidgetDatabase

The WidgetDatabase class holds information about widgets. Más...

#include <widgetdatabase.h>

Diagrama de herencias de WidgetDatabase
Qt

Lista de todos los miembros.

Métodos públicos

 WidgetDatabase ()

Métodos públicos estáticos

static void setupDataBase (int id)
static void setupPlugins ()
static int count ()
static int startCustom ()
static QIconSet iconSet (int id)
static QString className (int id)
static QString group (int id)
static QString toolTip (int id)
static QString whatsThis (int id)
static QString includeFile (int id)
static bool isForm (int id)
static bool isContainer (int id)
static bool isCommon (int id)
static int idFromClassName (const QString &name)
static QString createWidgetName (int id)
static WidgetDatabaseRecordat (int index)
static void insert (int index, WidgetDatabaseRecord *r)
static void append (WidgetDatabaseRecord *r)
static QString widgetGroup (const QString &g)
static QString widgetGroup (int i)
static int numWidgetGroups ()
static bool isGroupVisible (const QString &g)
static bool isGroupEmpty (const QString &grp)
static int addCustomWidget (WidgetDatabaseRecord *r)
static bool isCustomWidget (int id)
static bool isCustomPluginWidget (int id)
static bool isWhatsThisLoaded ()
static void loadWhatsThis (const QString &docPath)
static bool hasWidget (const QString &name)
static void customWidgetClassNameChanged (const QString &oldName, const QString &newName)

Descripción detallada

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.


Documentación del constructor y destructor

WidgetDatabase::WidgetDatabase ( )

Creates widget database. Does nothing.


Documentación de las funciones miembro

int WidgetDatabase::addCustomWidget ( WidgetDatabaseRecord r) [static]
void WidgetDatabase::append ( WidgetDatabaseRecord r) [static]
WidgetDatabaseRecord * WidgetDatabase::at ( int  index) [static]
QString WidgetDatabase::className ( int  id) [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.

QString WidgetDatabase::createWidgetName ( int  id) [static]
void WidgetDatabase::customWidgetClassNameChanged ( const QString oldName,
const QString newName 
) [static]
QString WidgetDatabase::group ( int  id) [static]

Returns the group the widget registered as id belongs to.

bool WidgetDatabase::hasWidget ( const QString name) [static]
QIconSet WidgetDatabase::iconSet ( int  id) [static]

Returns the iconset which represents the class registered as id.

int WidgetDatabase::idFromClassName ( const QString name) [static]

Returns the id for name or -1 if name is unknown.

QString WidgetDatabase::includeFile ( int  id) [static]

Returns the include file if the widget which is registered as id.

void WidgetDatabase::insert ( int  index,
WidgetDatabaseRecord r 
) [static]
bool WidgetDatabase::isCommon ( int  id) [static]
bool WidgetDatabase::isContainer ( int  id) [static]

Returns whether the widget registered as id can have children.

bool WidgetDatabase::isCustomPluginWidget ( int  id) [static]
bool WidgetDatabase::isCustomWidget ( int  id) [static]
bool WidgetDatabase::isForm ( int  id) [static]

Returns whether the widget registered as id is a form.

bool WidgetDatabase::isGroupEmpty ( const QString grp) [static]
bool WidgetDatabase::isGroupVisible ( const QString g) [static]
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.

QString WidgetDatabase::toolTip ( int  id) [static]

Returns the tooltip text of the widget which is registered as id.

QString WidgetDatabase::whatsThis ( int  id) [static]

Returns the what's this? text of the widget which is registered as id.

QString WidgetDatabase::widgetGroup ( const QString g) [static]
QString WidgetDatabase::widgetGroup ( int  i) [static]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'