Kexi API Documentation (2.0 alpha)

KexiDBDoubleSpinBox Class Reference

#include <kexidbdoublespinbox.h>

Inheritance diagram for KexiDBDoubleSpinBox:

KDoubleSpinBox KexiFormDataItemInterface KexiDataItemInterface List of all members.

Detailed Description

A db-aware int spin box.

Definition at line 29 of file kexidbdoublespinbox.h.

Public Slots

virtual void setEnabled (bool enabled)
void setDataSource (const QString &ds)
 Sets the name of the data source for this widget.
void setDataSourceMimeType (const QCString &ds)
void slotValueChanged ()
virtual void setReadOnly (bool set)

Public Member Functions

 KexiDBDoubleSpinBox (QWidget *parent, const char *name=0)
virtual ~KexiDBDoubleSpinBox ()
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 QWidgetwidget ()
virtual bool cursorAtStart ()
virtual bool cursorAtEnd ()
virtual void clear ()
 clears item's data, so the data will contain NULL data

Protected Member Functions

virtual void setValueInternal (const QVariant &add, bool removeOld)

Properties

QString dataSource
QCString dataSourceMimeType
bool readOnly


Constructor & Destructor Documentation

KexiDBDoubleSpinBox::KexiDBDoubleSpinBox QWidget parent,
const char *  name = 0
 

Definition at line 25 of file kexidbdoublespinbox.cpp.

References slotValueChanged(), and KexiDataItemInterface::valueChanged().

KexiDBDoubleSpinBox::~KexiDBDoubleSpinBox  )  [virtual]
 

Definition at line 31 of file kexidbdoublespinbox.cpp.


Member Function Documentation

void KexiDBDoubleSpinBox::clear  )  [virtual]
 

clears item's data, so the data will contain NULL data

Implements KexiDataItemInterface.

Definition at line 108 of file kexidbdoublespinbox.cpp.

bool KexiDBDoubleSpinBox::cursorAtEnd  )  [virtual]
 

Todo:
?

Implements KexiDataItemInterface.

Definition at line 103 of file kexidbdoublespinbox.cpp.

bool KexiDBDoubleSpinBox::cursorAtStart  )  [virtual]
 

Todo:
?

Implements KexiDataItemInterface.

Definition at line 98 of file kexidbdoublespinbox.cpp.

QString KexiDBDoubleSpinBox::dataSource  )  const [inline]
 

Returns:
the name of the data source for this widget. Data source usually means here a table or query, a field name or an expression.

Reimplemented from KexiFormDataItemInterface.

Definition at line 40 of file kexidbdoublespinbox.h.

References KexiFormDataItemInterface::dataSource().

QCString KexiDBDoubleSpinBox::dataSourceMimeType  )  const [inline]
 

Returns:
the mime type of the data source for this widget. Data source mime type means here types like "kexi/table" or "kexi/query" in.the data source is set to object (as within form or subform) or is empty if the data source is set to table field or query column.

Reimplemented from KexiFormDataItemInterface.

Definition at line 41 of file kexidbdoublespinbox.h.

References KexiFormDataItemInterface::dataSourceMimeType().

bool KexiDBDoubleSpinBox::isReadOnly  )  const [virtual]
 

Returns:
'readOnly' flag for this widget.

Reimplemented from KexiDataItemInterface.

Definition at line 82 of file kexidbdoublespinbox.cpp.

void KexiDBDoubleSpinBox::setDataSource const QString ds  )  [inline, slot]
 

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 67 of file kexidbdoublespinbox.h.

References KexiFormDataItemInterface::setDataSource().

void KexiDBDoubleSpinBox::setDataSourceMimeType const QCString &  ds  )  [inline, slot]
 

Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".

See also:
dataSourceMimeType()

Reimplemented from KexiFormDataItemInterface.

Definition at line 68 of file kexidbdoublespinbox.h.

References KexiFormDataItemInterface::setDataSourceMimeType().

void KexiDBDoubleSpinBox::setEnabled bool  enabled  )  [virtual, slot]
 

Definition at line 48 of file kexidbdoublespinbox.cpp.

Referenced by setInvalidState().

void KexiDBDoubleSpinBox::setInvalidState const QString displayText  )  [virtual]
 

Todo:
move this to KexiDataItemInterface::setInvalidStateInternal() ?

Implements KexiFormDataItemInterface.

Definition at line 35 of file kexidbdoublespinbox.cpp.

References setEnabled(), and setReadOnly().

void KexiDBDoubleSpinBox::setReadOnly bool  set  )  [virtual, slot]
 

Changes 'read only' flag, for this widget. Typically this flag can be passed to a widget itself, e.g. KLineEdit::setReadOnly(bool).

Implements KexiFormDataItemInterface.

Definition at line 87 of file kexidbdoublespinbox.cpp.

Referenced by setInvalidState().

void KexiDBDoubleSpinBox::setValueInternal const QVariant &  add,
bool  removeOld
[protected, virtual]
 

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 56 of file kexidbdoublespinbox.cpp.

References KexiDataItemInterface::m_origValue.

void KexiDBDoubleSpinBox::slotValueChanged  )  [slot]
 

Definition at line 67 of file kexidbdoublespinbox.cpp.

References KexiDataItemInterface::signalValueChanged().

Referenced by KexiDBDoubleSpinBox().

QVariant KexiDBDoubleSpinBox::value  )  [virtual]
 

Returns:
value currently represented by this item.

Implements KexiDataItemInterface.

Definition at line 62 of file kexidbdoublespinbox.cpp.

bool KexiDBDoubleSpinBox::valueIsEmpty  )  [virtual]
 

Returns:
true if editor's value is empty (not necessary null). Only few data types can accept "EMPTY" property (use KexiDB::Field::hasEmptyProperty() to check this). Used for checking if a given constraint within table or form is met.

Implements KexiDataItemInterface.

Definition at line 77 of file kexidbdoublespinbox.cpp.

bool KexiDBDoubleSpinBox::valueIsNull  )  [virtual]
 

Returns:
true if editor's value is null (not empty) Used for checking if a given constraint within table of form is met.

Implements KexiDataItemInterface.

Definition at line 72 of file kexidbdoublespinbox.cpp.

QWidget * KexiDBDoubleSpinBox::widget  )  [virtual]
 

Returns:
the view widget of this item, e.g. line edit widget.

Reimplemented from KexiFormDataItemInterface.

Definition at line 93 of file kexidbdoublespinbox.cpp.


Property Documentation

QString KexiDBDoubleSpinBox::dataSource [read, write]
 

Definition at line 32 of file kexidbdoublespinbox.h.

QCString KexiDBDoubleSpinBox::dataSourceMimeType [read, write]
 

Definition at line 33 of file kexidbdoublespinbox.h.

bool KexiDBDoubleSpinBox::readOnly [read, write]
 

Definition at line 34 of file kexidbdoublespinbox.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:58 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003