#include <kexitableview.h>
|
| enum | ScrollDirection { ScrollUp
, ScrollDown
, ScrollLeft
, ScrollRight
} |
| enum | DeletionPolicy { NoDelete = 0
, AskDelete = 1
, ImmediateDelete = 2
, SignalDelete = 3
} |
|
|
virtual void | dataSet (KexiTableViewData *data) |
|
virtual void | itemSelected (KexiTableItem *) |
|
virtual void | cellSelected (int col, int row) |
|
void | itemReturnPressed (KexiTableItem *, int row, int col) |
|
void | itemDblClicked (KexiTableItem *, int row, int col) |
|
void | itemMouseReleased (KexiTableItem *, int row, int col) |
|
void | dragOverRow (KexiTableItem *item, int row, TQDragMoveEvent *e) |
|
void | droppedAtRow (KexiTableItem *item, int row, TQDropEvent *e, KexiTableItem *&newItem) |
| virtual void | dataRefreshed () |
|
virtual void | itemChanged (KexiTableItem *, int row, int col) |
|
virtual void | itemChanged (KexiTableItem *, int row, int col, TQVariant oldValue) |
|
virtual void | itemDeleteRequest (KexiTableItem *, int row, int col) |
|
virtual void | currentItemDeleteRequest () |
| virtual void | newItemAppendedForAfterDeletingInSpreadSheetMode () |
|
void | sortedColumnChanged (int col) |
| void | rowEditStarted (int row) |
| void | rowEditTerminated (int row) |
| void | reloadActions () |
|
| | KexiTableView (KexiTableViewData *data=0, TQWidget *parent=0, const char *name=0) |
| const Appearance & | appearance () const |
| void | setAppearance (const Appearance &a) |
| TQString | columnCaption (int colNum) const |
| KexiDB::Field * | field (int colNum) const |
| virtual void | setSpreadSheetMode () |
| virtual int | rowsPerPage () const |
| TQRect | cellGeometry (int row, int col) const |
| int | columnWidth (int col) const |
| int | rowHeight () const |
| int | columnPos (int col) const |
| int | rowPos (int row) const |
| int | columnAt (int pos) const |
| int | rowAt (int pos, bool ignoreEnd=false) const |
| virtual int | lastVisibleRow () const |
| virtual void | updateCell (int row, int col) |
| virtual void | updateCurrentCell () |
| virtual void | updateRow (int row) |
| bool | editableOnDoubleClick () const |
| void | setEditableOnDoubleClick (bool set) |
| bool | verticalHeaderVisible () const |
| void | setVerticalHeaderVisible (bool set) |
| bool | horizontalHeaderVisible () const |
| void | setHorizontalHeaderVisible (bool set) |
| void | print (KPrinter &printer) |
| virtual TQSizePolicy | sizePolicy () const |
| virtual TQSize | sizeHint () const |
| virtual TQSize | minimumSizeHint () const |
| void | setFont (const TQFont &f) |
| virtual TQSize | tableSize () const |
| void | emitSelected () |
| void | triggerUpdate () |
| virtual bool | eventFilter (TQObject *o, TQEvent *e) |
| int | highlightedRow () const |
| KexiTableItem * | highlightedItem () const |
| virtual TQScrollBar * | verticalScrollBar () const |
| void | plugSharedAction (TDEAction *a) |
| void | setData (KexiTableViewData *data, bool owner=true) |
| KexiTableViewData * | data () const |
| int | currentColumn () const |
| int | currentRow () const |
| KexiTableItem * | selectedItem () 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 |
| bool | spreadSheetMode () const |
| bool | rowEditing () const |
| DeletionPolicy | deletionPolicy () const |
| virtual void | setDeletionPolicy (DeletionPolicy policy) |
| virtual void | deleteCurrentRow () |
| virtual KexiTableItem * | insertEmptyRow (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 void | selectRow (int row) |
| virtual void | selectNextRow () |
| virtual void | selectPrevRow () |
| virtual void | selectNextPage () |
| virtual void | selectPrevPage () |
| virtual void | selectFirstRow () |
| virtual void | selectLastRow () |
| 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) |
| KexiDataItemInterface * | editor () const |
| virtual bool | cancelRowEdit () |
| virtual bool | acceptRowEdit () |
| virtual bool | cancelEditor () |
| virtual bool | acceptEditor () |
| virtual void | startEditCurrentCell (const TQString &setText=TQString()) |
| virtual void | deleteAndStartEditCurrentCell () |
| KexiTableItem * | itemAt (int row) const |
| virtual KexiTableViewColumn * | column (int col) |
| virtual int | fieldNumberForColumn (int col) |
| bool | hasDefaultValueAt (const KexiTableViewColumn &tvcol) |
| const TQVariant * | bufferedValueAt (int col, bool useDefaultValueIfPossible=true) |
| int | columnType (int col) |
| TQVariant | columnDefaultValue (int col) const |
| virtual bool | columnEditable (int col) |
| KexiRecordMarker * | verticalHeader () const |
| virtual void | itemChanged (KexiTableItem *, int row, int col)=0 |
|
virtual void | itemChanged (KexiTableItem *, int row, int col, TQVariant oldValue)=0 |
|
virtual void | itemDeleteRequest (KexiTableItem *, int row, int col)=0 |
|
virtual void | currentItemDeleteRequest ()=0 |
| virtual void | newItemAppendedForAfterDeletingInSpreadSheetMode ()=0 |
| virtual void | dataRefreshed ()=0 |
|
virtual void | dataSet (KexiTableViewData *data)=0 |
| TDEPopupMenu * | contextMenu () 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 TQObject *receiver, const char *intIntMember)=0 |
|
virtual void | connectRowEditStartedSignal (const TQObject *receiver, const char *intMember)=0 |
|
virtual void | connectRowEditTerminatedSignal (const TQObject *receiver, const char *voidMember)=0 |
|
virtual void | connectReloadActionsSignal (const TQObject *receiver, const char *voidMember)=0 |
|
virtual void | connectDataSetSignal (const TQObject *receiver, const char *kexiTableViewDataMember)=0 |
|
virtual void | connectToReloadDataSlot (const TQObject *sender, const char *voidSignal)=0 |
| virtual void | slotDataDestroying () |
| virtual tristate | find (const TQVariant &valueToFind, const KexiSearchAndReplaceViewInterface::Options &options, bool next) |
| virtual tristate | findNextAndReplace (const TQVariant &valueToFind, const TQVariant &replacement, const KexiSearchAndReplaceViewInterface::Options &options, bool replaceAll) |
| virtual bool | handleKeyPress (TQKeyEvent *e, int &curRow, int &curCol, bool fullRowSelection, bool *moveToFirstField=0, bool *moveToLastField=0) |
|
| void | slotSettingsChanged (int category) |
| virtual void | slotDataDestroying () |
| virtual void | slotRowsDeleted (const TQValueList< int > &) |
| void | slotColumnWidthChanged (int col, int os, int ns) |
| void | slotSectionHandleDoubleClicked (int section) |
| void | slotUpdate () |
| virtual void | sortColumnInternal (int col, int order=0) |
| void | slotAutoScroll () |
| void | slotTopHeaderSizeChange (int section, int oldSize, int newSize) |
| void | slotEditRequested () |
| virtual void | reloadData () |
| virtual void | slotRowRepaintRequested (KexiTableItem &item) |
| virtual void | slotAboutToDeleteRow (KexiTableItem &item, KexiDB::ResultInfo *result, bool repaint) |
| virtual void | slotRowDeleted () |
| virtual void | slotRowInserted (KexiTableItem *item, bool repaint) |
| virtual void | slotRowInserted (KexiTableItem *item, uint row, bool repaint) |
| virtual void | vScrollBarValueChanged (int v) |
| virtual void | vScrollBarSliderReleased () |
| virtual void | scrollBarTipTimeout () |
|
| virtual void | initDataContents () |
| virtual void | updateWidgetContentsSize () |
| virtual void | clearVariables () |
| virtual int | currentLocalSortingOrder () const |
| virtual int | currentLocalSortColumn () const |
| virtual void | setLocalSortingOrder (int col, int order) |
| virtual void | updateGUIAfterSorting () |
| virtual void | updateWidgetScrollBars () |
| virtual void | addHeaderColumn (const TQString &caption, const TQString &description, const TQIconSet &icon, int size) |
| bool | isDefaultValueDisplayed (KexiTableItem *item, int col, TQVariant *value=0) |
| void | drawContents (TQPainter *p, int cx, int cy, int cw, int ch) |
| void | createBuffer (int width, int height) |
| void | paintCell (TQPainter *p, KexiTableItem *item, int col, int row, const TQRect &cr, bool print=false) |
| void | paintEmptyArea (TQPainter *p, int cx, int cy, int cw, int ch) |
| void | updateGeometries () |
| TQPoint | contentsToViewport2 (const TQPoint &p) |
| void | contentsToViewport2 (int x, int y, int &vx, int &vy) |
| TQPoint | viewportToContents2 (const TQPoint &vp) |
| virtual void | contentsMousePressEvent (TQMouseEvent *e) |
| virtual void | contentsMouseReleaseEvent (TQMouseEvent *e) |
| bool | handleContentsMousePressOrRelease (TQMouseEvent *e, bool release) |
| virtual void | contentsMouseMoveEvent (TQMouseEvent *e) |
| virtual void | contentsMouseDoubleClickEvent (TQMouseEvent *e) |
| virtual void | keyPressEvent (TQKeyEvent *e) |
| virtual void | focusInEvent (TQFocusEvent *e) |
| virtual void | focusOutEvent (TQFocusEvent *e) |
| virtual void | resizeEvent (TQResizeEvent *e) |
| virtual void | viewportResizeEvent (TQResizeEvent *e) |
| virtual void | showEvent (TQShowEvent *e) |
| virtual void | contentsDragMoveEvent (TQDragMoveEvent *e) |
| virtual void | contentsDropEvent (TQDropEvent *e) |
| virtual void | viewportDragLeaveEvent (TQDragLeaveEvent *e) |
| virtual void | paletteChange (const TQPalette &oldPalette) |
| virtual KexiDataItemInterface * | editor (int col, bool ignoreMissingEditor=false) |
| KexiTableEdit * | tableEditorWidget (int col, bool ignoreMissingEditor=false) |
| virtual void | editorShowFocus (int row, int col) |
| virtual void | createEditor (int row, int col, const TQString &addText=TQString(), bool removeOld=false) |
| bool | focusNextPrevChild (bool next) |
| bool | shortCutPressed (TQKeyEvent *e, const TQCString &action_name) |
| void | showContextMenu (const TQPoint &pos=TQPoint(-1,-1)) |
| void | paintRow (KexiTableItem *item, TQPainter *pb, int r, int rowp, int cx, int cy, int colfirst, int collast, int maxwc) |
| virtual void | setHBarGeometry (TQScrollBar &hbar, int x, int y, int w, int h) |
| void | setupNavigator () |
| int | validRowNumber (const TQString &text) |
| virtual void | removeEditor () |
| void | updateFonts (bool repaint=false) |
| void | setBottomMarginInternal (int pixels) |
| virtual void | updateWidgetContents () |
| virtual void | moveToRecordRequested (uint r) |
| virtual void | moveToLastRecordRequested () |
| virtual void | moveToPreviousRecordRequested () |
| virtual void | moveToNextRecordRequested () |
| virtual void | moveToFirstRecordRequested () |
| virtual void | addNewRecordRequested () |
| virtual void | copySelection () |
| virtual void | cutSelection () |
| virtual void | paste () |
| virtual void | updateAllVisibleRowsBelow (int row) |
| void | updateAfterCancelRowEdit () |
| void | updateAfterAcceptRowEdit () |
| bool | getVisibleLookupValue (TQVariant &cellValue, KexiTableEdit *edit, KexiTableItem *item, KexiTableViewColumn *tvcol) const |
| virtual void | clearColumns (bool repaint=true) |
| virtual void | clearColumnsInternal (bool repaint)=0 |
| virtual void | sortColumnInternal (int col, int order=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 | slotRowRepaintRequested (KexiTableItem &item) |
| virtual void | slotAboutToDeleteRow (KexiTableItem &item, KexiDB::ResultInfo *result, bool repaint) |
| virtual void | slotRowDeleted () |
| virtual void | slotRowInserted (KexiTableItem *item, bool repaint) |
| virtual void | slotRowInserted (KexiTableItem *item, uint row, bool repaint) |
| virtual void | slotRowsDeleted (const TQValueList< int > &) |
| bool | hasData () const |
| virtual void | selectCellInternal () |
| virtual void | vScrollBarValueChanged (int v) |
| virtual void | vScrollBarSliderReleased () |
| virtual void | scrollBarTipTimeout () |
| int | showErrorMessageForResult (KexiDB::ResultInfo *resultInfo) |
| void | updateIndicesForVisibleValues () |
KexiTableView class provides a widget for displaying data in a tabular view.
- See also
- KexiFormScrollView
Definition at line 66 of file kexitableview.h.
◆ ScrollDirection
| enum KexiTableView::ScrollDirection |
◆ KexiTableView()
| KexiTableView::KexiTableView |
( |
KexiTableViewData * | data = 0, |
|
|
TQWidget * | parent = 0, |
|
|
const char * | name = 0 ) |
◆ ~KexiTableView()
| KexiTableView::~KexiTableView |
( |
| ) |
|
|
virtual |
◆ acceptEditor
| virtual bool KexiTableView::acceptEditor |
( |
| ) |
|
|
inlinevirtualslot |
◆ acceptRowEdit
| virtual bool KexiTableView::acceptRowEdit |
( |
| ) |
|
|
inlinevirtualslot |
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).
Definition at line 346 of file kexitableview.h.
◆ addHeaderColumn()
| void KexiTableView::addHeaderColumn |
( |
const TQString & | caption, |
|
|
const TQString & | description, |
|
|
const TQIconSet & | icon, |
|
|
int | size ) |
|
protectedvirtual |
◆ addNewRecordRequested()
| virtual void KexiTableView::addNewRecordRequested |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ adjustColumnWidthToContents
| void KexiTableView::adjustColumnWidthToContents |
( |
int | colNum = -1 | ) |
|
|
slot |
Adjusts colNum column's width to its (current) contents. If colNum == -1, all columns' width is adjusted.
- Todo
- js: this is NOT EFFECTIVE for big data sets!!!!
Definition at line 2151 of file kexitableview.cpp.
◆ adjustHorizontalHeaderSize
| void KexiTableView::adjustHorizontalHeaderSize |
( |
| ) |
|
|
slot |
Adjusts the size of the sections to fit the size of the horizontal header as completely as possible. Only sections for which column stretch is enabled will be resized. - See also
- setColumnStretchEnabled() TQHeader::adjustHeaderSize()
Definition at line 2245 of file kexitableview.cpp.
◆ appearance()
◆ cancelEditor
| virtual bool KexiTableView::cancelEditor |
( |
| ) |
|
|
inlinevirtualslot |
◆ cancelRowEdit
| virtual bool KexiTableView::cancelRowEdit |
( |
| ) |
|
|
inlinevirtualslot |
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)
Definition at line 340 of file kexitableview.h.
◆ cellGeometry()
| TQRect KexiTableView::cellGeometry |
( |
int | row, |
|
|
int | col ) const |
◆ clearColumnsInternal
| void KexiTableView::clearColumnsInternal |
( |
bool | repaint | ) |
|
|
virtualslot |
◆ clearHighlightedRow
| void KexiTableView::clearHighlightedRow |
( |
| ) |
|
|
inlineslot |
Sets no row that will be highlighted. Equivalent to setHighlightedRow(-1).
Definition at line 298 of file kexitableview.h.
◆ clearVariables()
| void KexiTableView::clearVariables |
( |
| ) |
|
|
protectedvirtual |
◆ columnAt()
| int KexiTableView::columnAt |
( |
int | pos | ) |
const |
◆ columnCaption()
| TQString KexiTableView::columnCaption |
( |
int | colNum | ) |
const |
◆ columnPos()
| int KexiTableView::columnPos |
( |
int | col | ) |
const |
◆ columnWidth()
| int KexiTableView::columnWidth |
( |
int | col | ) |
const |
◆ contentsDragMoveEvent()
| void KexiTableView::contentsDragMoveEvent |
( |
TQDragMoveEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsDropEvent()
| void KexiTableView::contentsDropEvent |
( |
TQDropEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseDoubleClickEvent()
| void KexiTableView::contentsMouseDoubleClickEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseMoveEvent()
| void KexiTableView::contentsMouseMoveEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMousePressEvent()
| void KexiTableView::contentsMousePressEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsMouseReleaseEvent()
| void KexiTableView::contentsMouseReleaseEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ contentsToViewport2() [1/2]
| TQPoint KexiTableView::contentsToViewport2 |
( |
const TQPoint & | p | ) |
|
|
protected |
◆ contentsToViewport2() [2/2]
| void KexiTableView::contentsToViewport2 |
( |
int | x, |
|
|
int | y, |
|
|
int & | vx, |
|
|
int & | vy ) |
|
protected |
◆ copySelection()
| void KexiTableView::copySelection |
( |
| ) |
|
|
protectedvirtual |
◆ createBuffer()
| void KexiTableView::createBuffer |
( |
int | width, |
|
|
int | height ) |
|
protected |
◆ createEditor()
| void KexiTableView::createEditor |
( |
int | row, |
|
|
int | col, |
|
|
const TQString & | addText = TQString(), |
|
|
bool | removeOld = false ) |
|
protectedvirtual |
◆ currentLocalSortColumn()
| int KexiTableView::currentLocalSortColumn |
( |
| ) |
const |
|
protectedvirtual |
◆ currentLocalSortingOrder()
| int KexiTableView::currentLocalSortingOrder |
( |
| ) |
const |
|
protectedvirtual |
◆ cutSelection()
| void KexiTableView::cutSelection |
( |
| ) |
|
|
protectedvirtual |
◆ dataRefreshed
| virtual void KexiTableView::dataRefreshed |
( |
| ) |
|
|
virtualsignal |
◆ deleteAndStartEditCurrentCell
| virtual void KexiTableView::deleteAndStartEditCurrentCell |
( |
| ) |
|
|
inlinevirtualslot |
Deletes currently selected cell's contents, if allowed. In most cases delete is not accepted immediately but "row editing" mode is just started.
Definition at line 334 of file kexitableview.h.
◆ deleteCurrentRow
| virtual void KexiTableView::deleteCurrentRow |
( |
| ) |
|
|
inlinevirtualslot |
Deletes currently selected record; does nothing if no record is currently selected. If record is in edit mode, editing is cancelled before deleting.
Definition at line 311 of file kexitableview.h.
◆ drawContents()
| void KexiTableView::drawContents |
( |
TQPainter * | p, |
|
|
int | cx, |
|
|
int | cy, |
|
|
int | cw, |
|
|
int | ch ) |
|
protected |
◆ editableOnDoubleClick()
| bool KexiTableView::editableOnDoubleClick |
( |
| ) |
const |
◆ editor()
◆ editorShowFocus()
| void KexiTableView::editorShowFocus |
( |
int | row, |
|
|
int | col ) |
|
protectedvirtual |
◆ emitSelected()
| void KexiTableView::emitSelected |
( |
| ) |
|
◆ ensureCellVisible
| void KexiTableView::ensureCellVisible |
( |
int | row, |
|
|
int | col ) |
|
virtualslot |
Ensures that cell at row and col is visible. If col is -1, current column number is used. row and col (if not -1) must be between 0 and rows() (or cols() accordingly).
Definition at line 1966 of file kexitableview.cpp.
◆ eventFilter()
| bool KexiTableView::eventFilter |
( |
TQObject * | o, |
|
|
TQEvent * | e ) |
|
virtual |
◆ field()
Convenience function. - Returns
- field object that define column colNum or NULL if there is no such column
Definition at line 2144 of file kexitableview.cpp.
◆ focusInEvent()
| void KexiTableView::focusInEvent |
( |
TQFocusEvent * | e | ) |
|
|
protectedvirtual |
◆ focusNextPrevChild()
| bool KexiTableView::focusNextPrevChild |
( |
bool | next | ) |
|
|
protected |
◆ focusOutEvent()
| void KexiTableView::focusOutEvent |
( |
TQFocusEvent * | e | ) |
|
|
protectedvirtual |
◆ getVisibleLookupValue()
Sets cellValue if there is a lookup value for the cell item. Used in KexiTableView::paintCell() and KexiTableViewCellToolTip::maybeTip() - Returns
- true is cellValue has been found.
useDefaultValueIfPossible
Definition at line 2010 of file kexitableview.cpp.
◆ handleContentsMousePressOrRelease()
| bool KexiTableView::handleContentsMousePressOrRelease |
( |
TQMouseEvent * | e, |
|
|
bool | release ) |
|
protected |
◆ highlightedItem()
| KexiTableItem * KexiTableView::highlightedItem |
( |
| ) |
const |
◆ highlightedRow()
| int KexiTableView::highlightedRow |
( |
| ) |
const |
◆ horizontalHeaderVisible()
| bool KexiTableView::horizontalHeaderVisible |
( |
| ) |
const |
◆ initCellEditorFactories()
| void KexiTableView::initCellEditorFactories |
( |
| ) |
|
|
static |
Initializes standard editor cell editor factories. This is called internally, once.
◆ initDataContents()
| void KexiTableView::initDataContents |
( |
| ) |
|
|
protectedvirtual |
◆ insertEmptyRow
| virtual KexiTableItem * KexiTableView::insertEmptyRow |
( |
int | row = -1 | ) |
|
|
inlinevirtualslot |
Inserts one empty row above row row. If row is -1 (the default), new row is inserted above the current row (or above 1st row if there is no current). A new item becomes current if row is -1 or if row is equal currentRow(). This method does nothing if: -inserting flag is disabled (see isInsertingEnabled()) -read-only flag is set (see isReadOnly()) \ return inserted row's data
Definition at line 321 of file kexitableview.h.
◆ isDefaultValueDisplayed()
| bool KexiTableView::isDefaultValueDisplayed |
( |
KexiTableItem * | item, |
|
|
int | col, |
|
|
TQVariant * | value = 0 ) |
|
protected |
◆ keyPressEvent()
| void KexiTableView::keyPressEvent |
( |
TQKeyEvent * | e | ) |
|
|
protectedvirtual |
- Todo
- add option for stopping at 1st column for TQt::Key_left
- Todo
- add option for stopping at last column
Definition at line 1256 of file kexitableview.cpp.
◆ lastVisibleRow()
| int KexiTableView::lastVisibleRow |
( |
| ) |
const |
|
virtual |
◆ maximizeColumnsWidth
| void KexiTableView::maximizeColumnsWidth |
( |
const TQValueList< int > & | columnList | ) |
|
|
slot |
Maximizes widths of columns selected by columnList, so the horizontal header has maximum overall width. Each selected column's width will be increased by the same value. Does nothing if columnList is empty or there is no free space to resize columns. If this table view is not visible, resizing will be performed on showing.
Definition at line 2210 of file kexitableview.cpp.
◆ minimumSizeHint()
| TQSize KexiTableView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
◆ moveToFirstRecordRequested()
| void KexiTableView::moveToFirstRecordRequested |
( |
| ) |
|
|
protectedvirtual |
◆ moveToLastRecordRequested()
| void KexiTableView::moveToLastRecordRequested |
( |
| ) |
|
|
protectedvirtual |
◆ moveToNextRecordRequested()
| void KexiTableView::moveToNextRecordRequested |
( |
| ) |
|
|
protectedvirtual |
◆ moveToPreviousRecordRequested()
| void KexiTableView::moveToPreviousRecordRequested |
( |
| ) |
|
|
protectedvirtual |
◆ moveToRecordRequested()
| void KexiTableView::moveToRecordRequested |
( |
uint | r | ) |
|
|
protectedvirtual |
◆ newItemAppendedForAfterDeletingInSpreadSheetMode
| virtual void KexiTableView::newItemAppendedForAfterDeletingInSpreadSheetMode |
( |
| ) |
|
|
virtualsignal |
Emitted for spreadsheet mode when an item was deleted and a new item has been appended.
◆ paintCell()
| void KexiTableView::paintCell |
( |
TQPainter * | p, |
|
|
KexiTableItem * | item, |
|
|
int | col, |
|
|
int | row, |
|
|
const TQRect & | cr, |
|
|
bool | print = false ) |
|
protected |
dontPaintNonpersistentSelectionBecauseDifferentRowHasBeenHighlighted)
bool autonumber = false;
Definition at line 712 of file kexitableview.cpp.
◆ paintEmptyArea()
| void KexiTableView::paintEmptyArea |
( |
TQPainter * | p, |
|
|
int | cx, |
|
|
int | cy, |
|
|
int | cw, |
|
|
int | ch ) |
|
protected |
◆ paintRow()
| void KexiTableView::paintRow |
( |
KexiTableItem * | item, |
|
|
TQPainter * | pb, |
|
|
int | r, |
|
|
int | rowp, |
|
|
int | cx, |
|
|
int | cy, |
|
|
int | colfirst, |
|
|
int | collast, |
|
|
int | maxwc ) |
|
inlineprotected |
◆ paletteChange()
| void KexiTableView::paletteChange |
( |
const TQPalette & | oldPalette | ) |
|
|
protectedvirtual |
◆ paste()
| void KexiTableView::paste |
( |
| ) |
|
|
protectedvirtual |
◆ print()
| void KexiTableView::print |
( |
KPrinter & | printer | ) |
|
◆ reloadActions
| void KexiTableView::reloadActions |
( |
| ) |
|
|
signal |
Emitted in initActions() to force reload actions You should remove existing actions and add them again.
◆ reloadData
| void KexiTableView::reloadData |
( |
| ) |
|
|
protectedvirtualslot |
◆ removeEditor()
| void KexiTableView::removeEditor |
( |
| ) |
|
|
protectedvirtual |
◆ resizeEvent()
| void KexiTableView::resizeEvent |
( |
TQResizeEvent * | e | ) |
|
|
protectedvirtual |
◆ rowAt()
| int KexiTableView::rowAt |
( |
int | pos, |
|
|
bool | ignoreEnd = false ) const |
◆ rowEditStarted
| void KexiTableView::rowEditStarted |
( |
int | row | ) |
|
|
signal |
emmited when row editing is started (for updating or inserting)
◆ rowEditTerminated
| void KexiTableView::rowEditTerminated |
( |
int | row | ) |
|
|
signal |
emmited when row editing is terminated (for updating or inserting) no matter if accepted or not
◆ rowHeight()
| int KexiTableView::rowHeight |
( |
| ) |
const |
◆ rowPos()
| int KexiTableView::rowPos |
( |
int | row | ) |
const |
◆ rowsPerPage()
| int KexiTableView::rowsPerPage |
( |
| ) |
const |
|
virtual |
- Returns
- true if vertical scrollbar's tooltips are enabled (true by default).
Enables or disables vertical scrollbar's.
- Returns
- maximum number of rows that can be displayed per one "page" for current table view's size.
Implements KexiDataAwareObjectInterface.
Definition at line 1467 of file kexitableview.cpp.
◆ scrollBarTipTimeout
| virtual void KexiTableView::scrollBarTipTimeout |
( |
| ) |
|
|
inlineprotectedvirtualslot |
Handles timeout() signal of the m_scrollBarTipTimer. If the tooltip is visible, m_scrollBarTipTimerCnt is set to 0 and m_scrollBarTipTimerCnt is restarted; else the m_scrollBarTipTimerCnt is just set to 0.
Definition at line 459 of file kexitableview.h.
◆ setAcceptsRowEditAfterCellAccepting
| virtual void KexiTableView::setAcceptsRowEditAfterCellAccepting |
( |
bool | set | ) |
|
|
inlinevirtualslot |
◆ setAppearance()
| void KexiTableView::setAppearance |
( |
const Appearance & | a | ) |
|
Sets appearance settings. Table view is updated automatically.
- Todo
- is setMouseTracking useful for other purposes?
Definition at line 2521 of file kexitableview.cpp.
◆ setBottomMarginInternal()
| void KexiTableView::setBottomMarginInternal |
( |
int | pixels | ) |
|
|
protected |
◆ setColumnStretchEnabled
| void KexiTableView::setColumnStretchEnabled |
( |
bool | set, |
|
|
int | colNum ) |
|
slot |
If set is true, colNum column is resized to take full possible width. If set is false, no automatic resize will be performed. If colNum is -1, all columns are equally resized, when needed, to take full possible width. This method behaves like TQHeader::setStretchEnabled ( bool b, int section ).
Definition at line 2250 of file kexitableview.cpp.
◆ setColumnWidth
| void KexiTableView::setColumnWidth |
( |
int | col, |
|
|
int | width ) |
|
slot |
◆ setData
◆ setDropsAtRowEnabled
| virtual void KexiTableView::setDropsAtRowEnabled |
( |
bool | set | ) |
|
|
inlinevirtualslot |
Specifies, if this table accepts dropping data on the rows. If enabled:
- dragging over row is indicated by drawing a line at bottom side of this row
- dragOverRow() signal will be emitted on dragging, -droppedAtRow() will be emitted on dropping By default this flag is set to false.
Definition at line 360 of file kexitableview.h.
◆ setEditableOnDoubleClick()
| void KexiTableView::setEditableOnDoubleClick |
( |
bool | set | ) |
|
◆ setFont()
| void KexiTableView::setFont |
( |
const TQFont & | f | ) |
|
Reimplemented to update cached fonts and row sizes for the painter.
Definition at line 381 of file kexitableview.cpp.
◆ setHBarGeometry()
| void KexiTableView::setHBarGeometry |
( |
TQScrollBar & | hbar, |
|
|
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h ) |
|
protectedvirtual |
◆ setHighlightedRow
| void KexiTableView::setHighlightedRow |
( |
int | row | ) |
|
|
slot |
◆ setHorizontalHeaderVisible()
| void KexiTableView::setHorizontalHeaderVisible |
( |
bool | set | ) |
|
◆ setLocalSortingOrder()
| void KexiTableView::setLocalSortingOrder |
( |
int | col, |
|
|
int | order ) |
|
protectedvirtual |
◆ setSpreadSheetMode()
| void KexiTableView::setSpreadSheetMode |
( |
| ) |
|
|
virtual |
◆ setupNavigator()
| void KexiTableView::setupNavigator |
( |
| ) |
|
|
protected |
◆ setVerticalHeaderVisible()
| void KexiTableView::setVerticalHeaderVisible |
( |
bool | set | ) |
|
◆ shortCutPressed()
| bool KexiTableView::shortCutPressed |
( |
TQKeyEvent * | e, |
|
|
const TQCString & | action_name ) |
|
protected |
Used in key event: - Returns
- true if event e should execute action action_name. Action shortcuts defined by shortCutPressed() are reused, if present, and if e matches given action's shortcut - false is returned (beause action is already performed at main window's level).
Definition at line 1224 of file kexitableview.cpp.
◆ showContextMenu()
| void KexiTableView::showContextMenu |
( |
const TQPoint & | pos = TQPoint(-1,-1) | ) |
|
|
protected |
Shows context menu at pos for selected cell if menu is configured, else: contextMenuRequested() signal is emmited. Method used in contentsMousePressEvent() (for right button) and keyPressEvent() for TQt::Key_Menu key. If pos is TQPoint(-1,-1) (the default), menu is positioned below the current cell.
Definition at line 1124 of file kexitableview.cpp.
◆ showEvent()
| void KexiTableView::showEvent |
( |
TQShowEvent * | e | ) |
|
|
protectedvirtual |
◆ sizeHint()
| TQSize KexiTableView::sizeHint |
( |
| ) |
const |
|
virtual |
◆ sizePolicy()
| TQSizePolicy KexiTableView::sizePolicy |
( |
| ) |
const |
|
virtual |
◆ slotAboutToDeleteRow
| virtual void KexiTableView::slotAboutToDeleteRow |
( |
KexiTableItem & | item, |
|
|
KexiDB::ResultInfo * | result, |
|
|
bool | repaint ) |
|
inlineprotectedvirtualslot |
◆ slotAutoScroll
| void KexiTableView::slotAutoScroll |
( |
| ) |
|
|
protectedslot |
◆ slotColumnWidthChanged
| void KexiTableView::slotColumnWidthChanged |
( |
int | col, |
|
|
int | os, |
|
|
int | ns ) |
|
protectedslot |
◆ slotDataDestroying
| virtual void KexiTableView::slotDataDestroying |
( |
| ) |
|
|
inlineprotectedvirtualslot |
◆ slotEditRequested
| void KexiTableView::slotEditRequested |
( |
| ) |
|
|
protectedslot |
◆ slotRowDeleted
| virtual void KexiTableView::slotRowDeleted |
( |
| ) |
|
|
inlineprotectedvirtualslot |
◆ slotRowInserted [1/2]
| virtual void KexiTableView::slotRowInserted |
( |
KexiTableItem * | item, |
|
|
bool | repaint ) |
|
inlineprotectedvirtualslot |
◆ slotRowInserted [2/2]
| virtual void KexiTableView::slotRowInserted |
( |
KexiTableItem * | item, |
|
|
uint | row, |
|
|
bool | repaint ) |
|
inlineprotectedvirtualslot |
◆ slotRowRepaintRequested
| void KexiTableView::slotRowRepaintRequested |
( |
KexiTableItem & | item | ) |
|
|
protectedvirtualslot |
Handles KexiTableViewData::rowRepaintRequested() signal.
Definition at line 2041 of file kexitableview.cpp.
◆ slotRowsDeleted
| void KexiTableView::slotRowsDeleted |
( |
const TQValueList< int > & | rows | ) |
|
|
protectedvirtualslot |
◆ slotSectionHandleDoubleClicked
| void KexiTableView::slotSectionHandleDoubleClicked |
( |
int | section | ) |
|
|
protectedslot |
◆ slotSettingsChanged
| void KexiTableView::slotSettingsChanged |
( |
int | category | ) |
|
|
protectedslot |
◆ slotTopHeaderSizeChange
| void KexiTableView::slotTopHeaderSizeChange |
( |
int | section, |
|
|
int | oldSize, |
|
|
int | newSize ) |
|
protectedslot |
◆ slotUpdate
| void KexiTableView::slotUpdate |
( |
| ) |
|
|
protectedslot |
◆ sortColumnInternal
| virtual void KexiTableView::sortColumnInternal |
( |
int | col, |
|
|
int | order = 0 ) |
|
inlineprotectedvirtualslot |
implemented because we needed this as slot
Definition at line 416 of file kexitableview.h.
◆ startEditCurrentCell
| virtual void KexiTableView::startEditCurrentCell |
( |
const TQString & | setText = TQString() | ) |
|
|
inlinevirtualslot |
Used when Return key is pressed on cell or "+" nav. button is clicked. Also used when we want to continue editing a cell after "invalid value" message was displayed (in this case, setText is usually not empty, what means that text will be set in the cell replacing previous value).
Definition at line 329 of file kexitableview.h.
◆ tableEditorWidget()
| KexiTableEdit * KexiTableView::tableEditorWidget |
( |
int | col, |
|
|
bool | ignoreMissingEditor = false ) |
|
inlineprotected |
◆ tableSize()
| TQSize KexiTableView::tableSize |
( |
| ) |
const |
|
virtual |
◆ triggerUpdate()
| void KexiTableView::triggerUpdate |
( |
| ) |
|
◆ updateAfterAcceptRowEdit()
| void KexiTableView::updateAfterAcceptRowEdit |
( |
| ) |
|
|
protectedvirtual |
◆ updateAfterCancelRowEdit()
| void KexiTableView::updateAfterCancelRowEdit |
( |
| ) |
|
|
protectedvirtual |
◆ updateAllVisibleRowsBelow()
| void KexiTableView::updateAllVisibleRowsBelow |
( |
int | row | ) |
|
|
protectedvirtual |
◆ updateCell()
| void KexiTableView::updateCell |
( |
int | row, |
|
|
int | col ) |
|
virtual |
◆ updateCurrentCell()
| void KexiTableView::updateCurrentCell |
( |
| ) |
|
|
virtual |
◆ updateFonts()
| void KexiTableView::updateFonts |
( |
bool | repaint = false | ) |
|
|
protected |
◆ updateGeometries()
| void KexiTableView::updateGeometries |
( |
| ) |
|
|
protected |
◆ updateGUIAfterSorting()
| void KexiTableView::updateGUIAfterSorting |
( |
| ) |
|
|
protectedvirtual |
◆ updateRow()
| void KexiTableView::updateRow |
( |
int | row | ) |
|
|
virtual |
◆ updateWidgetContents()
| virtual void KexiTableView::updateWidgetContents |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ updateWidgetContentsSize()
| void KexiTableView::updateWidgetContentsSize |
( |
| ) |
|
|
protectedvirtual |
◆ updateWidgetScrollBars()
| virtual void KexiTableView::updateWidgetScrollBars |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ validRowNumber()
| int KexiTableView::validRowNumber |
( |
const TQString & | text | ) |
|
|
protected |
internal, to determine valid row number when navigator text changed
Definition at line 2332 of file kexitableview.cpp.
◆ verticalHeaderVisible()
| bool KexiTableView::verticalHeaderVisible |
( |
| ) |
const |
◆ verticalScrollBar()
| virtual TQScrollBar * KexiTableView::verticalScrollBar |
( |
| ) |
const |
|
inlinevirtual |
◆ viewportDragLeaveEvent()
| void KexiTableView::viewportDragLeaveEvent |
( |
TQDragLeaveEvent * | e | ) |
|
|
protectedvirtual |
◆ viewportResizeEvent()
| void KexiTableView::viewportResizeEvent |
( |
TQResizeEvent * | e | ) |
|
|
protectedvirtual |
◆ viewportToContents2()
| TQPoint KexiTableView::viewportToContents2 |
( |
const TQPoint & | vp | ) |
|
|
protected |
◆ vScrollBarSliderReleased
| virtual void KexiTableView::vScrollBarSliderReleased |
( |
| ) |
|
|
inlineprotectedvirtualslot |
◆ vScrollBarValueChanged
| virtual void KexiTableView::vScrollBarValueChanged |
( |
int | v | ) |
|
|
inlineprotectedvirtualslot |
◆ KexiTableItem
| friend class KexiTableItem |
|
friend |
◆ KexiTableViewCellToolTip
| friend class KexiTableViewCellToolTip |
|
friend |
◆ WhatsThis
| KexiTableViewPrivate* KexiTableView::d |
|
protected |
The documentation for this class was generated from the following files:
|