kexi
KexiDBImageBox Class Reference
#include <kexidbimagebox.h>
Inheritance diagram for KexiDBImageBox:

Detailed Description
A data-aware, editable image box.Can also act as a normal static image box.
Definition at line 33 of file kexidbimagebox.h.
Public Slots | |
| void | setPixmapId (uint id) |
| void | setStoredPixmapId (uint id) |
| virtual void | setDataSource (const QString &ds) |
| void | setDataSourceMimeType (const QCString &ds) |
| virtual void | setReadOnly (bool set) |
| void | setScaledContents (bool set) |
| void | insertFromFile () |
| void | setAlignment (int alignment) |
| void | setKeepAspectRatio (bool set) |
| void | updateActionsAvailability () |
| void | saveAs () |
| void | cut () |
| void | copy () |
| void | paste () |
| virtual void | clear () |
| void | showProperties () |
Signals | |
| virtual void | valueChanged (const QByteArray &data) |
| void | idChanged (long id) |
Public Member Functions | |
| KexiDBImageBox (bool designMode, QWidget *parent, const char *name=0) | |
| virtual | ~KexiDBImageBox () |
| QString | dataSource () const |
| QCString | dataSourceMimeType () const |
| virtual QVariant | value () |
| QPixmap | pixmap () const |
| uint | pixmapId () const |
| uint | storedPixmapId () const |
| virtual void | setInvalidState (const QString &displayText) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual bool | isReadOnly () const |
| bool | hasScaledContents () const |
| int | alignment () const |
| bool | keepAspectRatio () const |
| virtual QSize | sizeHint () const |
| KActionCollection * | actionCollection () |
Protected Slots | |
| void | slotAboutToHidePopupMenu () |
| void | slotChooserPressed () |
Protected Member Functions | |
| QByteArray | data () const |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | setValueInternal (const QVariant &add, bool) |
| void | updateActionStrings () |
| void | updatePixmap () |
| void | setData (const KexiBLOBBuffer::Handle &handle) |
| bool | popupMenuAvailable () |
Protected Attributes | |
| QPixmap | m_pixmap |
| QByteArray | m_value |
| KexiBLOBBuffer::Handle | m_data |
| Button * | m_chooser |
| KPopupMenu * | m_popup |
| KActionCollection | m_actionCollection |
| KAction * | m_insertFromFileAction |
| KAction * | m_saveAsAction |
| KAction * | m_cutAction |
| KAction * | m_copyAction |
| KAction * | m_pasteAction |
| KAction * | m_deleteAction |
| KAction * | m_propertiesAction |
| QTimer | m_clickTimer |
| int | m_titleID |
| int | m_alignment |
| bool | m_designMode: 1 |
| bool | m_readOnly: 1 |
| bool | m_scaledContents: 1 |
| bool | m_keepAspectRatio: 1 |
| bool | m_insideSetData: 1 |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
| bool | readOnly |
| uint | pixmapId |
| uint | storedPixmapId |
| bool | scaledContents |
| bool | keepAspectRatio |
| Alignment | alignment |
Member Function Documentation
|
|
Implements KexiDataItemInterface. Definition at line 467 of file kexidbimagebox.cpp. |
|
|
always true
Implements KexiDataItemInterface. Definition at line 291 of file kexidbimagebox.cpp. |
|
|
always true
Implements KexiDataItemInterface. Definition at line 286 of file kexidbimagebox.cpp. |
|
|
Definition at line 368 of file kexidbimagebox.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 52 of file kexidbimagebox.h. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 53 of file kexidbimagebox.h. |
|
|
Definition at line 307 of file kexidbimagebox.cpp. |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 201 of file kexidbimagebox.cpp. |
|
|
Definition at line 598 of file kexidbimagebox.cpp. |
|
|
Definition at line 566 of file kexidbimagebox.cpp. |
|
|
Definition at line 380 of file kexidbimagebox.cpp. |
|
|
Sets the datasource to ds.
Reimplemented from KexiFormDataItemInterface. Definition at line 574 of file kexidbimagebox.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 111 of file kexidbimagebox.h. |
|
|
Implements KexiFormDataItemInterface. Definition at line 172 of file kexidbimagebox.cpp. |
|
|
Definition at line 230 of file kexidbimagebox.cpp. |
|
|
Sets pixmapData data for this widget. Sets original file name of image loaded from a file.
Definition at line 265 of file kexidbimagebox.cpp. |
|
||||||||||||
|
Sets value value for a widget.
Implements KexiDataItemInterface. Definition at line 162 of file kexidbimagebox.cpp. |
|
|
Definition at line 491 of file kexidbimagebox.cpp. |
|
|
Updates i18n'd action strings after datasource change.
Definition at line 549 of file kexidbimagebox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 152 of file kexidbimagebox.cpp. |
|
|
Emitted when value has been changed. Actual value can be obtained using value().
|
|
|
Implements KexiDataItemInterface. Definition at line 196 of file kexidbimagebox.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 190 of file kexidbimagebox.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 279 of file kexidbimagebox.cpp. |
Member Data Documentation
|
|
for db-aware mode
Definition at line 190 of file kexidbimagebox.h. |
The documentation for this class was generated from the following files:

