kexi
KFormDesigner::WidgetLibrary Class Reference
#include <widgetlibrary.h>
Detailed Description
This class searches for factories and provides KActions for widget creation.Every widget can be located using this library. You call WidgetLibrary functions instead of calling directly factories. See WidgetFactory for a description of the functions.
Definition at line 56 of file widgetlibrary.h.
Signals | |
void | prepareInsert (const QCString &c) |
Public Member Functions | |
WidgetLibrary (QObject *parent=0, const QStringList &supportedFactoryGroups=QStringList()) | |
~WidgetLibrary () | |
ActionList | addCreateWidgetActions (KActionCollection *parent, QObject *receiver, const char *slot) |
void | addCustomWidgetActions (KActionCollection *parent) |
QString | createXML () |
QWidget * | createWidget (const QCString &classname, QWidget *parent, const char *name, Container *c, int options=WidgetFactory::DefaultOptions) |
bool | createMenuActions (const QCString &c, QWidget *w, QPopupMenu *menu, KFormDesigner::Container *container) |
WidgetFactory::CreateWidgetOptions | showOrientationSelectionPopup (const QCString &classname, QWidget *parent, const QPoint &pos) |
QString | internalProperty (const QCString &classname, const QCString &property) |
QString | displayName (const QCString &classname) |
QString | namePrefix (const QCString &classname) |
QString | textForWidgetName (const QCString &name, const QCString &className) |
QCString | classNameForAlternate (const QCString &classname) |
QString | iconName (const QCString &classname) |
QString | includeFileName (const QCString &classname) |
QString | savingName (const QCString &classname) |
bool | startEditing (const QCString &classname, QWidget *w, Container *container) |
bool | previewWidget (const QCString &classname, QWidget *widget, Container *container) |
bool | clearWidgetContent (const QCString &classname, QWidget *w) |
bool | saveSpecialProperty (const QCString &classname, const QString &name, const QVariant &value, QWidget *w, QDomElement &parentNode, QDomDocument &parent) |
bool | readSpecialProperty (const QCString &classname, QDomElement &node, QWidget *w, ObjectTreeItem *item) |
bool | isPropertyVisible (const QCString &classname, QWidget *w, const QCString &property, bool multiple=false, bool isTopLevel=false) |
QValueList< QCString > | autoSaveProperties (const QCString &classname) |
WidgetInfo * | widgetInfoForClassName (const char *classname) |
WidgetFactory * | factoryForClassName (const char *className) |
WidgetFactory * | factory (const char *factoryName) const |
bool | advancedPropertiesVisible () const |
void | setAdvancedPropertiesVisible (bool set) |
QString | propertyDescForName (WidgetInfo *winfo, const QCString &propertyName) |
QString | propertyDescForValue (WidgetInfo *winfo, const QCString &name) |
void | setPropertyOptions (WidgetPropertySet &list, const WidgetInfo &winfo, QWidget *w) |
Protected Member Functions | |
void | loadFactoryWidgets (WidgetFactory *f) |
void | lookupFactories () |
void | loadFactories () |
Protected Attributes | |
WidgetLibraryPrivate * | d |
Constructor & Destructor Documentation
|
Constructs WidgetLibrary object. In supportedFactoryGroups you can provide factory group list to be supported. Factory groups are defined by "X-KFormDesigner-FactoryGroup" field in every factory serviece's .desktop file. By default (when supportedFactoryGroups is empty) only factories having empty "X-KFormDesigner-FactoryGroup" field will be loaded. Factory group names are case-insensitive. Definition at line 95 of file widgetlibrary.cpp. |
Member Function Documentation
|
creates actions for widget creating
Definition at line 304 of file widgetlibrary.cpp. |
|
Definition at line 535 of file widgetlibrary.cpp. |
|
Checks if the classname is an alternate classname, and returns the good classname. If classname is not alternate, classname is returned. Definition at line 462 of file widgetlibrary.cpp. |
|
searches the right factory and creates a widget.
Definition at line 327 of file widgetlibrary.cpp. |
|
creates the XML for widget actions
Definition at line 258 of file widgetlibrary.cpp. |
|
Loads widget factories found in lookupFactories(). This is called once. Definition at line 216 of file widgetlibrary.cpp. |
|
Adds a factory to the library, creates actions for widgets in the added factory. This function is not called directly but by the factory locater. Definition at line 113 of file widgetlibrary.cpp. |
|
Lookups widget factories list (note that this function get called once in ctor).
Definition at line 181 of file widgetlibrary.cpp. |
|
Definition at line 602 of file widgetlibrary.cpp. |
|
Definition at line 620 of file widgetlibrary.cpp. |
|
Sets advanced properties to be visible or not. Definition at line 530 of file widgetlibrary.cpp. |
|
Used by WidgetPropertySet::setWidget() after creating properties. Definition at line 638 of file widgetlibrary.cpp. |
|
Shows orientation selection popup.
Definition at line 668 of file widgetlibrary.cpp. |
The documentation for this class was generated from the following files: