KexiDBForm Class Reference
#include <kexidbform.h>
Inheritance diagram for KexiDBForm:

Detailed Description
A DB-aware form widget, acting as form's toplevel widget.
Definition at line 52 of file kexidbform.h.
Public Slots | |
| void | setAutoTabStops (bool set) |
| void | setDataSource (const QString &ds) |
| Sets the name of the data source for this widget. | |
| void | setDataSourceMimeType (const QCString &ds) |
| virtual void | setReadOnly (bool readOnly) |
| This implementation just disables read only widget. | |
| QSize | sizeInternal () const |
| void | resizeInternal (const QSize &s) |
Signals | |
| void | handleDragMoveEvent (QDragMoveEvent *e) |
| void | handleDropEvent (QDropEvent *e) |
Public Member Functions | |
| KexiDBForm (QWidget *parent, KexiDataAwareObjectInterface *dataAwareObject, const char *name="kexi_dbform") | |
| virtual | ~KexiDBForm () |
| KexiDataAwareObjectInterface * | dataAwareObject () const |
| QString | dataSource () const |
| QCString | dataSourceMimeType () const |
| QVariant | value () |
| no effect | |
| virtual void | setInvalidState (const QString &displayText) |
| virtual void | drawRect (const QRect &r, int type) |
| virtual void | drawRects (const QValueList< QRect > &list, int type) |
| virtual void | initBuffer () |
| virtual void | clearForm () |
| virtual void | highlightWidgets (QWidget *from, QWidget *to) |
| virtual QSize | sizeHint () const |
| bool | autoTabStops () const |
| QPtrList< QWidget > * | orderedFocusWidgets () const |
| QPtrList< QWidget > * | orderedDataAwareWidgets () const |
| void | updateTabStopsOrder (KFormDesigner::Form *form) |
| void | updateTabStopsOrder () |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| bool | preview () const |
| virtual void | setCursor (const QCursor &cursor) |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &, bool) |
| no effect | |
| virtual void | dragMoveEvent (QDragMoveEvent *e) |
| virtual void | dropEvent (QDropEvent *e) |
| void | updateReadOnlyFlags () |
| called from KexiFormScrollView::initDataContents() | |
Protected Attributes | |
| KexiFormDataItemInterface * | editedItem |
| Points to a currently edited data item. | |
| Private * | d |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
| bool | autoTabStops |
| QSize | sizeInternal |
Friends | |
| class | KexiFormScrollView |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 100 of file kexidbform.cpp. References d, editedItem, kexipluginsdbg, KexiDataItemInterface::m_hasFocusableWidget, and setCursor(). |
|
|
Definition at line 117 of file kexidbform.cpp. References d, and kexipluginsdbg. |
Member Function Documentation
|
|
|
|
|
Implements KexiDataItemInterface. Definition at line 621 of file kexidbform.cpp. |
|
|
Clears the form, ie pastes the whole buffer to repaint the Form. Implements KFormDesigner::FormWidget. Definition at line 189 of file kexidbform.cpp. References d, and repaintAll(). |
|
|
Implements KexiDataItemInterface. Definition at line 616 of file kexidbform.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 611 of file kexidbform.cpp. |
|
|
Definition at line 123 of file kexidbform.cpp. References d. Referenced by KexiFormManager::action(), KexiFormPart::slotAssignAction(), and updateReadOnlyFlags(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 69 of file kexidbform.h. References KexiFormDataItemInterface::dataSource(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 70 of file kexidbform.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
Definition at line 631 of file kexidbform.cpp. References handleDragMoveEvent(). |
|
||||||||||||
|
Implements KFormDesigner::FormWidget. Definition at line 137 of file kexidbform.cpp. References drawRects(). |
|
||||||||||||
|
This function draws the rects in the list in the Form, above of all widgets, using double-buffering. type can be 1 (selection rect) or 2 (insert rect, dotted). Implements KFormDesigner::FormWidget. Definition at line 145 of file kexidbform.cpp. References d. Referenced by drawRect(). |
|
|
Definition at line 636 of file kexidbform.cpp. References handleDropEvent(). |
|
||||||||||||
|
fullRowSelection
Definition at line 387 of file kexidbform.cpp. References d, editedItem, kexipluginsdbg, kexipluginswarn, KexiFormDataItemInterface::keyPressed(), KexiDataItemInterface::parentInterface(), preview(), SET_FOCUS_USING_REASON, and UNSET_FOCUS_USING_REASON. |
|
|
Referenced by dragMoveEvent(). |
|
|
Referenced by dropEvent(). |
|
||||||||||||
|
This function highlights two widgets (to is optional), which are sender and receiver, and draws a link between them. Implements KFormDesigner::FormWidget. Definition at line 207 of file kexidbform.cpp. References d. |
|
|
This function inits the buffer used for double-buffering. Called before drawing rect. Implements KFormDesigner::FormWidget. Definition at line 180 of file kexidbform.cpp. References d, and repaintAll(). |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 592 of file kexidbform.cpp. References d. Referenced by updateReadOnlyFlags(). |
|
|
Definition at line 296 of file kexidbform.cpp. References d. |
|
|
Definition at line 291 of file kexidbform.cpp. References d. Referenced by KexiFormView::afterSwitchFrom(). |
|
|
Definition at line 626 of file kexidbform.cpp. References d. Referenced by eventFilter(). |
|
|
Definition at line 121 of file kexidbform.h. |
|
|
Definition at line 286 of file kexidbform.cpp. References d. Referenced by KexiFormView::afterSwitchFrom(). |
|
|
Definition at line 641 of file kexidbform.cpp. References KFormDesigner::FormManager::self(). Referenced by KexiDBForm(). |
|
|
Sets the name of the data source for this widget. Data source usually means here a table or query or field name name. Reimplemented from KexiFormDataItemInterface. Definition at line 111 of file kexidbform.h. References KexiFormDataItemInterface::setDataSource(). |
|
|
Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".
Reimplemented from KexiFormDataItemInterface. Definition at line 112 of file kexidbform.h. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
|
Implements KexiFormDataItemInterface. Definition at line 274 of file kexidbform.cpp. |
|
|
This implementation just disables read only widget.
Implements KexiFormDataItemInterface. Definition at line 600 of file kexidbform.cpp. References d. |
|
||||||||||||
|
no effect
Implements KexiDataItemInterface. Definition at line 129 of file kexidbform.h. |
|
|
Definition at line 268 of file kexidbform.cpp. |
|
|
Definition at line 118 of file kexidbform.h. References size. |
|
|
called from KexiFormScrollView::initDataContents()
Definition at line 375 of file kexidbform.cpp. References d, dataAwareObject(), KexiFormDataItemInterface::dataSource(), isReadOnly(), and KexiFormDataItemInterface::setReadOnly(). |
|
|
Definition at line 365 of file kexidbform.cpp. References d. |
|
|
Definition at line 301 of file kexidbform.cpp. References d, KexiFormDataItemInterface::dataSource(), kexipluginsdbg, and KFormDesigner::Form::tabStopsIterator(). Referenced by KexiFormView::initDataSource(), and KexiFormView::initForm(). |
|
|
no effect
Implements KexiDataItemInterface. Definition at line 73 of file kexidbform.h. |
|
|
Implements KexiDataItemInterface. Definition at line 587 of file kexidbform.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 582 of file kexidbform.cpp. |
|
|
Convenience function: casts this item to a QWidget. Can return 0 if the item is not a QWidget-derived object. Reimplemented from KexiFormDataItemInterface. Definition at line 606 of file kexidbform.cpp. |
Friends And Related Function Documentation
|
|
Definition at line 145 of file kexidbform.h. |
Member Data Documentation
|
|
Definition at line 142 of file kexidbform.h. Referenced by clearForm(), dataAwareObject(), drawRects(), eventFilter(), highlightWidgets(), initBuffer(), isReadOnly(), KexiDBForm(), orderedDataAwareWidgets(), orderedFocusWidgets(), preview(), setAutoTabStops(), setReadOnly(), updateReadOnlyFlags(), updateTabStopsOrder(), and ~KexiDBForm(). |
|
|
Points to a currently edited data item. It is cleared when the focus is moved to other Definition at line 140 of file kexidbform.h. Referenced by eventFilter(), and KexiDBForm(). |
Property Documentation
|
|
Definition at line 60 of file kexidbform.h. Referenced by KexiFormView::loadForm(). |
|
|
Definition at line 58 of file kexidbform.h. Referenced by KexiFormView::initDataSource(), KexiFormManager::setFormDataSource(), KexiFormManager::slotHistoryCommandExecuted(), KexiFormView::updateAutoFieldsDataSource(), and KexiFormView::updateValuesForSubproperties(). |
|
|
Definition at line 59 of file kexidbform.h. Referenced by KexiFormView::initDataSource(), KexiFormManager::setFormDataSource(), KexiFormManager::slotHistoryCommandExecuted(), KexiFormView::updateAutoFieldsDataSource(), and KexiFormView::updateValuesForSubproperties(). |
|
|
Definition at line 62 of file kexidbform.h. |
The documentation for this class was generated from the following files:
