StdWidgetFactory Class Reference
#include <stdwidgetfactory.h>
Inheritance diagram for StdWidgetFactory:

Detailed Description
Factory for all basic widgets, including Spring (not containers).
Definition at line 53 of file stdwidgetfactory.h.
Public Slots | |
| void | editText () |
| void | editListContents () |
Public Member Functions | |
| StdWidgetFactory (QObject *parent, const char *name, const QStringList &args) | |
| ~StdWidgetFactory () | |
| virtual QWidget * | createWidget (const QCString &c, QWidget *p, const char *n, KFormDesigner::Container *container, int options=DefaultOptions) |
| Creates a widget (and if needed a KFormDesigner::Container). | |
| virtual bool | createMenuActions (const QCString &classname, QWidget *w, QPopupMenu *menu, KFormDesigner::Container *container) |
| virtual bool | startEditing (const QCString &classname, QWidget *w, KFormDesigner::Container *container) |
| virtual bool | previewWidget (const QCString &classname, QWidget *widget, KFormDesigner::Container *container) |
| virtual bool | clearWidgetContent (const QCString &classname, QWidget *w) |
| virtual bool | saveSpecialProperty (const QCString &classname, const QString &name, const QVariant &value, QWidget *w, QDomElement &parentNode, QDomDocument &parent) |
| virtual bool | readSpecialProperty (const QCString &classname, QDomElement &node, QWidget *w, KFormDesigner::ObjectTreeItem *item) |
| virtual QValueList< QCString > | autoSaveProperties (const QCString &classname) |
| virtual void | setPropertyOptions (KFormDesigner::WidgetPropertySet &buf, const KFormDesigner::WidgetInfo &info, QWidget *w) |
Protected Member Functions | |
| virtual bool | isPropertyVisibleInternal (const QCString &classname, QWidget *w, const QCString &property, bool isTopLevel) |
| virtual bool | changeText (const QString &newText) |
| virtual void | resizeEditor (QWidget *editor, QWidget *widget, const QCString &classname) |
| void | saveListItem (QListViewItem *item, QDomNode &parentNode, QDomDocument &domDoc) |
| void | readListItem (QDomElement &node, QListViewItem *parent, KListView *listview) |
Constructor & Destructor Documentation
|
||||||||||||||||
|
|
Definition at line 376 of file stdwidgetfactory.cpp. |
Member Function Documentation
|
|
You need to return here a list of the properties that should automatically be saved for a widget belonging to classname, and your custom properties (eg "text" for label or button, "contents" for combobox...). Implements KFormDesigner::WidgetFactory. Definition at line 910 of file stdwidgetfactory.cpp. |
|
|
Default implementation changes "text" property. You have to reimplement this function for editing inside the Form to work if your widget's property you want to change isn't named "text". This slot is called when the line edit text changes, and you have to make it really change the good property of the widget using changeProperty() (text, or title, etc.). Reimplemented from KFormDesigner::WidgetFactory. Definition at line 599 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetFactory::changeProperty(), and KFormDesigner::WidgetFactory::m_container. |
|
||||||||||||
|
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 581 of file stdwidgetfactory.cpp. |
|
||||||||||||||||||||
|
This function can be used to add custom items in widget w context menu menu. Implements KFormDesigner::WidgetFactory. Definition at line 470 of file stdwidgetfactory.cpp. References editListContents(), and editText(). |
|
||||||||||||||||||||||||
|
Creates a widget (and if needed a KFormDesigner::Container).
Implements KFormDesigner::WidgetFactory. Definition at line 381 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetFactory::DesignViewMode, and KFormDesigner::Container::form(). |
|
|
Definition at line 963 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetFactory::editListView(), and KFormDesigner::WidgetFactory::widget(). Referenced by createMenuActions(). |
|
|
Definition at line 943 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetFactory::changeProperty(), KFormDesigner::WidgetFactory::editRichText(), KFormDesigner::WidgetFactory::m_container, and KFormDesigner::WidgetFactory::widget(). Referenced by createMenuActions(), and startEditing(). |
|
||||||||||||||||||||
|
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 844 of file stdwidgetfactory.cpp. References Spring::isPropertyVisible(), and KFormDesigner::WidgetFactory::m_showAdvancedProperties. |
|
||||||||||||||||
|
Definition at line 460 of file stdwidgetfactory.cpp. |
|
||||||||||||||||
|
Definition at line 801 of file stdwidgetfactory.cpp. References KFormDesigner::FormIO::readPropertyValue(). Referenced by readSpecialProperty(). |
|
||||||||||||||||||||
|
Definition at line 742 of file stdwidgetfactory.cpp. References readListItem(), and KFormDesigner::FormIO::readPropertyValue(). |
|
||||||||||||||||
|
This function is called when the widget is resized, and the editor size needs to be updated. Reimplemented from KFormDesigner::WidgetFactory. Definition at line 640 of file stdwidgetfactory.cpp. |
|
||||||||||||||||
|
Definition at line 723 of file stdwidgetfactory.cpp. References KFormDesigner::FormIO::savePropertyElement(). Referenced by saveSpecialProperty(). |
|
||||||||||||||||||||||||||||
|
This function is called when FormIO finds a property, at save time, that it cannot handle (ie not a normal property). This way you can save special properties, for example the contents of a listbox.
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 670 of file stdwidgetfactory.cpp. References saveListItem(), and KFormDesigner::FormIO::savePropertyElement(). |
|
||||||||||||||||
|
Definition at line 970 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetPropertySet::contains(). |
|
||||||||||||||||
|
Definition at line 488 of file stdwidgetfactory.cpp. References KFormDesigner::WidgetFactory::createEditor(), KFormDesigner::WidgetFactory::disableFilter(), KFormDesigner::WidgetFactory::editList(), editText(), and KFormDesigner::WidgetFactory::setWidget(). |
The documentation for this class was generated from the following files:
