kexi
KexiDBAutoField Class Reference
#include <kexidbautofield.h>
Inheritance diagram for KexiDBAutoField:

Detailed Description
Universal "Auto Field" widget for Kexi forms.It acts as a container for most data-aware widgets.
Definition at line 35 of file kexidbautofield.h.
Public Types | |
enum | WidgetType { Auto = 100, Text, Integer, Double, Boolean, Date, Time, DateTime, MultiLineText, Enum, Image } |
enum | LabelPosition { Left = 300, Top, NoLabel } |
Public Member Functions | |
KexiDBAutoField (const QString &text, WidgetType type, LabelPosition pos, QWidget *parent=0, const char *name=0, bool designMode=true) | |
KexiDBAutoField (QWidget *parent=0, const char *name=0, bool designMode=true) | |
virtual | ~KexiDBAutoField () |
QString | dataSource () const |
QCString | dataSourceMimeType () const |
virtual void | setDataSource (const QString &ds) |
virtual void | setDataSourceMimeType (const QCString &ds) |
virtual void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
virtual void | setInvalidState (const QString &text) |
virtual bool | isReadOnly () const |
virtual QVariant | value () |
virtual bool | valueIsNull () |
virtual bool | valueIsEmpty () |
virtual bool | valueChanged () |
virtual void | clear () |
virtual void | installListener (KexiDataItemChangesListener *listener) |
WidgetType | widgetType () const |
void | setWidgetType (WidgetType type) |
LabelPosition | labelPosition () const |
void | setLabelPosition (LabelPosition position) |
QString | caption () const |
void | setCaption (const QString &caption) |
bool | hasAutoCaption () const |
void | setAutoCaption (bool autoCaption) |
QWidget * | editor () const |
QLabel * | label () const |
virtual bool | cursorAtStart () |
virtual bool | cursorAtEnd () |
void | setFieldTypeInternal (int kexiDBFieldType) |
void | setFieldCaptionInternal (const QString &text) |
int | fieldTypeInternal () const |
QString | fieldCaptionInternal () const |
virtual QSize | sizeHint () const |
virtual void | setFocusPolicy (FocusPolicy policy) |
Static Public Member Functions | |
static WidgetType | widgetTypeForFieldType (KexiDB::Field::Type type) |
Protected Slots | |
void | slotValueChanged () |
virtual void | paletteChange (const QPalette &oldPal) |
Protected Member Functions | |
virtual void | setValueInternal (const QVariant &add, bool removeOld) |
void | init (const QString &text, WidgetType type, LabelPosition pos) |
void | createEditor () |
void | changeText (const QString &text, bool beautify=true) |
void | updateInformationAboutUnboundField () |
Properties | |
bool | autoCaption |
QString | dataSource |
QCString | dataSourceMimeType |
LabelPosition | labelPosition |
WidgetType | widgetType |
int | fieldTypeInternal |
QString | fieldCaptionInternal |
Member Function Documentation
|
Definition at line 435 of file kexidbautofield.cpp. |
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 335 of file kexidbautofield.cpp. |
|
Definition at line 109 of file kexidbautofield.cpp. |
|
Implements KexiDataItemInterface. Definition at line 326 of file kexidbautofield.cpp. |
|
Implements KexiDataItemInterface. Definition at line 317 of file kexidbautofield.cpp. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 63 of file kexidbautofield.h. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 64 of file kexidbautofield.h. |
|
Reimpelmented to also install listenter for internal editor.
Reimplemented from KexiDataItemInterface. Definition at line 308 of file kexidbautofield.cpp. |
|
Reimplemented from KexiDataItemInterface. Definition at line 239 of file kexidbautofield.cpp. |
|
Used internally to set database column information. Reimplement if you need to do additional actions, e.g. set data validator based on field type. Don't forget about calling superclass implementation. Reimplemented from KexiFormDataItemInterface. Definition at line 368 of file kexidbautofield.cpp. |
|
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 511 of file kexidbautofield.cpp. |
|
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 66 of file kexidbautofield.h. |
|
On design time it is not possible to pass a reference to KexiDB::Field object so we're just providing field caption. Only used when widget type is Auto. Definition at line 357 of file kexidbautofield.cpp. |
|
On design time it is not possible to pass a reference to KexiDB::Field object so we're just providing field type. Only used when widget type is Auto. Definition at line 343 of file kexidbautofield.cpp. |
|
Implements KexiFormDataItemInterface. Definition at line 225 of file kexidbautofield.cpp. |
|
Definition at line 178 of file kexidbautofield.cpp. |
|
Initializes this editor with add value, which should be somewhat added to the current value (already storted in m_origValue). If removeOld is true, a value should be set to add, otherwise -it should be set to current m_origValue + add, if possible. Implement this. Implements KexiDataItemInterface. Definition at line 257 of file kexidbautofield.cpp. |
|
Implements KexiDataItemInterface. Definition at line 265 of file kexidbautofield.cpp. |
|
Reimplemented from KexiDataItemInterface. Definition at line 298 of file kexidbautofield.cpp. |
|
Implements KexiDataItemInterface. Definition at line 289 of file kexidbautofield.cpp. |
|
Implements KexiDataItemInterface. Definition at line 280 of file kexidbautofield.cpp. |
The documentation for this class was generated from the following files: