KexiDBFactory Class Reference
#include <kexidbfactory.h>
Inheritance diagram for KexiDBFactory:

Detailed Description
Kexi Factory (DB widgets + subform).
Definition at line 34 of file kexidbfactory.h.
Public Member Functions | |
| KexiDBFactory (QObject *parent, const char *name, const QStringList &args) | |
| virtual | ~KexiDBFactory () |
| virtual QWidget * | createWidget (const QCString &classname, QWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions) |
| Creates a widget (and if needed a KFormDesigner::Container). | |
| virtual void | createCustomActions (KActionCollection *col) |
| 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 &, QWidget *, KFormDesigner::Container *) |
| virtual bool | clearWidgetContent (const QCString &classname, QWidget *w) |
| virtual QValueList< QCString > | autoSaveProperties (const QCString &classname) |
Protected Slots | |
| void | slotImageBoxIdChanged (long id) |
Protected Member Functions | |
| virtual bool | changeText (const QString &newText) |
| virtual void | resizeEditor (QWidget *editor, QWidget *widget, const QCString &classname) |
| virtual bool | isPropertyVisibleInternal (const QCString &classname, QWidget *w, const QCString &property, bool isTopLevel) |
| virtual bool | propertySetShouldBeReloadedAfterPropertyChange (const QCString &classname, QWidget *w, const QCString &property) |
| Sometimes property sets should be reloaded when a given property value changed. | |
Protected Attributes | |
| KAction * | m_assignAction |
Constructor & Destructor Documentation
|
||||||||||||||||
|
|
Definition at line 348 of file kexidbfactory.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 567 of file kexidbfactory.cpp. |
|
|
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 668 of file kexidbfactory.cpp. References KFormDesigner::WidgetFactory::changeProperty(), KFormDesigner::WidgetFactory::m_container, and KFormDesigner::Form::selectedWidget(). |
|
||||||||||||
|
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 556 of file kexidbfactory.cpp. References KexiDataItemInterface::clear(). |
|
|
Creates custom actions. Reimplement this if you need to add some actions coming from the factory. Reimplemented from KFormDesigner::WidgetFactory. Definition at line 447 of file kexidbfactory.cpp. References m_assignAction. |
|
||||||||||||||||||||
|
Implements KFormDesigner::WidgetFactory. Definition at line 414 of file kexidbfactory.cpp. References KexiDBImageBox::contextMenu(), and m_assignAction. |
|
||||||||||||||||||||||||
|
Creates a widget (and if needed a KFormDesigner::Container).
Implements KFormDesigner::WidgetFactory. Definition at line 353 of file kexidbfactory.cpp. References KFormDesigner::WidgetFactory::DesignViewMode, KFormDesigner::Container::form(), kexipluginsdbg, and slotImageBoxIdChanged(). |
|
||||||||||||||||||||
|
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 580 of file kexidbfactory.cpp. |
|
||||||||||||||||
|
Definition at line 550 of file kexidbfactory.cpp. |
|
||||||||||||||||
|
Sometimes property sets should be reloaded when a given property value changed.
Reimplemented from KFormDesigner::WidgetFactory. Definition at line 657 of file kexidbfactory.cpp. |
|
||||||||||||||||
|
This function is called when the widget is resized, and the editor size needs to be updated. Reimplemented from KFormDesigner::WidgetFactory. Definition at line 686 of file kexidbfactory.cpp. |
|
|
Referenced by createWidget(). |
|
||||||||||||||||
|
Definition at line 455 of file kexidbfactory.cpp. References KFormDesigner::WidgetFactory::changeProperty(), KFormDesigner::WidgetFactory::createEditor(), Kexi::DesignViewMode, KFormDesigner::WidgetFactory::disableFilter(), KFormDesigner::WidgetFactory::editor(), KFormDesigner::WidgetFactory::editRichText(), KFormDesigner::Container::form(), KexiDBSubForm::formName, KexiDBImageBox::insertFromFile(), KFormDesigner::WidgetFactory::m_container, KFormDesigner::WidgetFactory::m_widget, and KexiMainWindow::openObject(). |
Member Data Documentation
|
|
Definition at line 71 of file kexidbfactory.h. Referenced by createCustomActions(), and createMenuActions(). |
The documentation for this class was generated from the following files:
