#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()
| virtual void KexiDBForm::clear |
( |
| ) |
|
|
virtual |
◆ clearForm()
| void KexiDBForm::clearForm |
( |
| ) |
|
|
virtual |
◆ cursorAtEnd()
| virtual 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.
◆ cursorAtStart()
| virtual 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.
◆ dataAwareObject()
◆ dataSource()
| TQString KexiDBForm::dataSource |
( |
| ) |
const |
|
inline |
◆ dataSourceMimeType()
| TQCString KexiDBForm::dataSourceMimeType |
( |
| ) |
const |
|
inline |
◆ dragMoveEvent()
| virtual void KexiDBForm::dragMoveEvent |
( |
TQDragMoveEvent * |
e | ) |
|
|
protectedvirtual |
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
◆ 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()
| virtual void KexiDBForm::dropEvent |
( |
TQDropEvent * |
e | ) |
|
|
protectedvirtual |
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
◆ highlightWidgets()
| void KexiDBForm::highlightWidgets |
( |
TQWidget * |
from, |
|
|
TQWidget * |
to |
|
) |
| |
|
virtual |
◆ initBuffer()
| void KexiDBForm::initBuffer |
( |
| ) |
|
|
virtual |
◆ isReadOnly()
| virtual 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.
Reimplemented from KexiDataItemInterface.
◆ orderedDataAwareWidgets()
| TQPtrList< TQWidget > * KexiDBForm::orderedDataAwareWidgets |
( |
| ) |
const |
◆ orderedFocusWidgets()
| TQPtrList< TQWidget > * KexiDBForm::orderedFocusWidgets |
( |
| ) |
const |
◆ resizeInternal
| void KexiDBForm::resizeInternal |
( |
const TQSize & |
s | ) |
|
|
inlineslot |
◆ setAutoTabStops
| void KexiDBForm::setAutoTabStops |
( |
bool |
set | ) |
|
|
slot |
◆ 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
| virtual void KexiDBForm::setReadOnly |
( |
bool |
readOnly | ) |
|
|
virtualslot |
This implementation just disables read only widget.
◆ 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()
- Todo:
- d->indicesForDataAwareWidgets SHOULDNT BE UPDATED HERE BECAUSE THERE CAN BE ALSO NON-TABSTOP DATA WIDGETS! / d->indicesForDataAwareWidgets.replace(
dataItem,
numberOfDataAwareWidgets ); numberOfDataAwareWidgets++;
d->orderedDataAwareWidgets.append( it.current()->widget() ); } }//for } /* else { restore ordering for (TQPtrListIterator<TQWidget> it(d->orderedFocusWidgets); it.current(); ++it) { if (fromWidget) { kdDebug() << "KexiDBForm::updateTabStopsOrder() tab order: " << fromWidget->name() << " -> " << it.current()->name() << endl; setTabOrder( fromWidget, it.current() ); } fromWidget = it.current(); } SET_FOCUS_USING_REASON(focusWidget(), TQFocusEvent::Tab); }
fullRowSelection
- Todo:
- remove hardcoded shortcuts: can be reconfigured...
- Todo:
- ?
- Todo:
- clear all fields?
- Todo:
- ?
Definition at line 304 of file kexidbform.cpp.
◆ value()
| TQVariant KexiDBForm::value |
( |
| ) |
|
|
inlinevirtual |
◆ valueIsEmpty()
| virtual bool KexiDBForm::valueIsEmpty |
( |
| ) |
|
|
virtual |
◆ valueIsNull()
| virtual 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.
◆ widget()
| virtual TQWidget * KexiDBForm::widget |
( |
| ) |
|
|
virtual |
Convenience function: casts this item to a TQWidget. Can return 0 if the item is not a TQWidget-derived object.
Reimplemented from KexiFormDataItemInterface.
◆ 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:
|