#include <kexidbform.h>
|
|
void | handleDragMoveEvent (TQDragMoveEvent *e) |
|
void | handleDropEvent (TQDropEvent *e) |
|
| | KexiDBForm (TQWidget *parent, KexiDataAwareObjectInterface *dataAwareObject, const char *name="kexi_dbform") |
| KexiDataAwareObjectInterface * | dataAwareObject () const |
| TQString | dataSource () const |
| TQCString | dataSourceMimeType () const |
| TQVariant | value () |
| virtual void | setInvalidState (const TQString &displayText) |
| virtual void | drawRect (const TQRect &r, int type) |
| virtual void | drawRects (const TQValueList< TQRect > &list, int type) |
| virtual void | initBuffer () |
| virtual void | clearForm () |
| virtual void | highlightWidgets (TQWidget *from, TQWidget *to) |
| virtual TQSize | sizeHint () const |
| bool | autoTabStops () const |
| TQPtrList< TQWidget > * | orderedFocusWidgets () const |
| TQPtrList< TQWidget > * | orderedDataAwareWidgets () const |
| void | updateTabStopsOrder (KFormDesigner::Form *form) |
| void | updateTabStopsOrder () |
| virtual bool | eventFilter (TQObject *watched, TQEvent *e) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual TQWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| bool | preview () const |
| virtual void | setCursor (const TQCursor &cursor) |
| TQString | dataSource () const |
| void | setDataSource (const TQString &ds) |
| TQCString | dataSourceMimeType () const |
| void | setDataSourceMimeType (const TQCString &ds) |
| virtual void | setDisplayDefaultValue (TQWidget *widget, bool displayDefaultValue) |
| virtual bool | hasDisplayedDefaultValue () const |
| virtual void | setReadOnly (bool readOnly)=0 |
| virtual KexiDB::Field * | field () const |
| virtual KexiDB::QueryColumnInfo * | columnInfo () const |
| virtual void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual void | setVisibleColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual KexiDB::QueryColumnInfo * | visibleColumnInfo () const |
| virtual void | hideWidget () |
| virtual void | showWidget () |
| virtual void | undoChanges () |
| void | cancelEditor () |
| virtual bool | keyPressed (TQKeyEvent *ke) |
| void | setValue (const TQVariant &value, const TQVariant &add=TQVariant(), bool removeOld=false, const TQVariant *visibleValue=0) |
| virtual void | installListener (KexiDataItemChangesListener *listener) |
| virtual bool | valueIsValid () |
| virtual TQVariant | visibleValue () |
| virtual bool | valueChanged () |
| virtual void | moveCursorToEnd () |
| virtual void | moveCursorToStart () |
| virtual void | selectAll () |
| bool | hasFocusableWidget () const |
| virtual void | showFocus (const TQRect &r, bool readOnly) |
| virtual void | hideFocus () |
| virtual void | clickedOnContents () |
| bool | acceptEditorAfterDeleteContents () const |
| virtual void | setFocus () |
| bool | cursorAtNewRow () |
| void | setParentDataItemInterface (KexiDataItemInterface *parentDataItemInterface) |
| KexiDataItemInterface * | parentInterface () const |
| virtual void | handleAction (const TQString &actionName) |
A DB-aware form widget, acting as form's toplevel widget.
Definition at line 40 of file kexidbform.h.
◆ KexiDBForm()
◆ ~KexiDBForm()
| KexiDBForm::~KexiDBForm |
( |
| ) |
|
|
virtual |
◆ autoTabStops()
| bool KexiDBForm::autoTabStops |
( |
| ) |
const |
◆ clear()
| void KexiDBForm::clear |
( |
| ) |
|
|
virtual |
◆ clearForm()
| void KexiDBForm::clearForm |
( |
| ) |
|
|
virtual |
◆ cursorAtEnd()
| bool KexiDBForm::cursorAtEnd |
( |
| ) |
|
|
virtual |
- Returns
- true if the item widget's cursor (whatever that means, eg. line edit cursor) is at the end of editor's contents. This can inform table/form view that after pressing "right arrow" key should stop editing and move to a field on the right hand.
Implements KexiDataItemInterface.
Definition at line 658 of file kexidbform.cpp.
◆ cursorAtStart()
| bool KexiDBForm::cursorAtStart |
( |
| ) |
|
|
virtual |
- Returns
- true if the item widget's cursor (whatever that means, eg. line edit cursor) is at the beginning of editor's contents. This can inform table/form view that after pressing "left arrow" key should stop editing and move to a field on the left hand.
Implements KexiDataItemInterface.
Definition at line 653 of file kexidbform.cpp.
◆ dataAwareObject()
◆ dataSource()
| TQString KexiDBForm::dataSource |
( |
| ) |
const |
|
inline |
◆ dataSourceMimeType()
| TQCString KexiDBForm::dataSourceMimeType |
( |
| ) |
const |
|
inline |
◆ dragMoveEvent()
| void KexiDBForm::dragMoveEvent |
( |
TQDragMoveEvent * | e | ) |
|
|
protectedvirtual |
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
Definition at line 673 of file kexidbform.cpp.
◆ drawRect()
| void KexiDBForm::drawRect |
( |
const TQRect & | r, |
|
|
int | type ) |
|
virtual |
◆ drawRects()
| void KexiDBForm::drawRects |
( |
const TQValueList< TQRect > & | list, |
|
|
int | type ) |
|
virtual |
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 148 of file kexidbform.cpp.
◆ dropEvent()
| void KexiDBForm::dropEvent |
( |
TQDropEvent * | e | ) |
|
|
protectedvirtual |
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
Definition at line 679 of file kexidbform.cpp.
◆ eventFilter()
| bool KexiDBForm::eventFilter |
( |
TQObject * | watched, |
|
|
TQEvent * | e ) |
|
virtual |
fullRowSelection
- Todo
- remove hardcoded shortcuts: can be reconfigured...
Definition at line 390 of file kexidbform.cpp.
◆ highlightWidgets()
| void KexiDBForm::highlightWidgets |
( |
TQWidget * | from, |
|
|
TQWidget * | to ) |
|
virtual |
◆ initBuffer()
| void KexiDBForm::initBuffer |
( |
| ) |
|
|
virtual |
◆ isReadOnly()
| bool KexiDBForm::isReadOnly |
( |
| ) |
const |
|
virtual |
- Returns
- 'readOnly' flag for this item. The flag is usually taken from the item's widget, e.g. KLineEdit::isReadOnly(). By default, always returns false.
- Todo
- ?
Reimplemented from KexiDataItemInterface.
Definition at line 634 of file kexidbform.cpp.
◆ orderedDataAwareWidgets()
| TQPtrList< TQWidget > * KexiDBForm::orderedDataAwareWidgets |
( |
| ) |
const |
◆ orderedFocusWidgets()
| TQPtrList< TQWidget > * KexiDBForm::orderedFocusWidgets |
( |
| ) |
const |
◆ preview()
| bool KexiDBForm::preview |
( |
| ) |
const |
◆ resizeInternal
| void KexiDBForm::resizeInternal |
( |
const TQSize & | s | ) |
|
|
inlineslot |
◆ setAutoTabStops
| void KexiDBForm::setAutoTabStops |
( |
bool | set | ) |
|
|
slot |
◆ setCursor()
| void KexiDBForm::setCursor |
( |
const TQCursor & | cursor | ) |
|
|
virtual |
◆ setDataSource
| void KexiDBForm::setDataSource |
( |
const TQString & | ds | ) |
|
|
inlineslot |
◆ setDataSourceMimeType
| void KexiDBForm::setDataSourceMimeType |
( |
const TQCString & | ds | ) |
|
|
inlineslot |
◆ setInvalidState()
| void KexiDBForm::setInvalidState |
( |
const TQString & | displayText | ) |
|
|
virtual |
Sets 'invalid' state, e.g. a text editor widget should display text displayText and become read only to prevent entering data, because updating at the database backend is not available. displayText is usually set to something i18n'd like "#NAME?". Note: that even widgets that usualy do not display texts (e.g. pixmaps) should display displayText too.
- Todo
- draw "invalid data source" text on the surface?
Implements KexiFormDataItemInterface.
Definition at line 277 of file kexidbform.cpp.
◆ setReadOnly
| void KexiDBForm::setReadOnly |
( |
bool | readOnly | ) |
|
|
virtualslot |
This implementation just disables read only widget.
Definition at line 642 of file kexidbform.cpp.
◆ setValueInternal()
| virtual void KexiDBForm::setValueInternal |
( |
const TQVariant & | , |
|
|
bool | ) |
|
inlineprotectedvirtual |
◆ sizeHint()
| TQSize KexiDBForm::sizeHint |
( |
| ) |
const |
|
virtual |
◆ sizeInternal
| TQSize KexiDBForm::sizeInternal |
( |
| ) |
const |
|
inlineslot |
◆ updateReadOnlyFlags()
| void KexiDBForm::updateReadOnlyFlags |
( |
| ) |
|
|
protected |
◆ updateTabStopsOrder() [1/2]
| void KexiDBForm::updateTabStopsOrder |
( |
| ) |
|
◆ updateTabStopsOrder() [2/2]
- Todo
- d->indicesForDataAwareWidgets SHOULDNT BE UPDATED HERE BECAUSE THERE CAN BE ALSO NON-TABSTOP DATA WIDGETS!
Definition at line 304 of file kexidbform.cpp.
◆ value()
| TQVariant KexiDBForm::value |
( |
| ) |
|
|
inlinevirtual |
◆ valueIsEmpty()
| bool KexiDBForm::valueIsEmpty |
( |
| ) |
|
|
virtual |
◆ valueIsNull()
| bool KexiDBForm::valueIsNull |
( |
| ) |
|
|
virtual |
- Returns
- true if editor's value is null (not empty) Used for checking if a given constraint within table or form is met.
Implements KexiDataItemInterface.
Definition at line 624 of file kexidbform.cpp.
◆ widget()
| TQWidget * KexiDBForm::widget |
( |
| ) |
|
|
virtual |
◆ KexiFormScrollView
◆ editedItem
Points to a currently edited data item. It is cleared when the focus is moved to other
Definition at line 132 of file kexidbform.h.
The documentation for this class was generated from the following files:
|