Kexi API Documentation (2.0 alpha)

KexiDataAwareObjectInterface Class Reference

#include <kexidataawareobjectiface.h>

Inheritance diagram for KexiDataAwareObjectInterface:

KexiFormScrollView KexiTableView KexiDataTableView List of all members.

Detailed Description

This interface is implemented by KexiTableView and KexiFormView and used by KexiDataAwareView.

If yu're implementing this interface, add KEXI_DATAAWAREOBJECTINTERFACE convenience macro just after Q_OBJECT.

You should add following code to your destructor so data is deleted:

    if (m_owner)
        delete m_data;
    m_data = 0;
This is not performed in KexiDataAwareObjectInterface because you may need to access m_data in your desctructor.

Definition at line 67 of file kexidataawareobjectiface.h.

Public Types

enum  DeletionPolicy { NoDelete = 0, AskDelete = 1, ImmediateDelete = 2, SignalDelete = 3 }

Public Member Functions

 KexiDataAwareObjectInterface ()
virtual ~KexiDataAwareObjectInterface ()
void setData (KexiTableViewData *data, bool owner=true)
KexiTableViewDatadata () const
int currentColumn () const
int currentRow () const
virtual int lastVisibleRow () const =0
KexiTableItemselectedItem () const
int rows () const
virtual int columns () const
int dataColumns () const
virtual bool isReadOnly () const
void setReadOnly (bool set)
bool isSortingEnabled () const
virtual void setSorting (int col, bool ascending=true)
virtual void setSortingEnabled (bool set)
int dataSortedColumn () const
int dataSortingOrder () const
virtual bool sort ()
void sortAscending ()
void sortDescending ()
virtual bool isInsertingEnabled () const
void setInsertingEnabled (bool set)
bool isDeleteEnabled () const
bool isEmptyRowInsertingEnabled () const
void setEmptyRowInsertingEnabled (bool set)
virtual void setFilteringEnabled (bool set)
bool isFilteringEnabled () const
virtual void setSpreadSheetMode ()
bool spreadSheetMode () const
bool rowEditing () const
DeletionPolicy deletionPolicy () const
virtual void setDeletionPolicy (DeletionPolicy policy)
virtual void deleteCurrentRow ()
virtual KexiTableIteminsertEmptyRow (int row=-1)
virtual bool beforeDeleteItem (KexiTableItem *item)
bool deleteItem (KexiTableItem *item)
void insertItem (KexiTableItem *newItem, int row=-1)
tristate deleteAllRows (bool ask=false, bool repaint=true)
virtual int rowsPerPage () const =0
virtual void selectRow (int row)
virtual void selectNextRow ()
virtual void selectPrevRow ()
virtual void selectNextPage ()
 page down action
virtual void selectPrevPage ()
 page up action
virtual void selectFirstRow ()
virtual void selectLastRow ()
virtual void addNewRecordRequested ()
virtual void clearSelection ()
virtual void setCursorPosition (int row, int col=-1, bool forceSet=false)
virtual void ensureCellVisible (int row, int col)=0
virtual void setAcceptsRowEditAfterCellAccepting (bool set)
bool acceptsRowEditAfterCellAccepting () const
bool dropsAtRowEnabled () const
virtual void setDropsAtRowEnabled (bool set)
KexiDataItemInterfaceeditor () const
virtual bool cancelRowEdit ()
virtual bool acceptRowEdit ()
virtual void removeEditor ()
virtual bool cancelEditor ()
virtual bool acceptEditor ()
 Accepst changes made to the currently active editor.
virtual void createEditor (int row, int col, const QString &addText=QString::null, bool removeOld=false)=0
 Creates editors and shows it, what usually means the beginning of a cell editing.
virtual void startEditCurrentCell (const QString &setText=QString::null)
virtual void deleteAndStartEditCurrentCell ()
KexiTableItemitemAt (int row) const
virtual KexiTableViewColumncolumn (int col)
virtual int fieldNumberForColumn (int col)
bool hasDefaultValueAt (const KexiTableViewColumn &tvcol)
const QVariant * bufferedValueAt (int col, bool useDefaultValueIfPossible=true)
int columnType (int col)
QVariant columnDefaultValue (int col) const
virtual bool columnEditable (int col)
virtual void updateCurrentCell ()=0
KexiRecordMarkerverticalHeader () const
virtual void itemChanged (KexiTableItem *, int row, int col)=0
 signals
virtual void itemChanged (KexiTableItem *, int row, int col, QVariant oldValue)=0
virtual void itemDeleteRequest (KexiTableItem *, int row, int col)=0
virtual void currentItemDeleteRequest ()=0
virtual void newItemAppendedForAfterDeletingInSpreadSheetMode ()=0
 Emitted for spreadsheet mode when an item was deleted and a new item has been appended.
virtual void dataRefreshed ()=0
virtual void dataSet (KexiTableViewData *data)=0
KPopupMenucontextMenu () const
bool contextMenuEnabled () const
void setContextMenuEnabled (bool set)
bool scrollbarToolTipsEnabled () const
void setScrollbarToolTipsEnabled (bool set)
void startEditOrToggleValue ()
bool newRowEditing () const
virtual void boolToggled ()
virtual void connectCellSelectedSignal (const QObject *receiver, const char *intIntMember)=0
virtual void connectRowEditStartedSignal (const QObject *receiver, const char *intMember)=0
virtual void connectRowEditTerminatedSignal (const QObject *receiver, const char *voidMember)=0
virtual void connectReloadActionsSignal (const QObject *receiver, const char *voidMember)=0
virtual void connectDataSetSignal (const QObject *receiver, const char *kexiTableViewDataMember)=0
virtual void connectToReloadDataSlot (const QObject *sender, const char *voidSignal)=0
virtual void slotDataDestroying ()
virtual void copySelection ()=0
 Copy current selection to a clipboard (e.g. cell).
virtual void cutSelection ()=0
 Cut current selection to a clipboard (e.g. cell).
virtual void paste ()=0
 Paste current clipboard contents (e.g. to a cell).
virtual QScrollBar * verticalScrollBar () const =0
virtual bool handleKeyPress (QKeyEvent *e, int &curRow, int &curCol, bool fullRowSelection, bool *moveToFirstField=0, bool *moveToLastField=0)

Protected Member Functions

virtual void initDataContents ()
virtual void clearColumns (bool repaint=true)
virtual void clearColumnsInternal (bool repaint)=0
virtual void addHeaderColumn (const QString &caption, const QString &description, const QIconSet &icon, int size)=0
virtual int currentLocalSortingOrder () const =0
virtual int currentLocalSortColumn () const =0
virtual void setLocalSortingOrder (int col, int order)=0
virtual void sortColumnInternal (int col, int order=0)
virtual void updateGUIAfterSorting ()=0
virtual void reloadActions ()=0
virtual void reloadData ()
virtual void itemSelected (KexiTableItem *)=0
virtual void cellSelected (int col, int row)=0
virtual void sortedColumnChanged (int col)=0
virtual void rowEditTerminated (int row)=0
virtual void clearVariables ()
virtual KexiDataItemInterfaceeditor (int col, bool ignoreMissingEditor=false)=0
virtual void editorShowFocus (int row, int col)=0
virtual void updateCell (int row, int col)=0
virtual void updateRow (int row)=0
virtual void updateWidgetContents ()=0
virtual void updateWidgetContentsSize ()=0
virtual void updateWidgetScrollBars ()=0
virtual void updateAfterCancelRowEdit ()
virtual void updateAfterAcceptRowEdit ()
virtual void slotRowRepaintRequested (KexiTableItem &item)
 Handles KexiTableViewData::rowRepaintRequested() signal.
virtual void slotAboutToDeleteRow (KexiTableItem &item, KexiDB::ResultInfo *result, bool repaint)
 Handles KexiTableViewData::aboutToDeleteRow() signal. Prepares info for slotRowDeleted().
virtual void slotRowDeleted ()
 Handles KexiTableViewData::rowDeleted() signal to repaint when needed.
virtual void slotRowInserted (KexiTableItem *item, bool repaint)
 Handles KexiTableViewData::rowInserted() signal to repaint when needed.
virtual void slotRowInserted (KexiTableItem *item, uint row, bool repaint)
 Like above, not db-aware version.
virtual void slotRowsDeleted (const QValueList< int > &)
bool hasData () const
 for sanity checks (return true if m_data is present; else: outputs warning)
virtual void selectCellInternal ()
virtual void updateAllVisibleRowsBelow (int row)
virtual void focusOutEvent (QFocusEvent *e)
 Call this from the subclass. */.
virtual void vScrollBarValueChanged (int v)
virtual void vScrollBarSliderReleased ()
virtual void scrollBarTipTimeout ()
int showErrorMessageForResult (KexiDB::ResultInfo *resultInfo)

Protected Attributes

KexiTableViewDatam_data
 data structure displayed for this object
bool m_owner: 1
 true if m_data member is owned by this object
int m_curRow
 cursor position
int m_curCol
 cursor position
KexiTableItemm_currentItem
 current data item
KexiTableViewData::Iteratorm_itemIterator
 data item's iterator
KexiTableItemm_insertItem
 item data for inserting
bool m_rowEditing: 1
 when (current or new) row is edited - changed field values are temporary stored here
bool m_newRowEditing: 1
bool m_isSortingEnabled: 1
bool m_isFilteringEnabled: 1
bool m_acceptsRowEditAfterCellAccepting: 1
bool m_inside_acceptEditor: 1
bool m_internal_acceptsRowEditAfterCellAccepting: 1
bool m_emptyRowInsertingEnabled: 1
int m_readOnly
bool m_contentsMousePressEvent_dblClick: 1
int m_insertingEnabled
bool m_initDataContentsOnShow: 1
bool m_cursorPositionSetExplicityBeforeShow: 1
bool m_spreadSheetMode: 1
bool m_dropsAtRowEnabled: 1
bool m_updateEntireRowWhenMovingToOtherRow: 1
DeletionPolicy m_deletionPolicy
KexiRecordMarkerm_verticalHeader
KexiTableViewHeaderm_horizontalHeader
KexiDataItemInterfacem_editor
KexiRecordNavigatorm_navPanel
 main navigation widget
bool m_navPanelEnabled: 1
bool m_verticalHeaderAlreadyAdded: 1
int m_dragIndicatorLine
KPopupMenum_popupMenu
bool m_contextMenuEnabled: 1
bool m_alsoUpdateNextRow: 1
 Used by updateAfterCancelRowEdit().
int m_rowWillBeDeleted
QGuardedPtr< KexiArrowTipm_errorMessagePopup
bool m_vScrollBarValueChanged_enabled: 1
bool m_scrollbarToolTipsEnabled: 1
QLabelm_scrollBarTip
 scrollbar tooltip
QTimer m_scrollBarTipTimer
 scrollbar tooltip's timer
uint m_scrollBarTipTimerCnt
 helper for timeout counting (scrollbar tooltip)


Member Enumeration Documentation

enum KexiDataAwareObjectInterface::DeletionPolicy
 

Enumeration values:
NoDelete 
AskDelete 
ImmediateDelete 
SignalDelete 

Definition at line 223 of file kexidataawareobjectiface.h.


Constructor & Destructor Documentation

KexiDataAwareObjectInterface::KexiDataAwareObjectInterface  ) 
 

Definition at line 45 of file kexidataawareobjectiface.cpp.

References AskDelete, clearVariables(), m_acceptsRowEditAfterCellAccepting, m_alsoUpdateNextRow, m_contentsMousePressEvent_dblClick, m_contextMenuEnabled, m_cursorPositionSetExplicityBeforeShow, m_data, m_deletionPolicy, m_dragIndicatorLine, m_dropsAtRowEnabled, m_emptyRowInsertingEnabled, m_horizontalHeader, m_initDataContentsOnShow, m_insertingEnabled, m_insertItem, m_inside_acceptEditor, m_internal_acceptsRowEditAfterCellAccepting, m_isFilteringEnabled, m_isSortingEnabled, m_itemIterator, m_navPanel, m_popupMenu, m_readOnly, m_rowWillBeDeleted, m_scrollBarTip, m_scrollBarTipTimerCnt, m_scrollbarToolTipsEnabled, m_spreadSheetMode, m_updateEntireRowWhenMovingToOtherRow, m_verticalHeader, m_verticalHeaderAlreadyAdded, and m_vScrollBarValueChanged_enabled.

KexiDataAwareObjectInterface::~KexiDataAwareObjectInterface  )  [virtual]
 

Definition at line 93 of file kexidataawareobjectiface.cpp.

References m_insertItem, m_itemIterator, and m_scrollBarTip.


Member Function Documentation

bool KexiDataAwareObjectInterface::acceptEditor  )  [virtual]
 

Accepst changes made to the currently active editor.

Returns:
true on success or false on failure (e.g. when editor does not exist or there is data validation error)

Reimplemented in KexiTableView.

Definition at line 900 of file kexidataawareobjectiface.cpp.

References acceptRowEdit(), KexiDB::Field::Boolean, cancelEditor(), cancelRowEdit(), column(), KexiDataItemInterface::columnInfo(), columns(), KexiTableViewColumn::field(), KexiDataItemInterface::field(), fieldNumberForColumn(), hasData(), KexiDataItemInterface::hasFocusableWidget(), itemChanged(), m_acceptsRowEditAfterCellAccepting, m_curCol, m_currentItem, m_curRow, m_data, m_editor, m_errorMessagePopup, m_inside_acceptEditor, m_internal_acceptsRowEditAfterCellAccepting, m_newRowEditing, Kexi::msgYouCanImproveData(), removeEditor(), KexiTableViewData::result(), KexiTableViewData::rowEditBuffer(), setCursorPosition(), KexiDataItemInterface::setFocus(), showErrorMessageForResult(), KexiDataItemInterface::showWidget(), KexiTableViewData::updateRowEditBufferRef(), KexiTableViewColumn::validator(), KexiDataItemInterface::value(), KexiDataItemInterface::valueChanged(), KexiDataItemInterface::valueIsEmpty(), KexiDataItemInterface::valueIsNull(), KexiDataItemInterface::valueIsValid(), KexiTableViewColumn::visibleLookupColumnInfo, and KexiDataItemInterface::visibleValue().

Referenced by KexiTableView::acceptEditor(), acceptRowEdit(), boolToggled(), deleteAndStartEditCurrentCell(), and setCursorPosition().

bool KexiDataAwareObjectInterface::acceptRowEdit  )  [virtual]
 

Accepts row editing. All changes made to the editing row during this current session will be accepted (saved).

Returns:
true if accepting was successful, false otherwise (e.g. when current row contain data that does not meet given constraints).

Reimplemented in KexiTableView.

Definition at line 688 of file kexidataawareobjectiface.cpp.

References acceptEditor(), cancelRowEdit(), columns(), currentColumn(), KexiTableItem::debug(), m_currentItem, m_curRow, m_data, m_editor, m_inside_acceptEditor, m_internal_acceptsRowEditAfterCellAccepting, m_itemIterator, m_navPanel, m_newRowEditing, m_rowEditing, m_verticalHeader, KexiTableViewData::result(), KexiTableViewData::rowEditBuffer(), rowEditTerminated(), rows(), KexiTableViewData::saveNewRow(), KexiTableViewData::saveRowChanges(), setCursorPosition(), KexiRecordNavigator::setRecordCount(), showErrorMessageForResult(), startEditCurrentCell(), and updateAfterAcceptRowEdit().

Referenced by acceptEditor(), KexiTableView::acceptRowEdit(), KexiDataAwareView::acceptRowEdit(), addNewRecordRequested(), KexiFormView::beforeSwitchTo(), deleteCurrentRow(), insertEmptyRow(), reloadData(), setCursorPosition(), and sort().

bool KexiDataAwareObjectInterface::acceptsRowEditAfterCellAccepting  )  const [inline]
 

Returns:
true, if this object automatically accepts row editing (using acceptRowEdit()) on accepting any cell's edit (i.e. after acceptEditor()). By default this flag is set to false. Not that if the query for this table has given constraints defined, like NOT NULL / NOT EMPTY for more than one field - editing a record would be impossible for the flag set to true, because of constraints violation. However, setting this flag to true can be useful especially for not-db-aware data set (it's used e.g. in Kexi Alter Table's field editor).

Definition at line 319 of file kexidataawareobjectiface.h.

virtual void KexiDataAwareObjectInterface::addHeaderColumn const QString caption,
const QString description,
const QIconSet &  icon,
int  size
[protected, pure virtual]
 

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by setData().

void KexiDataAwareObjectInterface::addNewRecordRequested  )  [virtual]
 

Reimplemented in KexiFormScrollView, and KexiTableView.

Definition at line 1641 of file kexidataawareobjectiface.cpp.

References acceptRowEdit(), isInsertingEnabled(), m_editor, m_rowEditing, rows(), selectRow(), KexiDataItemInterface::setFocus(), and startEditCurrentCell().

Referenced by KexiTableView::addNewRecordRequested(), KexiFormScrollView::addNewRecordRequested(), and KexiDataAwareView::slotGoToNewRow().

bool KexiDataAwareObjectInterface::beforeDeleteItem KexiTableItem item  )  [virtual]
 

For reimplementation: called by deleteItem(). If returns false, deleting is aborted. Default implementation just returns true.

Definition at line 1514 of file kexidataawareobjectiface.cpp.

Referenced by deleteItem().

void KexiDataAwareObjectInterface::boolToggled  )  [virtual]
 

Reaction on toggling a boolean value of a cell: we're starting to edit the cell and inverting it's state.

Definition at line 1618 of file kexidataawareobjectiface.cpp.

References acceptEditor(), KexiDataItemInterface::clickedOnContents(), m_curCol, m_curRow, m_editor, startEditCurrentCell(), and updateCell().

Referenced by KexiTableView::contentsMousePressEvent(), KexiTableView::keyPressEvent(), and startEditOrToggleValue().

const QVariant * KexiDataAwareObjectInterface::bufferedValueAt int  col,
bool  useDefaultValueIfPossible = true
 

Definition at line 1568 of file kexidataawareobjectiface.cpp.

References column(), KexiTableViewColumn::columnInfo, KexiTableViewColumn::field(), fieldNumberForColumn(), KexiTableViewColumn::isDBAware, m_currentItem, m_data, m_rowEditing, and KexiTableViewData::rowEditBuffer().

Referenced by KexiTableView::createEditor(), and KexiTableView::paintCell().

bool KexiDataAwareObjectInterface::cancelEditor  )  [virtual]
 

Cancels changes made to the currently active editor. Reverts the editor's value to old one.

Returns:
true on success or false on failure (e.g. when editor does not exist)

Reimplemented in KexiFormScrollView, and KexiTableView.

Definition at line 875 of file kexidataawareobjectiface.cpp.

References m_editor, m_errorMessagePopup, and removeEditor().

Referenced by acceptEditor(), KexiTableView::cancelEditor(), KexiFormScrollView::cancelEditor(), and cancelRowEdit().

bool KexiDataAwareObjectInterface::cancelRowEdit  )  [virtual]
 

Cancels row editing All changes made to the editing row during this current session will be undone.

Returns:
true on success or false on failure (e.g. when editor does not exist)

Reimplemented in KexiTableView.

Definition at line 810 of file kexidataawareobjectiface.cpp.

References cancelEditor(), KexiTableViewData::clearRowEditBuffer(), hasData(), kexidbg, m_alsoUpdateNextRow, m_currentItem, m_curRow, m_data, m_insertItem, m_newRowEditing, m_rowEditing, m_verticalHeader, KexiTableViewData::removeLast(), rowEditTerminated(), KexiRecordMarker::setEditRow(), updateAfterCancelRowEdit(), updateWidgetContents(), and updateWidgetContentsSize().

Referenced by acceptEditor(), acceptRowEdit(), KexiTableView::cancelRowEdit(), KexiDataAwareView::cancelRowEdit(), clearColumns(), deleteAllRows(), deleteCurrentRow(), and setData().

virtual void KexiDataAwareObjectInterface::cellSelected int  col,
int  row
[protected, pure virtual]
 

for implementation as a signal

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by setCursorPosition().

void KexiDataAwareObjectInterface::clearColumns bool  repaint = true  )  [protected, virtual]
 

Clears columns information and thus all internal table data and its visible representation. Repaints widget if repaint is true.

Definition at line 1361 of file kexidataawareobjectiface.cpp.

References cancelRowEdit(), clearColumnsInternal(), KexiTableViewData::clearInternal(), m_data, and updateWidgetContents().

Referenced by KexiDataTableView::setData().

virtual void KexiDataAwareObjectInterface::clearColumnsInternal bool  repaint  )  [protected, pure virtual]
 

Called by clearColumns() to clear internals of the object. For example, KexiTableView removes contents of it's horizontal header.

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by clearColumns(), and setData().

void KexiDataAwareObjectInterface::clearSelection  )  [virtual]
 

Clears current selection. Current row and column will be now unspecified: currentRow(), currentColumn() will return -1, and selectedItem() will return null.

Definition at line 484 of file kexidataawareobjectiface.cpp.

References m_curCol, m_currentItem, m_curRow, m_navPanel, KexiRecordNavigator::setCurrentRecordNumber(), and updateRow().

void KexiDataAwareObjectInterface::clearVariables  )  [protected, virtual]
 

Clear temporary members like the pointer to current editor. If you reimplement this method, don't forget to call this one.

Reimplemented in KexiTableView.

Definition at line 102 of file kexidataawareobjectiface.cpp.

References m_curCol, m_currentItem, m_curRow, m_editor, m_newRowEditing, and m_rowEditing.

Referenced by KexiTableView::clearVariables(), KexiDataAwareObjectInterface(), reloadData(), and setData().

KexiTableViewColumn * KexiDataAwareObjectInterface::column int  col  )  [virtual]
 

Returns:
column information for column number col. Default implementation just returns column # col, but for Kexi Forms column data corresponding to widget number is used here (see KexiFormScrollView::fieldNumberForColumn()).

Reimplemented in KexiFormScrollView.

Definition at line 1555 of file kexidataawareobjectiface.cpp.

References KexiTableViewData::column(), and m_data.

Referenced by acceptEditor(), bufferedValueAt(), columnEditable(), columnType(), and KexiTableViewCellToolTip::maybeTip().

QVariant KexiDataAwareObjectInterface::columnDefaultValue int  col  )  const
 

Returns:
default value for column col

Definition at line 1452 of file kexidataawareobjectiface.cpp.

bool KexiDataAwareObjectInterface::columnEditable int  col  )  [virtual]
 

Returns:
true is column col is editable. Default implementation takes information about 'readOnly' flag from data member. Within forms, this is reimplemented for checking 'readOnly' flag from a widget ('readOnly' flag from data member is still checked though).

Reimplemented in KexiFormScrollView.

Definition at line 1432 of file kexidataawareobjectiface.cpp.

References column(), KexiTableViewColumn::isReadOnly(), and m_data.

Referenced by KexiFormScrollView::columnEditable(), KexiTableView::contentsMouseDoubleClickEvent(), KexiTableView::contentsMousePressEvent(), deleteAndStartEditCurrentCell(), KexiTableView::keyPressEvent(), startEditCurrentCell(), and startEditOrToggleValue().

virtual int KexiDataAwareObjectInterface::columns  )  const [inline, virtual]
 

Returns:
number of visible columns in this view. By default returns dataColumns(), what is proper table view. In case of form view, there can be a number of duplicated columns defined (data-aware widgets, see KexiFormScrollView::columns()), so columns() can return greater number than dataColumns().

Reimplemented in KexiFormScrollView.

Definition at line 106 of file kexidataawareobjectiface.h.

Referenced by acceptEditor(), acceptRowEdit(), KexiTableView::adjustColumnWidthToContents(), KexiTableView::drawContents(), KexiTableView::editor(), handleKeyPress(), KexiTableView::keyPressEvent(), KexiTableView::minimumSizeHint(), KexiTableView::paintRow(), KexiTableView::print(), reloadData(), KexiTableView::setColumnWidth(), setCursorPosition(), and KexiTableView::tableSize().

int KexiDataAwareObjectInterface::columnType int  col  ) 
 

Returns:
a type of column col - one of KexiDB::Field::Type

Definition at line 1426 of file kexidataawareobjectiface.cpp.

References column(), KexiTableViewColumn::field(), KexiDB::Field::InvalidType, and m_data.

Referenced by KexiTableView::adjustColumnWidthToContents(), KexiTableView::contentsMouseDoubleClickEvent(), KexiTableView::contentsMousePressEvent(), KexiTableView::keyPressEvent(), and startEditOrToggleValue().

virtual void KexiDataAwareObjectInterface::connectCellSelectedSignal const QObject *  receiver,
const char *  intIntMember
[pure virtual]
 

Referenced by KexiDataAwareView::init(), and KexiDataAwarePropertySet::KexiDataAwarePropertySet().

virtual void KexiDataAwareObjectInterface::connectDataSetSignal const QObject *  receiver,
const char *  kexiTableViewDataMember
[pure virtual]
 

Referenced by KexiDataAwarePropertySet::KexiDataAwarePropertySet().

virtual void KexiDataAwareObjectInterface::connectReloadActionsSignal const QObject *  receiver,
const char *  voidMember
[pure virtual]
 

Referenced by KexiDataAwareView::init().

virtual void KexiDataAwareObjectInterface::connectRowEditStartedSignal const QObject *  receiver,
const char *  intMember
[pure virtual]
 

Referenced by KexiDataAwareView::init().

virtual void KexiDataAwareObjectInterface::connectRowEditTerminatedSignal const QObject *  receiver,
const char *  voidMember
[pure virtual]
 

Referenced by KexiDataAwareView::init().

virtual void KexiDataAwareObjectInterface::connectToReloadDataSlot const QObject *  sender,
const char *  voidSignal
[pure virtual]
 

Referenced by setData().

KPopupMenu* KexiDataAwareObjectInterface::contextMenu  )  const [inline]
 

Returns:
a pointer to context menu. This can be used to plug some actions there.

Definition at line 421 of file kexidataawareobjectiface.h.

Referenced by KexiTableDesignerView::KexiTableDesignerView(), and KexiDataAwareView::reloadActions().

bool KexiDataAwareObjectInterface::contextMenuEnabled  )  const [inline]
 

Returns:
true if the context menu is enabled (visible) for the view. True by default.

Definition at line 425 of file kexidataawareobjectiface.h.

virtual void KexiDataAwareObjectInterface::copySelection  )  [pure virtual]
 

Copy current selection to a clipboard (e.g. cell).

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by KexiDataAwareView::copySelection().

virtual void KexiDataAwareObjectInterface::createEditor int  row,
int  col,
const QString addText = QString::null,
bool  removeOld = false
[pure virtual]
 

Creates editors and shows it, what usually means the beginning of a cell editing.

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by deleteAndStartEditCurrentCell(), and startEditCurrentCell().

int KexiDataAwareObjectInterface::currentColumn  )  const [inline]
 

Returns:
currently selected column number or -1.

Definition at line 85 of file kexidataawareobjectiface.h.

Referenced by acceptRowEdit(), KexiMacro::NavigateAction::activate(), KexiTableView::adjustColumnWidthToContents(), KexiTableViewCellToolTip::maybeTip(), KexiDataAwareView::reloadActions(), sortAscending(), and sortDescending().

virtual void KexiDataAwareObjectInterface::currentItemDeleteRequest  )  [pure virtual]
 

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by deleteCurrentRow().

virtual int KexiDataAwareObjectInterface::currentLocalSortColumn  )  const [protected, pure virtual]
 

Implemented in KexiFormScrollView, and KexiTableView.

virtual int KexiDataAwareObjectInterface::currentLocalSortingOrder  )  const [protected, pure virtual]
 

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by sortColumnInternal().

int KexiDataAwareObjectInterface::currentRow  )  const [inline]
 

Returns:
currently selected row number or -1.

Definition at line 88 of file kexidataawareobjectiface.h.

Referenced by KexiMacro::NavigateAction::activate(), KexiDataAwarePropertySet::currentPropertySet(), KexiDataAwarePropertySet::currentRow(), KexiDataAwareView::reloadActions(), KexiDataAwarePropertySet::removeCurrentPropertySet(), KFormDesigner::ConnectionDialog::removeItem(), KFormDesigner::ConnectionDialog::setStatusError(), KFormDesigner::ConnectionDialog::setStatusOk(), KexiDataAwarePropertySet::slotRowDeleted(), KexiTableDesignerView::slotRowInserted(), and KexiTableDesignerView::switchPrimaryKey().

virtual void KexiDataAwareObjectInterface::cutSelection  )  [pure virtual]
 

Cut current selection to a clipboard (e.g. cell).

Implemented in KexiFormScrollView, and KexiTableView.

Referenced by KexiDataAwareView::cutSelection().