KexiDBCheckBox Class Reference
#include <kexidbcheckbox.h>
Inheritance diagram for KexiDBCheckBox:

Detailed Description
A db-aware check box.
Definition at line 28 of file kexidbcheckbox.h.
Public Types | |
| enum | Tristate { TristateDefault, TristateOn, TristateOff } |
Public Slots | |
| void | setDataSource (const QString &ds) |
| Sets the name of the data source for this widget. | |
| void | setDataSourceMimeType (const QCString &ds) |
| void | slotStateChanged (int state) |
| virtual void | setReadOnly (bool readOnly) |
| This implementation just disables read only widget. | |
Public Member Functions | |
| KexiDBCheckBox (const QString &text, QWidget *parent, const char *name=0) | |
| virtual | ~KexiDBCheckBox () |
| QString | dataSource () const |
| QCString | dataSourceMimeType () const |
| virtual QVariant | value () |
| virtual void | setInvalidState (const QString &displayText) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| clears item's data, so the data will contain NULL data | |
| virtual void | setEnabled (bool enabled) |
| void | setTristate (Tristate tristate) |
| Tristate | isTristate () const |
| virtual void | setDisplayDefaultValue (QWidget *widget, bool displayDefaultValue) |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| bool | isTristateInternal () const |
| void | updateTristate () |
| Updates tristate in QCheckBox itself according to m_tristate. | |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
Member Enumeration Documentation
|
|
Definition at line 67 of file kexidbcheckbox.h. |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 26 of file kexidbcheckbox.cpp. References slotStateChanged(), and updateTristate(). |
|
|
Definition at line 37 of file kexidbcheckbox.cpp. |
Member Function Documentation
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 120 of file kexidbcheckbox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 115 of file kexidbcheckbox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 110 of file kexidbcheckbox.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 40 of file kexidbcheckbox.h. References KexiFormDataItemInterface::dataSource(). Referenced by isTristateInternal(), and updateTristate(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 41 of file kexidbcheckbox.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 99 of file kexidbcheckbox.cpp. |
|
|
Definition at line 132 of file kexidbcheckbox.cpp. |
|
|
Definition at line 137 of file kexidbcheckbox.cpp. References dataSource(), TristateDefault, and TristateOn. Referenced by setValueInternal(). |
|
|
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 156 of file kexidbcheckbox.cpp. References KexiFormDataItemInterface::setDataSource(), and updateTristate(). |
|
|
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 77 of file kexidbcheckbox.h. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
||||||||||||
|
Reimplemented after KexiFormDataItemInterface. Reimplemented from KexiFormDataItemInterface. Definition at line 162 of file kexidbcheckbox.cpp. References KexiFormDataItemInterface::m_displayParametersForDefaultValue, KexiFormDataItemInterface::m_displayParametersForEnteredValue, KexiFormDataItemInterface::setDisplayDefaultValue(), and KexiDisplayUtils::DisplayParameters::textColor. |
|
|
Definition at line 53 of file kexidbcheckbox.cpp. Referenced by setInvalidState(), and setReadOnly(). |
|
|
Implements KexiFormDataItemInterface. Definition at line 41 of file kexidbcheckbox.cpp. References setEnabled(). |
|
|
This implementation just disables read only widget.
Implements KexiFormDataItemInterface. Definition at line 61 of file kexidbcheckbox.cpp. References setEnabled(). |
|
|
Definition at line 125 of file kexidbcheckbox.cpp. References updateTristate(). |
|
||||||||||||
|
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 66 of file kexidbcheckbox.cpp. References isTristateInternal(), and KexiDataItemInterface::m_origValue. |
|
|
Definition at line 84 of file kexidbcheckbox.cpp. References KexiDataItemInterface::signalValueChanged(). Referenced by KexiDBCheckBox(). |
|
|
Updates tristate in QCheckBox itself according to m_tristate.
Definition at line 145 of file kexidbcheckbox.cpp. References dataSource(), TristateDefault, and TristateOn. Referenced by KexiDBCheckBox(), setDataSource(), and setTristate(). |
|
|
Implements KexiDataItemInterface. Definition at line 77 of file kexidbcheckbox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 94 of file kexidbcheckbox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 89 of file kexidbcheckbox.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 105 of file kexidbcheckbox.cpp. |
Property Documentation
|
|
Definition at line 31 of file kexidbcheckbox.h. |
|
|
Definition at line 32 of file kexidbcheckbox.h. |
The documentation for this class was generated from the following files:
