KexiBlobTableEdit Class Reference
#include <kexiblobtableedit.h>
Inheritance diagram for KexiBlobTableEdit:

Public Member Functions | |
| KexiBlobTableEdit (KexiTableViewColumn &column, QWidget *parent=0) | |
| virtual | ~KexiBlobTableEdit () |
| bool | valueIsNull () |
| bool | valueIsEmpty () |
| virtual QVariant | value () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | resize (int w, int h) |
| virtual void | showFocus (const QRect &r, bool readOnly) |
| virtual void | hideFocus () |
| virtual QSize | totalSize () const |
| virtual void | paintFocusBorders (QPainter *p, QVariant &, int x, int y, int w, int h) |
| virtual bool | handleKeyPress (QKeyEvent *ke, bool editorActive) |
| virtual bool | handleDoubleClick () |
| virtual void | handleAction (const QString &actionName) |
| virtual void | handleCopyAction (const QVariant &value, const QVariant &visibleValue) |
| virtual void | setupContents (QPainter *p, bool focused, const QVariant &val, QString &txt, int &align, int &x, int &y_offset, int &w, int &h) |
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 () |
| clears item's data, so the data will contain NULL data | |
| void | handleShowPropertiesAction () |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| initializes this editor with add value | |
| void | updateFocus (const QRect &r) |
| void | signalEditRequested () |
| void | executeCopyAction (const QByteArray &data) |
Protected Attributes | |
| Private * | d |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 83 of file kexiblobtableedit.cpp. References KexiDB::QueryColumnInfo::captionOrAliasOrName(), clear(), KexiTableViewColumn::columnInfo, d, handleCopyAction(), handleCutAction(), handleInsertFromFileAction(), handlePasteAction(), handleSaveAsAction(), handleShowPropertiesAction(), KexiDataItemInterface::m_hasFocusableWidget, slotUpdateActionsAvailabilityRequested(), and KexiImageContextMenu::updateTitle(). |
|
|
Definition at line 124 of file kexiblobtableedit.cpp. References d. |
Member Function Documentation
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 499 of file kexiblobtableedit.cpp. References KexiTableEdit::repaintRelatedCell(), setValueInternal(), and signalEditRequested(). Referenced by handleCutAction(), and KexiBlobTableEdit(). |
|
|
Implements KexiDataItemInterface. Definition at line 404 of file kexiblobtableedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 399 of file kexiblobtableedit.cpp. |
|
|
Definition at line 472 of file kexiblobtableedit.cpp. References KexiCSVExport::Clipboard. Referenced by handleCopyAction(). |
|
||||||||||||||||
|
Definition at line 435 of file kexiblobtableedit.cpp. References valueIsEmpty(). |
|
|
Handles action having standard name actionName. Action could be: "edit_cut", "edit_paste", etc. Reimplemented from KexiDataItemInterface. Definition at line 608 of file kexiblobtableedit.cpp. References d, and KexiTableEdit::editRequested(). |
|
|
Definition at line 467 of file kexiblobtableedit.cpp. References d, and executeCopyAction(). Referenced by handleCutAction(), and KexiBlobTableEdit(). |
|
||||||||||||
|
Handles copy action for value. The value is copied to clipboard in format appropriate for the editor's impementation, e.g. for image cell it can be a pixmap. visibleValue is unused here. Reimplemented after KexiTableEdit. Implements KexiTableEdit. Definition at line 602 of file kexiblobtableedit.cpp. References executeCopyAction(). |
|
|
Definition at line 459 of file kexiblobtableedit.cpp. References clear(), handleCopyAction(), and KexiDataItemInterface::isReadOnly(). Referenced by KexiBlobTableEdit(). |
|
|
Handles double click request coming from the table view.
Reimplemented from KexiTableEdit. Definition at line 596 of file kexiblobtableedit.cpp. References d. |
|
|
Definition at line 409 of file kexiblobtableedit.cpp. References KexiDataItemInterface::isReadOnly(), setValueInternal(), and signalEditRequested(). Referenced by KexiBlobTableEdit(). |
|
||||||||||||
|
Reimplemented to handle the key events. Reimplemented from KexiTableEdit. Definition at line 574 of file kexiblobtableedit.cpp. References d. |
|
|
Definition at line 480 of file kexiblobtableedit.cpp. References KexiCSVExport::Clipboard, KexiDataItemInterface::isReadOnly(), KexiTableEdit::repaintRelatedCell(), setValueInternal(), and signalEditRequested(). Referenced by KexiBlobTableEdit(). |
|
|
Definition at line 443 of file kexiblobtableedit.cpp. References d. Referenced by KexiBlobTableEdit(). |
|
|
Definition at line 507 of file kexiblobtableedit.cpp. Referenced by KexiBlobTableEdit(). |
|
|
Hides additional elements that are needed for indicating that the current cell is selected. For reimplementation. By default does nothing. Reimplemented from KexiDataItemInterface. Definition at line 550 of file kexiblobtableedit.cpp. References d. |
|
||||||||||||||||||||||||||||
|
Paints a border for the cell described by x, y, w, h on p painter. The cell's value is val (may be useful if you want to reimplement this method). Reimplemented from KexiTableEdit. Definition at line 247 of file kexiblobtableedit.cpp. References d. |
|
||||||||||||
|
Reimplemented: resizes a view(). Reimplemented from KexiTableEdit. Definition at line 524 of file kexiblobtableedit.cpp. References d, KexiTableEdit::m_rightMargin, KexiTableEdit::m_rightMarginWhenFocused, KexiTableEdit::m_scrollView, and updateFocus(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Reimplemented from KexiTableEdit. Definition at line 256 of file kexiblobtableedit.cpp. References KexiUtils::drawPixmap(). |
|
||||||||||||
|
initializes this editor with add value
Implements KexiDataItemInterface. Definition at line 140 of file kexiblobtableedit.cpp. References d, KexiDataItemInterface::m_origValue, and KexiTableEdit::setViewWidget(). Referenced by clear(), handleInsertFromFileAction(), and handlePasteAction(). |
|
||||||||||||
|
Displays additional elements that are needed for indicating that the current cell is selected. For example, combobox editor (KexiComboBoxTableEdit) moves and shows dropdown button. r is the rectangle for the cell. If readOnly is true, additional elements should be visually disabled, e.g. dropdown button of the combobox editor should be disabled. For reimplementation. By default does nothing. Reimplemented from KexiDataItemInterface. Definition at line 512 of file kexiblobtableedit.cpp. References d, and updateFocus(). |
|
|
Definition at line 567 of file kexiblobtableedit.cpp. References d, and KexiTableEdit::editRequested(). Referenced by clear(), handleInsertFromFileAction(), and handlePasteAction(). |
|
||||||||||||
|
Definition at line 560 of file kexiblobtableedit.cpp. References d, KexiTableEdit::editRequested(), KexiDataItemInterface::isReadOnly(), and valueIsNull(). Referenced by KexiBlobTableEdit(). |
|
|
Definition at line 555 of file kexiblobtableedit.cpp. References d. |
|
|
Definition at line 540 of file kexiblobtableedit.cpp. References d, and KexiTableEdit::moveChild(). Referenced by resize(), and showFocus(). |
|
|
Implements KexiDataItemInterface. Definition at line 222 of file kexiblobtableedit.cpp. References d. |
|
|
Implements KexiDataItemInterface. Definition at line 215 of file kexiblobtableedit.cpp. References d. Referenced by handleAboutToSaveAsAction(). |
|
|
Implements KexiDataItemInterface. Definition at line 208 of file kexiblobtableedit.cpp. References d. Referenced by slotUpdateActionsAvailabilityRequested(). |
Member Data Documentation
|
|
Definition at line 110 of file kexiblobtableedit.h. Referenced by handleAction(), handleCopyAction(), handleDoubleClick(), handleKeyPress(), handleSaveAsAction(), hideFocus(), KexiBlobTableEdit(), paintFocusBorders(), resize(), setValueInternal(), showFocus(), signalEditRequested(), slotUpdateActionsAvailabilityRequested(), totalSize(), updateFocus(), value(), valueIsEmpty(), valueIsNull(), and ~KexiBlobTableEdit(). |
The documentation for this class was generated from the following files:
