Kexi API Documentation (2.0 alpha)

KexiDBImageBox Class Reference

#include <kexidbimagebox.h>

Inheritance diagram for KexiDBImageBox:

KexiFrame KexiFormDataItemInterface KexiSubwidgetInterface QFrame KexiDataItemInterface List of all members.

Detailed Description

A data-aware, editable image box.

Can also act as a normal static image box.

Definition at line 35 of file kexidbimagebox.h.

Public Slots

void setPixmapId (uint id)
void setStoredPixmapId (uint id)
virtual void setDataSource (const QString &ds)
 Sets the datasource to ds.
void setDataSourceMimeType (const QCString &ds)
virtual void setReadOnly (bool set)
void setScaledContents (bool set)
 Sets pixmapData data for this widget.
void setAlignment (int alignment)
void setKeepAspectRatio (bool set)
void setDropDownButtonVisible (bool set)
void insertFromFile ()
 Forces execution of "insert from file" action.

Signals

void idChanged (long id)
 Used for db-aware mode.

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 QWidgetwidget ()
virtual bool cursorAtStart ()
 always true
virtual bool cursorAtEnd ()
 always true
virtual bool isReadOnly () const
bool hasScaledContents () const
int alignment () const
bool keepAspectRatio () const
virtual QSize sizeHint () const
KexiImageContextMenucontextMenu () const
virtual void setLineWidth (int width)
 Reimplemented to override behaviour of "lineWidth" property.
virtual void setPaletteBackgroundColor (const QColor &color)
 Reimplemented to override behaviour of "paletteBackgroundColor" property.
bool dropDownButtonVisible () const
int lineWidth () const
 For overridden property.
FocusPolicy focusPolicy () const
FocusPolicy focusPolicyInternal () const
virtual void setFocusPolicy (FocusPolicy policy)

Protected Slots

void slotUpdateActionsAvailabilityRequested (bool &valueIsNull, bool &valueIsReadOnly)
void handleInsertFromFileAction (const KURL &url)
void handleAboutToSaveAsAction (QString &origFilename, QString &fileExtension, bool &dataIsEmpty)
void handleSaveAsAction (const QString &fileName)
void handleCutAction ()
void handleCopyAction ()
void handlePasteAction ()
virtual void clear ()
void handleShowPropertiesAction ()

Protected Member Functions

QByteArray data () const
virtual void contextMenuEvent (QContextMenuEvent *e)
virtual void setColumnInfo (KexiDB::QueryColumnInfo *cinfo)
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *e)
virtual bool eventFilter (QObject *watched, QEvent *e)
virtual void setValueInternal (const QVariant &add, bool removeOld)
 Sets value value for a widget.
void setValueInternal (const QVariant &add, bool removeOld, bool loadPixmap)
void updateActionStrings ()
 Updates i18n'd action strings after datasource change.
void updatePixmap ()
void setData (const KexiBLOBBuffer::Handle &handle)
bool popupMenuAvailable ()
virtual bool keyPressed (QKeyEvent *ke)
int realLineWidth () const
virtual bool subwidgetStretchRequired (KexiDBAutoField *autoField) const
 Implemented for KexiSubwidgetInterface.

Protected Attributes

QPixmap m_pixmap
QByteArray m_value
 for db-aware mode
QString m_valueMimeType
 for db-aware mode
KexiBLOBBuffer::Handle m_data
KexiDropDownButtonm_chooser
KexiImageContextMenum_popupMenu
int m_alignment
FocusPolicy m_focusPolicyInternal
 Used for focusPolicyInternal().
bool m_designMode: 1
bool m_readOnly: 1
bool m_scaledContents: 1
bool m_keepAspectRatio: 1
bool m_insideSetData: 1
bool m_setFocusOnButtonAfterClosingPopup: 1
bool m_lineWidthChanged: 1
bool m_paletteBackgroundColorChanged: 1
bool m_paintEventEnabled: 1
 used to disable paintEvent()
bool m_dropDownButtonVisible: 1

Properties

QString dataSource
QCString dataSourceMimeType
bool readOnly
uint pixmapId
uint storedPixmapId
bool scaledContents
bool keepAspectRatio
Alignment alignment
bool dropDownButtonVisible


Constructor & Destructor Documentation

KexiDBImageBox::KexiDBImageBox bool  designMode,
QWidget parent,
const char *  name = 0
 

Definition at line 63 of file kexidbimagebox.cpp.

References clear(), handleCopyAction(), handleCutAction(), handleInsertFromFileAction(), handlePasteAction(), handleSaveAsAction(), handleShowPropertiesAction(), m_chooser, m_designMode, m_popupMenu, setDataSource(), KexiFrame::setFrameColor(), and slotUpdateActionsAvailabilityRequested().

KexiDBImageBox::~KexiDBImageBox  )  [virtual]
 

Definition at line 129 of file kexidbimagebox.cpp.


Member Function Documentation

int KexiDBImageBox::alignment  )  const [inline]
 

Definition at line 97 of file kexidbimagebox.h.

void KexiDBImageBox::clear  )  [protected, virtual, slot]
 

Todo:
emit signal for setting "dirty" flag within the design

Implements KexiDataItemInterface.

Definition at line 433 of file kexidbimagebox.cpp.

References dataSource(), isReadOnly(), setData(), setValueInternal(), and KexiDataItemInterface::signalValueChanged().

Referenced by handleCutAction(), and KexiDBImageBox().

KexiImageContextMenu * KexiDBImageBox::contextMenu  )  const
 

Definition at line 133 of file kexidbimagebox.cpp.

References m_popupMenu.

Referenced by KexiDBFactory::createMenuActions().

void KexiDBImageBox::contextMenuEvent QContextMenuEvent *  e  )  [protected, virtual]
 

Definition at line 489 of file kexidbimagebox.cpp.

References m_popupMenu, and popupMenuAvailable().

bool KexiDBImageBox::cursorAtEnd  )  [virtual]
 

always true

Implements KexiDataItemInterface.

Definition at line 295 of file kexidbimagebox.cpp.

bool KexiDBImageBox::cursorAtStart  )  [virtual]
 

always true

Implements KexiDataItemInterface.

Definition at line 290 of file kexidbimagebox.cpp.

QByteArray KexiDBImageBox::data  )  const [protected]
 

Returns:
data depending on the current mode (db-aware or static)

Definition at line 300 of file kexidbimagebox.cpp.

References KexiBLOBBuffer::Handle::data(), dataSource(), m_data, and m_value.

Referenced by handleAboutToSaveAsAction(), and handleSaveAsAction().

QString KexiDBImageBox::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 61 of file kexidbimagebox.h.

References KexiFormDataItemInterface::dataSource().

Referenced by clear(), data(), focusPolicy(), handleAboutToSaveAsAction(), handleCutAction(), handleInsertFromFileAction(), handlePasteAction(), paintEvent(), pixmap(), popupMenuAvailable(), setDataSource(), setInvalidState(), slotUpdateActionsAvailabilityRequested(), updateActionStrings(), and value().

QCString KexiDBImageBox::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 62 of file kexidbimagebox.h.

References KexiFormDataItemInterface::dataSourceMimeType().

bool KexiDBImageBox::dropDownButtonVisible  )  const
 

Returns:
true id drop down button should be visible (the default).

bool KexiDBImageBox::eventFilter QObject *  watched,
QEvent *  e
[protected, virtual]
 

Definition at line 818 of file kexidbimagebox.cpp.

References m_chooser.

QWidget::FocusPolicy KexiDBImageBox::focusPolicy  )  const
 

Overriden to change the policy behaviour a bit: NoFocus is returned regardless the real focus flag if the data source is empty (see dataSource()).

Definition at line 828 of file kexidbimagebox.cpp.

References dataSource(), and m_focusPolicyInternal.

Referenced by setDataSource(), and setFocusPolicy().

QWidget::FocusPolicy KexiDBImageBox::focusPolicyInternal  )  const
 

Returns:
the internal focus policy value, i.e. the one unrelated to data source presence.

Definition at line 835 of file kexidbimagebox.cpp.

References m_focusPolicyInternal.

void KexiDBImageBox::handleAboutToSaveAsAction QString origFilename,
QString fileExtension,
bool &  dataIsEmpty
[protected, slot]
 

Definition at line 356 of file kexidbimagebox.cpp.

References data(), dataSource(), m_data, KexiBLOBBuffer::Handle::mimeType(), and KexiBLOBBuffer::Handle::originalFileName().

void KexiDBImageBox::handleCopyAction  )  [protected, slot]
 

Definition at line 396 of file kexidbimagebox.cpp.

References KexiCSVExport::Clipboard, and pixmap().

Referenced by handleCutAction(), and KexiDBImageBox().

void KexiDBImageBox::handleCutAction  )  [protected, slot]
 

Definition at line 388 of file kexidbimagebox.cpp.

References clear(), dataSource(), handleCopyAction(), and isReadOnly().

Referenced by KexiDBImageBox().

void KexiDBImageBox::handleInsertFromFileAction const KURL &  url  )  [protected, slot]
 

Todo:
download the file if remote, then set fileName properly
Todo:
err msg
Todo:
err msg
Todo:
emit signal for setting "dirty" flag within the design

Definition at line 317 of file kexidbimagebox.cpp.

References dataSource(), isReadOnly(), m_valueMimeType, KexiBLOBBuffer::self(), setData(), setValueInternal(), and KexiDataItemInterface::signalValueChanged().

Referenced by KexiDBImageBox().

void KexiDBImageBox::handlePasteAction  )  [protected, slot]
 

Definition at line 401 of file kexidbimagebox.cpp.

References KexiCSVExport::Clipboard, dataSource(), isReadOnly(), m_designMode, m_pixmap, KexiBLOBBuffer::self(), setData(), setValueInternal(), and KexiDataItemInterface::signalValueChanged().

Referenced by KexiDBImageBox().

void KexiDBImageBox::handleSaveAsAction const QString fileName  )  [protected, slot]
 

Todo:
err msg
Todo:
err msg

Definition at line 372 of file kexidbimagebox.cpp.

References data().

Referenced by KexiDBImageBox().

void KexiDBImageBox::handleShowPropertiesAction  )  [protected, slot]
 

Todo:

Definition at line 459 of file kexidbimagebox.cpp.

Referenced by KexiDBImageBox().

bool KexiDBImageBox::hasScaledContents  )  const
 

Definition at line 257 of file kexidbimagebox.cpp.

References m_scaledContents.

void KexiDBImageBox::idChanged long  id  )  [signal]
 

Used for db-aware mode.

Emitted when value has been changed. Actual value can be obtained using value().

Referenced by setData().

void KexiDBImageBox::insertFromFile  )  [slot]
 

Forces execution of "insert from file" action.

Definition at line 312 of file kexidbimagebox.cpp.

References KexiImageContextMenu::insertFromFile(), and m_popupMenu.

Referenced by KexiDBFactory::startEditing().

bool KexiDBImageBox::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.

Definition at line 205 of file kexidbimagebox.cpp.

References m_readOnly.

Referenced by clear(), handleCutAction(), handleInsertFromFileAction(), handlePasteAction(), setValueInternal(), and slotUpdateActionsAvailabilityRequested().

bool KexiDBImageBox::keepAspectRatio  )  const [inline]
 

Definition at line 99 of file kexidbimagebox.h.

bool KexiDBImageBox::keyPressed QKeyEvent *  ke  )  [protected, virtual]
 

Called by top-level form on key press event. Used for Key_Escape to if the popup is visible, so the key press won't be consumed to perform "cancel editing".

Reimplemented from KexiFormDataItemInterface.

Definition at line 765 of file kexidbimagebox.cpp.

References m_popupMenu, and m_setFocusOnButtonAfterClosingPopup.

int KexiDBImageBox::lineWidth  )  const [inline]
 

For overridden property.

Definition at line 120 of file kexidbimagebox.h.

Referenced by realLineWidth().

void KexiDBImageBox::paintEvent QPaintEvent *   )  [protected, virtual]
 

Definition at line 626 of file kexidbimagebox.cpp.

References KexiUtils::contrastColor(), dataSource(), KexiFrame::drawFrame(), KexiUtils::drawPixmap(), KexiDBImageBox_pm, m_alignment, m_chooser, m_designMode, m_dropDownButtonVisible, m_keepAspectRatio, m_paintEventEnabled, m_scaledContents, pixmap(), realLineWidth(), size, and updatePixmap().

QPixmap KexiDBImageBox::pixmap  )  const
 

Definition at line 215 of file kexidbimagebox.cpp.

References dataSource(), m_data, m_pixmap, and KexiBLOBBuffer::Handle::pixmap().

Referenced by handleCopyAction(), paintEvent(), sizeHint(), slotUpdateActionsAvailabilityRequested(), and updatePixmap().

uint KexiDBImageBox::pixmapId  )  const
 

bool KexiDBImageBox::popupMenuAvailable  )  [protected]
 

Todo:
add kexi-global setting which anyway, allows to show this button (read-only actions like copy/save as/print can be available)

Definition at line 575 of file kexidbimagebox.cpp.

References dataSource().

Referenced by contextMenuEvent(), setDataSource(), and updateActionStrings().

int KexiDBImageBox::realLineWidth  )  const [protected]
 

Returns:
real line width, i.e. for Boxed sunken or Boxed raised frames returns doubled width value.

Definition at line 618 of file kexidbimagebox.cpp.

References lineWidth().

Referenced by paintEvent(), and resizeEvent().

void KexiDBImageBox::resizeEvent QResizeEvent *  e  )  [protected, virtual]
 

Definition at line 728 of file kexidbimagebox.cpp.

References m_chooser, realLineWidth(), size, and KexiDropDownButton::sizeHint().

void KexiDBImageBox::setAlignment int  alignment  )  [slot]
 

Definition at line 710 of file kexidbimagebox.cpp.

References m_alignment, m_keepAspectRatio, and m_scaledContents.

void KexiDBImageBox::setColumnInfo KexiDB::QueryColumnInfo cinfo  )  [protected, virtual]
 

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 758 of file kexidbimagebox.cpp.

References KexiFormDataItemInterface::setColumnInfo(), and updateActionStrings().

void KexiDBImageBox::setData const KexiBLOBBuffer::Handle handle  )  [protected]
 

Definition at line 717 of file kexidbimagebox.cpp.

References KexiBLOBBuffer::Handle::id(), idChanged(), m_data, and m_insideSetData.

Referenced by clear(), handleInsertFromFileAction(), handlePasteAction(), setDataSource(), setPixmapId(), and setStoredPixmapId().

void KexiDBImageBox::setDataSource const QString ds  )  [virtual, slot]
 

Sets the datasource to ds.

Todo:
get default line width from global style settings

Reimplemented from KexiFormDataItemInterface.

Definition at line 583 of file kexidbimagebox.cpp.

References dataSource(), focusPolicy(), m_chooser, m_dropDownButtonVisible, m_lineWidthChanged, m_paletteBackgroundColorChanged, popupMenuAvailable(), setData(), KexiFormDataItemInterface::setDataSource(), and updateActionStrings().

Referenced by KexiDBImageBox().

void KexiDBImageBox::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 142 of file kexidbimagebox.h.

References KexiFormDataItemInterface::setDataSourceMimeType().

void KexiDBImageBox::setDropDownButtonVisible bool  set  )  [slot]
 

Returns:
sets dropDownButtonVisible property.
See also:
dropDownButtonVisible()

Definition at line 798 of file kexidbimagebox.cpp.

References m_chooser, and m_dropDownButtonVisible.

void KexiDBImageBox::setFocusPolicy FocusPolicy  policy  )  [virtual]
 

Sets the internal focus policy value. "Internal" means that if there is no data source set, real policy becomes NoFocus.

Definition at line 840 of file kexidbimagebox.cpp.

References focusPolicy(), and m_focusPolicyInternal.

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

Todo:
m_pixmapLabel->setText( displayText );

Implements KexiFormDataItemInterface.

Definition at line 176 of file kexidbimagebox.cpp.

References dataSource(), m_chooser, m_value, and setReadOnly().

void KexiDBImageBox::setKeepAspectRatio bool  set  )  [slot]
 

Definition at line 276 of file kexidbimagebox.cpp.

References m_keepAspectRatio, and m_scaledContents.

void KexiDBImageBox::setLineWidth int  width  )  [virtual]
 

Reimplemented to override behaviour of "lineWidth" property.

Returns:
original file name of image loaded from a file. This can be later reused for displaying the image within a collection (to be implemented) or on saving the image data back to file.

Definition at line 779 of file kexidbimagebox.cpp.

References m_lineWidthChanged.

void KexiDBImageBox::setPaletteBackgroundColor const QColor &  color  )  [virtual]
 

Reimplemented to override behaviour of "paletteBackgroundColor" property.

Definition at line 785 of file kexidbimagebox.cpp.

References m_chooser, and m_paletteBackgroundColorChanged.

void KexiDBImageBox::setPixmapId uint  id  )  [slot]
 

Definition at line 234 of file kexidbimagebox.cpp.

References m_insideSetData, KexiBLOBBuffer::self(), and setData().

void KexiDBImageBox::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 210 of file kexidbimagebox.cpp.

References m_readOnly.

Referenced by setInvalidState().

void KexiDBImageBox::setScaledContents bool  set  )  [slot]
 

Sets pixmapData data for this widget.

Sets original file name of image loaded from a file.

See also:
originalFileName()

Definition at line 269 of file kexidbimagebox.cpp.

References m_scaledContents.

void KexiDBImageBox::setStoredPixmapId uint  id  )  [slot]
 

Definition at line 251 of file kexidbimagebox.cpp.

References KexiBLOBBuffer::self(), and setData().

void KexiDBImageBox::setValueInternal const QVariant &  add,
bool  removeOld,
bool  loadPixmap
[protected]
 

unused (m_valueMimeType is not available unless the px is inserted) QString type( KImageIO::typeForMime(m_valueMimeType) ); ok = KImageIO::canRead( type );

Todo:
inform about error?

Definition at line 149 of file kexidbimagebox.cpp.

References isReadOnly(), KexiDataItemInterface::m_origValue, m_pixmap, m_value, and m_valueMimeType.

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

Sets value value for a widget.

Implements KexiDataItemInterface.

Definition at line 203 of file kexidbimagebox.h.

References KexiDataItemInterface::setValueInternal().

Referenced by clear(), handleInsertFromFileAction(), and handlePasteAction().

QSize KexiDBImageBox::sizeHint  )  const [virtual]
 

Definition at line 611 of file kexidbimagebox.cpp.

References pixmap().

void KexiDBImageBox::slotUpdateActionsAvailabilityRequested bool &  valueIsNull,
bool &  valueIsReadOnly
[protected, slot]
 

Definition at line 464 of file kexidbimagebox.cpp.

References dataSource(), isReadOnly(), m_designMode, pixmap(), and valueIsNull().

Referenced by KexiDBImageBox().

uint KexiDBImageBox::storedPixmapId  )  const
 

bool KexiDBImageBox::subwidgetStretchRequired KexiDBAutoField autoField  )  const [protected, virtual]
 

Implemented for KexiSubwidgetInterface.

Reimplemented from KexiSubwidgetInterface.

Definition at line 812 of file kexidbimagebox.cpp.

void KexiDBImageBox::updateActionStrings  )  [protected]
 

Updates i18n'd action strings after datasource change.

Todo:
look at makeFirstCharacterUpperCaseInCaptions setting [bool] (see doc/dev/settings.txt)

Definition at line 538 of file kexidbimagebox.cpp.

References KexiFormDataItemInterface::columnInfo(), dataSource(), KexiFormPart::library(), m_chooser, m_designMode, m_popupMenu, popupMenuAvailable(), and KexiImageContextMenu::updateTitle().

Referenced by setColumnInfo(), and setDataSource().

void KexiDBImageBox::updatePixmap  )  [protected]
 

Definition at line 691 of file kexidbimagebox.cpp.

References KexiDBImageBox_pm, KexiDBImageBox_pmDeleter, m_designMode, and pixmap().

Referenced by paintEvent().

QVariant KexiDBImageBox::value  )  [virtual]
 

Returns:
value currently represented by this item.

Implements KexiDataItemInterface.

Definition at line 138 of file kexidbimagebox.cpp.

References dataSource(), and m_value.

bool KexiDBImageBox::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 of form is met.

Implements KexiDataItemInterface.

Definition at line 200 of file kexidbimagebox.cpp.

bool KexiDBImageBox::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.

Definition at line 194 of file kexidbimagebox.cpp.

References m_value.

Referenced by slotUpdateActionsAvailabilityRequested().

QWidget * KexiDBImageBox::widget  )  [virtual]
 

Todo:

Reimplemented from KexiFormDataItemInterface.

Definition at line 283 of file kexidbimagebox.cpp.


Member Data Documentation

int KexiDBImageBox::m_alignment [protected]
 

Definition at line 256 of file kexidbimagebox.h.

Referenced by paintEvent(), and setAlignment().

KexiDropDownButton* KexiDBImageBox::m_chooser [protected]
 

Definition at line 250 of file kexidbimagebox.h.

Referenced by eventFilter(), KexiDBImageBox(), paintEvent(), resizeEvent(), setDataSource(), setDropDownButtonVisible(), setInvalidState(), setPaletteBackgroundColor(), and updateActionStrings().

KexiBLOBBuffer::Handle KexiDBImageBox::m_data [protected]
 

Definition at line 248 of file kexidbimagebox.h.

Referenced by data(), handleAboutToSaveAsAction(), pixmap(), and setData().

bool KexiDBImageBox::m_designMode [protected]
 

Definition at line 258 of file kexidbimagebox.h.

Referenced by handlePasteAction(), KexiDBImageBox(), paintEvent(), slotUpdateActionsAvailabilityRequested(), updateActionStrings(), and updatePixmap().

bool KexiDBImageBox::m_dropDownButtonVisible [protected]
 

Definition at line 267 of file kexidbimagebox.h.

Referenced by paintEvent(), setDataSource(), and setDropDownButtonVisible().

FocusPolicy KexiDBImageBox::m_focusPolicyInternal [protected]
 

Used for focusPolicyInternal().

Definition at line 257 of file kexidbimagebox.h.

Referenced by focusPolicy(), focusPolicyInternal(), and setFocusPolicy().

bool KexiDBImageBox::m_insideSetData [protected]
 

Definition at line 262 of file kexidbimagebox.h.

Referenced by setData(), and setPixmapId().

bool KexiDBImageBox::m_keepAspectRatio [protected]
 

Definition at line 261 of file kexidbimagebox.h.

Referenced by paintEvent(), setAlignment(), and setKeepAspectRatio().

bool KexiDBImageBox::m_lineWidthChanged [protected]
 

Definition at line 264 of file kexidbimagebox.h.

Referenced by setDataSource(), and setLineWidth().

bool KexiDBImageBox::m_paintEventEnabled [protected]
 

used to disable paintEvent()

Definition at line 266 of file kexidbimagebox.h.

Referenced by paintEvent().

bool KexiDBImageBox::m_paletteBackgroundColorChanged [protected]
 

Definition at line 265 of file kexidbimagebox.h.

Referenced by setDataSource(), and setPaletteBackgroundColor().

QPixmap KexiDBImageBox::m_pixmap [protected]
 

Definition at line 244 of file kexidbimagebox.h.

Referenced by handlePasteAction(), pixmap(), and setValueInternal().

KexiImageContextMenu* KexiDBImageBox::m_popupMenu [protected]
 

Definition at line 251 of file kexidbimagebox.h.

Referenced by contextMenu(), contextMenuEvent(), insertFromFile(), KexiDBImageBox(), keyPressed(), and updateActionStrings().

bool KexiDBImageBox::m_readOnly [protected]
 

Definition at line 259 of file kexidbimagebox.h.

Referenced by isReadOnly(), and setReadOnly().