kexi

#include <kexiformscrollview.h>

Inheritance diagram for KexiFormScrollView:
KexiScrollView KexiRecordNavigatorHandler KexiSharedActionClient KexiDataAwareObjectInterface KexiFormDataProvider KexiFormEventHandler KexiDataItemChangesListener

Public Slots

virtual void show ()
 
virtual int rowsPerPage () const
 
virtual void ensureCellVisible (int row, int col)
 
virtual void moveToRecordRequested (uint r)
 
virtual void moveToLastRecordRequested ()
 
virtual void moveToPreviousRecordRequested ()
 
virtual void moveToNextRecordRequested ()
 
virtual void moveToFirstRecordRequested ()
 
virtual void addNewRecordRequested ()
 
virtual bool cancelEditor ()
 
virtual void refreshContentsSize ()
 
virtual void vScrollBarValueChanged (int v)
 
virtual void vScrollBarSliderReleased ()
 
virtual void scrollBarTipTimeout ()
 
- Public Slots inherited from KexiScrollView
virtual void refreshContentsSize ()
 

Signals

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 ()
 
virtual void dataRefreshed ()
 
virtual void dataSet (KexiTableViewData *data)
 
virtual void itemSelected (KexiTableItem *)
 
virtual void cellSelected (int col, int row)
 
virtual void sortedColumnChanged (int col)
 
virtual void rowEditStarted (int row)
 
virtual void rowEditTerminated (int row)
 
virtual void reloadActions ()
 
- Signals inherited from KexiScrollView
void outerAreaClicked ()
 
void resizingStarted ()
 
void resizingEnded ()
 

Public Member Functions

 KexiFormScrollView (TQWidget *parent, bool preview)
 
void setForm (KFormDesigner::Form *form)
 
virtual bool columnEditable (int col)
 
virtual int columns () const
 
virtual KexiTableViewColumn * column (int col)
 
virtual int fieldNumberForColumn (int col)
 
void beforeSwitchView ()
 
virtual int lastVisibleRow () const
 
virtual TQScrollBar * verticalScrollBar () const
 
- Public Member Functions inherited from KexiScrollView
 KexiScrollView (TQWidget *parent, bool preview)
 
void setWidget (TQWidget *w)
 
void setSnapToGrid (bool enable, int gridSize=10)
 
void setResizingEnabled (bool enabled)
 
void setRecordNavigatorVisible (bool visible)
 
void setOuterAreaIndicatorVisible (bool visible)
 
void refreshContentsSizeLater (bool horizontal, bool vertical)
 
void updateNavPanelGeometry ()
 
KexiRecordNavigator * recordNavigator () const
 
bool preview () const
 
- Public Member Functions inherited from KexiRecordNavigatorHandler
virtual void moveToRecordRequested (uint r)=0
 
virtual void moveToLastRecordRequested ()=0
 
virtual void moveToPreviousRecordRequested ()=0
 
virtual void moveToNextRecordRequested ()=0
 
virtual void moveToFirstRecordRequested ()=0
 
virtual void addNewRecordRequested ()=0
 
- Public Member Functions inherited from KexiSharedActionClient
void plugSharedAction (TDEAction *a)
 
- Public Member Functions inherited from KexiDataAwareObjectInterface
void setData (KexiTableViewData *data, bool owner=true)
 
KexiTableViewData * data () const
 
int currentColumn () const
 
int currentRow () const
 
KexiTableItem * selectedItem () const
 
int rows () 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 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 int rowsPerPage () const =0
 
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 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)
 
KexiDataItemInterface * editor () const
 
virtual bool cancelRowEdit ()
 
virtual bool acceptRowEdit ()
 
virtual void removeEditor ()
 
virtual bool cancelEditor ()
 
virtual bool acceptEditor ()
 
virtual void startEditCurrentCell (const TQString &setText=TQString())
 
virtual void deleteAndStartEditCurrentCell ()
 
KexiTableItem * itemAt (int row) const
 
bool hasDefaultValueAt (const KexiTableViewColumn &tvcol)
 
const TQVariant * bufferedValueAt (int col, bool useDefaultValueIfPossible=true)
 
int columnType (int col)
 
TQVariant columnDefaultValue (int col) const
 
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 void copySelection ()=0
 
virtual void cutSelection ()=0
 
virtual void paste ()=0
 
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)
 
- Public Member Functions inherited from KexiFormDataProvider
void setMainDataSourceWidget (TQWidget *mainWidget)
 
TQStringList usedDataSources () const
 
void fillDataItems (KexiTableItem &row, bool cursorAtNewRow)
 
void invalidateDataSources (const TQDict< char > &invalidSources, KexiDB::QuerySchema *query=0)
 
void fillDuplicatedDataItems (KexiFormDataItemInterface *item, const TQVariant &value)
 
- Public Member Functions inherited from KexiFormEventHandler
void setMainWidgetForEventHandling (KexiMainWindow *mainWin, TQWidget *mainWidget)
 

Protected Slots

void slotResizingStarted ()
 
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 > &)
 
virtual void slotDataDestroying ()
 
virtual void reloadData ()
 
virtual void copySelection ()
 
virtual void cutSelection ()
 
virtual void paste ()
 

Protected Member Functions

virtual void clearColumnsInternal (bool repaint)
 
virtual void addHeaderColumn (const TQString &caption, const TQString &description, const TQIconSet &icon, int width)
 
virtual int currentLocalSortingOrder () const
 
virtual int currentLocalSortColumn () const
 
virtual void setLocalSortingOrder (int col, int order)
 
void sortColumnInternal (int col, int order=0)
 
virtual void updateGUIAfterSorting ()
 
virtual void createEditor (int row, int col, const TQString &addText=TQString(), bool removeOld=false)
 
virtual KexiDataItemInterface * editor (int col, bool ignoreMissingEditor=false)
 
virtual void editorShowFocus (int row, int col)
 
virtual void updateCell (int row, int col)
 
virtual void updateCurrentCell ()
 
virtual void updateRow (int row)
 
virtual void updateWidgetContents ()
 
virtual void updateWidgetContentsSize ()
 
virtual void updateWidgetScrollBars ()
 
KexiDBForm * dbFormWidget () const
 
virtual void valueChanged (KexiDataItemInterface *item)
 
virtual bool cursorAtNewRow () const
 
virtual void selectCellInternal ()
 
virtual void initDataContents ()
 
virtual void updateAfterCancelRowEdit ()
 
virtual void updateAfterAcceptRowEdit ()
 
void handleDataWidgetAction (const TQString &actionName)
 
bool shouldDisplayDefaultValueForItem (KexiFormDataItemInterface *itemIface) const
 
- Protected Member Functions inherited from KexiScrollView
virtual void contentsMousePressEvent (TQMouseEvent *ev)
 
virtual void contentsMouseReleaseEvent (TQMouseEvent *ev)
 
virtual void contentsMouseMoveEvent (TQMouseEvent *ev)
 
virtual void drawContents (TQPainter *p, int clipx, int clipy, int clipw, int cliph)
 
virtual void leaveEvent (TQEvent *e)
 
virtual void setHBarGeometry (TQScrollBar &hbar, int x, int y, int w, int h)
 
void setupPixmapBuffer (TQPixmap &pixmap, const TQString &text, int lines)
 
- Protected Member Functions inherited from KexiDataAwareObjectInterface
virtual void clearColumns (bool repaint=true)
 
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 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 updateAllVisibleRowsBelow (int row)
 
virtual void focusOutEvent (TQFocusEvent *e)
 
virtual void vScrollBarValueChanged (int v)
 
virtual void vScrollBarSliderReleased ()
 
virtual void scrollBarTipTimeout ()
 
int showErrorMessageForResult (KexiDB::ResultInfo *resultInfo)
 
void updateIndicesForVisibleValues ()
 

Protected Attributes

KFormDesigner::Form * m_form
 
int m_currentLocalSortColumn
 
int m_localSortingOrder
 
KexiTableItem * m_previousItem
 
- Protected Attributes inherited from KexiScrollView
bool m_resizing
 
bool m_enableResizing
 
TQWidget * m_widget
 
int m_gridSize
 
TQFont m_helpFont
 
TQColor m_helpColor
 
TQTimer m_delayedResize
 
TQScrollView::ScrollBarMode m_vsmode
 
TQScrollView::ScrollBarMode m_hsmode
 
bool m_snapToGrid: 1
 
bool m_preview: 1
 
bool m_smodeSet: 1
 
bool m_outerAreaVisible: 1
 
KexiRecordNavigator * m_scrollViewNavPanel
 
- Protected Attributes inherited from KexiSharedActionClient
TQAsciiDict< TDEAction > m_sharedActions
 
- Protected Attributes inherited from KexiDataAwareObjectInterface
KexiTableViewData * m_data
 
bool m_owner: 1
 
int m_curRow
 
int m_curCol
 
KexiTableItem * m_currentItem
 
KexiTableViewData::Iterator * m_itemIterator
 
KexiTableItem * m_insertItem
 
bool m_rowEditing: 1
 
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
 
KexiRecordMarker * m_verticalHeader
 
KexiTableViewHeader * m_horizontalHeader
 
KexiDataItemInterface * m_editor
 
KexiRecordNavigator * m_navPanel
 
bool m_navPanelEnabled: 1
 
bool m_verticalHeaderAlreadyAdded: 1
 
int m_dragIndicatorLine
 
TDEPopupMenu * m_popupMenu
 
bool m_contextMenuEnabled: 1
 
bool m_alsoUpdateNextRow: 1
 
int m_rowWillBeDeleted
 
TQGuardedPtr< KexiArrowTip > m_errorMessagePopup
 
bool m_vScrollBarValueChanged_enabled: 1
 
bool m_scrollbarToolTipsEnabled: 1
 
TQLabel * m_scrollBarTip
 
TQTimer m_scrollBarTipTimer
 
uint m_scrollBarTipTimerCnt
 
PositionOfValue m_positionOfRecentlyFoundValue
 
TQVariant m_recentlySearchedValue
 
KexiSearchAndReplaceViewInterface::Options::SearchDirection m_recentSearchDirection
 
TQValueVector< uint > m_indicesForVisibleValues
 
- Protected Attributes inherited from KexiFormDataProvider
TQWidget * m_mainWidget
 
TQPtrDict< char > * m_duplicatedItems
 
TQPtrList< KexiFormDataItemInterface > m_dataItems
 
TQStringList m_usedDataSources
 
KexiFormDataItemInterfaceToIntMap m_fieldNumbersForDataItems
 
bool m_disableFillDuplicatedDataItems: 1
 
- Protected Attributes inherited from KexiFormEventHandler
TQWidget * m_mainWidget
 

Additional Inherited Members

- Public Types inherited from KexiDataAwareObjectInterface
enum  DeletionPolicy { NoDelete = 0 , AskDelete = 1 , ImmediateDelete = 2 , SignalDelete = 3 }
 
- Protected Types inherited from KexiFormDataProvider
typedef TQMap< KexiFormDataItemInterface *, uint > KexiFormDataItemInterfaceToIntMap
 

Detailed Description

KexiFormScrollView class provides a widget for displaying data in a form view.

This class also implements:

See also
KexiTableView

Definition at line 41 of file kexiformscrollview.h.

Constructor & Destructor Documentation

◆ KexiFormScrollView()

KexiFormScrollView::KexiFormScrollView ( TQWidget *  parent,
bool  preview 
)

Definition at line 33 of file kexiformscrollview.cpp.

◆ ~KexiFormScrollView()

KexiFormScrollView::~KexiFormScrollView ( )
virtual

Definition at line 59 of file kexiformscrollview.cpp.

Member Function Documentation

◆ addHeaderColumn()

void KexiFormScrollView::addHeaderColumn ( const TQString &  caption,
const TQString &  description,
const TQIconSet &  icon,
int  width 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 159 of file kexiformscrollview.cpp.

◆ addNewRecordRequested

virtual void KexiFormScrollView::addNewRecordRequested ( )
inlinevirtualslot

Definition at line 117 of file kexiformscrollview.h.

◆ beforeSwitchView()

void KexiFormScrollView::beforeSwitchView ( )

Definition at line 537 of file kexiformscrollview.cpp.

◆ cancelEditor

bool KexiFormScrollView::cancelEditor ( )
virtualslot

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)

Definition at line 486 of file kexiformscrollview.cpp.

◆ clearColumnsInternal()

void KexiFormScrollView::clearColumnsInternal ( bool  repaint)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 153 of file kexiformscrollview.cpp.

◆ column()

KexiTableViewColumn * KexiFormScrollView::column ( int  col)
virtual
Returns
column information for column number col. Reimplemented for KexiDataAwareObjectInterface: column data corresponding to widget number is used here (see fieldNumberForColumn()).

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 472 of file kexiformscrollview.cpp.

◆ columnEditable()

bool KexiFormScrollView::columnEditable ( int  col)
virtual

Reimplemented from KexiDataAwareObjectInterface for checking 'readOnly' flag from a widget ('readOnly' flag from data member is still checked though).

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 401 of file kexiformscrollview.cpp.

◆ columns()

int KexiFormScrollView::columns ( ) const
virtual
Returns
number of visible columns in this view. There can be a number of duplicated columns defined, so columns() can return greater or smaller number than dataColumns().

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 387 of file kexiformscrollview.cpp.

◆ copySelection

void KexiFormScrollView::copySelection ( )
protectedvirtualslot

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

Definition at line 566 of file kexiformscrollview.cpp.

◆ createEditor()

void KexiFormScrollView::createEditor ( int  row,
int  col,
const TQString &  addText = TQString(),
bool  removeOld = false 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 200 of file kexiformscrollview.cpp.

◆ currentLocalSortColumn()

int KexiFormScrollView::currentLocalSortColumn ( ) const
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Implements KexiDataAwareObjectInterface.

Definition at line 176 of file kexiformscrollview.cpp.

◆ currentLocalSortingOrder()

int KexiFormScrollView::currentLocalSortingOrder ( ) const
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 170 of file kexiformscrollview.cpp.

◆ cursorAtNewRow()

bool KexiFormScrollView::cursorAtNewRow ( ) const
protectedvirtual

Reimplemented from KexiFormDataProvider.

Returns
information whether we're currently at new row or now. This can be used e.g. by data-aware widgets to determine if "(autonumber)" label should be displayed.

Reimplemented from KexiFormDataProvider.

Definition at line 450 of file kexiformscrollview.cpp.

◆ cutSelection

void KexiFormScrollView::cutSelection ( )
protectedvirtualslot

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

Definition at line 571 of file kexiformscrollview.cpp.

◆ dbFormWidget()

KexiDBForm * KexiFormScrollView::dbFormWidget ( ) const
protected

Definition at line 382 of file kexiformscrollview.cpp.

◆ editor()

KexiDataItemInterface * KexiFormScrollView::editor ( int  col,
bool  ignoreMissingEditor = false 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Implements KexiDataAwareObjectInterface.

Definition at line 260 of file kexiformscrollview.cpp.

◆ editorShowFocus()

void KexiFormScrollView::editorShowFocus ( int  row,
int  col 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 304 of file kexiformscrollview.cpp.

◆ ensureCellVisible

void KexiFormScrollView::ensureCellVisible ( int  row,
int  col 
)
virtualslot

Implementation for KexiDataAwareObjectInterface.

Todo:

Definition at line 111 of file kexiformscrollview.cpp.

◆ fieldNumberForColumn()

virtual int KexiFormScrollView::fieldNumberForColumn ( int  col)
inlinevirtual
Returns
field number within data model connected to a data-aware widget at column col.

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 77 of file kexiformscrollview.h.

◆ handleDataWidgetAction()

void KexiFormScrollView::handleDataWidgetAction ( const TQString &  actionName)
protected

Definition at line 552 of file kexiformscrollview.cpp.

◆ initDataContents()

void KexiFormScrollView::initDataContents ( )
protectedvirtual

Reimplementation: used to refresh "editing indicator" visibility.

Todo:
here we can react if user wanted to show the navigator

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 455 of file kexiformscrollview.cpp.

◆ lastVisibleRow()

int KexiFormScrollView::lastVisibleRow ( ) const
virtual
Returns
last row visible on the screen (counting from 0). The returned value is guaranteed to be smaller or equal to currentRow() or -1 if there are no rows. Implemented for KexiDataAwareObjectInterface.
Todo:
unimplemented for now, this will be used for continuous forms
Todo:
unimplemented for now, this will be used for continuous forms

Implements KexiDataAwareObjectInterface.

Definition at line 581 of file kexiformscrollview.cpp.

◆ moveToFirstRecordRequested

void KexiFormScrollView::moveToFirstRecordRequested ( )
virtualslot
Todo:

Definition at line 147 of file kexiformscrollview.cpp.

◆ moveToLastRecordRequested

void KexiFormScrollView::moveToLastRecordRequested ( )
virtualslot
Todo:

Definition at line 129 of file kexiformscrollview.cpp.

◆ moveToNextRecordRequested

void KexiFormScrollView::moveToNextRecordRequested ( )
virtualslot
Todo:

Definition at line 141 of file kexiformscrollview.cpp.

◆ moveToPreviousRecordRequested

void KexiFormScrollView::moveToPreviousRecordRequested ( )
virtualslot
Todo:

Definition at line 135 of file kexiformscrollview.cpp.

◆ moveToRecordRequested

void KexiFormScrollView::moveToRecordRequested ( uint  r)
virtualslot
Todo:

Definition at line 123 of file kexiformscrollview.cpp.

◆ newItemAppendedForAfterDeletingInSpreadSheetMode

virtual void KexiFormScrollView::newItemAppendedForAfterDeletingInSpreadSheetMode ( )
virtualsignal

does nothing

◆ paste

void KexiFormScrollView::paste ( )
protectedvirtualslot

Paste current clipboard contents (e.g. to a cell)

Definition at line 576 of file kexiformscrollview.cpp.

◆ refreshContentsSize

void KexiFormScrollView::refreshContentsSize ( )
virtualslot

Reimplemented to also clear command history right after final resize.

Definition at line 542 of file kexiformscrollview.cpp.

◆ reloadData

virtual void KexiFormScrollView::reloadData ( )
inlineprotectedvirtualslot

Reloads data for this widget. Handles KexiTableViewData::reloadRequested() signal.

Definition at line 183 of file kexiformscrollview.h.

◆ rowsPerPage

int KexiFormScrollView::rowsPerPage ( ) const
virtualslot

Implementation for KexiDataAwareObjectInterface.

Returns
arbitraty value of 10.
Todo:

Definition at line 91 of file kexiformscrollview.cpp.

◆ scrollBarTipTimeout

virtual void KexiFormScrollView::scrollBarTipTimeout ( )
inlinevirtualslot

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.

Todo:
unused for now, will be used for continuous forms

Definition at line 141 of file kexiformscrollview.h.

◆ selectCellInternal()

void KexiFormScrollView::selectCellInternal ( )
inlineprotectedvirtual

Implementation for KexiDataAwareObjectInterface Called by KexiDataAwareObjectInterface::setCursorPosition() if cursor's position is really changed.

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 97 of file kexiformscrollview.cpp.

◆ setForm()

void KexiFormScrollView::setForm ( KFormDesigner::Form *  form)
inline

Definition at line 57 of file kexiformscrollview.h.

◆ setLocalSortingOrder()

void KexiFormScrollView::setLocalSortingOrder ( int  col,
int  order 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 181 of file kexiformscrollview.cpp.

◆ shouldDisplayDefaultValueForItem()

bool KexiFormScrollView::shouldDisplayDefaultValueForItem ( KexiFormDataItemInterface *  itemIface) const
protected

Definition at line 478 of file kexiformscrollview.cpp.

◆ show

void KexiFormScrollView::show ( )
virtualslot

Reimplemented to update resize policy.

Definition at line 67 of file kexiformscrollview.cpp.

◆ slotAboutToDeleteRow

virtual void KexiFormScrollView::slotAboutToDeleteRow ( KexiTableItem &  item,
KexiDB::ResultInfo *  result,
bool  repaint 
)
inlineprotectedvirtualslot

Handles KexiTableViewData::aboutToDeleteRow() signal. Prepares info for slotRowDeleted().

Definition at line 165 of file kexiformscrollview.h.

◆ slotDataDestroying

virtual void KexiFormScrollView::slotDataDestroying ( )
inlineprotectedvirtualslot

Definition at line 179 of file kexiformscrollview.h.

◆ slotResizingStarted

void KexiFormScrollView::slotResizingStarted ( )
protectedslot

Definition at line 83 of file kexiformscrollview.cpp.

◆ slotRowDeleted

virtual void KexiFormScrollView::slotRowDeleted ( )
inlineprotectedvirtualslot

Handles KexiTableViewData::rowDeleted() signal to repaint when needed.

Definition at line 169 of file kexiformscrollview.h.

◆ slotRowInserted [1/2]

void KexiFormScrollView::slotRowInserted ( KexiTableItem *  item,
bool  repaint 
)
protectedvirtualslot

Handles KexiTableViewData::rowInserted() signal to repaint when needed.

Todo:

Definition at line 362 of file kexiformscrollview.cpp.

◆ slotRowInserted [2/2]

void KexiFormScrollView::slotRowInserted ( KexiTableItem *  item,
uint  row,
bool  repaint 
)
protectedvirtualslot

Like above, not db-aware version.

Todo:

Definition at line 369 of file kexiformscrollview.cpp.

◆ slotRowRepaintRequested

void KexiFormScrollView::slotRowRepaintRequested ( KexiTableItem &  item)
protectedvirtualslot

Handles KexiTableViewData::rowRepaintRequested() signal.

Todo:

Definition at line 345 of file kexiformscrollview.cpp.

◆ slotRowsDeleted

void KexiFormScrollView::slotRowsDeleted ( const TQValueList< int > &  )
protectedvirtualslot
Todo:

Definition at line 377 of file kexiformscrollview.cpp.

◆ sortColumnInternal()

void KexiFormScrollView::sortColumnInternal ( int  col,
int  order = 0 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 188 of file kexiformscrollview.cpp.

◆ updateAfterAcceptRowEdit()

void KexiFormScrollView::updateAfterAcceptRowEdit ( )
protectedvirtual

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 526 of file kexiformscrollview.cpp.

◆ updateAfterCancelRowEdit()

void KexiFormScrollView::updateAfterCancelRowEdit ( )
protectedvirtual

Reimplemented from KexiDataAwareObjectInterface.

Definition at line 508 of file kexiformscrollview.cpp.

◆ updateCell()

void KexiFormScrollView::updateCell ( int  row,
int  col 
)
protectedvirtual

Implementation for KexiDataAwareObjectInterface Redraws specified cell.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 313 of file kexiformscrollview.cpp.

◆ updateCurrentCell()

void KexiFormScrollView::updateCurrentCell ( )
protectedvirtual

Redraws the current cell. Implemented after KexiDataAwareObjectInterface.

Implements KexiDataAwareObjectInterface.

Definition at line 320 of file kexiformscrollview.cpp.

◆ updateGUIAfterSorting()

void KexiFormScrollView::updateGUIAfterSorting ( )
protectedvirtual

Implementation for KexiDataAwareObjectInterface.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 195 of file kexiformscrollview.cpp.

◆ updateRow()

void KexiFormScrollView::updateRow ( int  row)
protectedvirtual

Implementation for KexiDataAwareObjectInterface Redraws all cells of specified row.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 324 of file kexiformscrollview.cpp.

◆ updateWidgetContents()

void KexiFormScrollView::updateWidgetContents ( )
protectedvirtual

Implementation for KexiDataAwareObjectInterface Updates contents of the widget. Just call update() here on your widget.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 330 of file kexiformscrollview.cpp.

◆ updateWidgetContentsSize()

void KexiFormScrollView::updateWidgetContentsSize ( )
protectedvirtual

Implementation for KexiDataAwareObjectInterface Implementation for KexiDataAwareObjectInterface Updates widget's contents size e.g. using TQScrollView::resizeContents().

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 335 of file kexiformscrollview.cpp.

◆ updateWidgetScrollBars()

void KexiFormScrollView::updateWidgetScrollBars ( )
protectedvirtual

Implementation for KexiDataAwareObjectInterface Updates scrollbars of the widget. TQScrollView::updateScrollbars() will be usually called here.

Todo:

Implements KexiDataAwareObjectInterface.

Definition at line 340 of file kexiformscrollview.cpp.

◆ valueChanged()

void KexiFormScrollView::valueChanged ( KexiDataItemInterface *  item)
protectedvirtual

Reimplemented from KexiFormDataProvider. Reaction for change of item.

Reimplemented from KexiFormDataProvider.

Definition at line 429 of file kexiformscrollview.cpp.

◆ verticalScrollBar()

virtual TQScrollBar * KexiFormScrollView::verticalScrollBar ( ) const
inlinevirtual
Returns
vertical scrollbar. Implemented for KexiDataAwareObjectInterface.

Implements KexiDataAwareObjectInterface.

Definition at line 97 of file kexiformscrollview.h.

◆ vScrollBarSliderReleased

virtual void KexiFormScrollView::vScrollBarSliderReleased ( )
inlinevirtualslot

Handles sliderReleased() signal of the verticalScrollBar(). Used to hide the "row number" tooltip.

Todo:
unused for now, will be used for continuous forms

Definition at line 135 of file kexiformscrollview.h.

◆ vScrollBarValueChanged

virtual void KexiFormScrollView::vScrollBarValueChanged ( int  v)
inlinevirtualslot

Handles verticalScrollBar()'s valueChanged(int) signal. Called when vscrollbar's value has been changed.

Todo:
unused for now, will be used for continuous forms

Definition at line 131 of file kexiformscrollview.h.

Member Data Documentation

◆ m_currentLocalSortColumn

int KexiFormScrollView::m_currentLocalSortColumn
protected

Definition at line 293 of file kexiformscrollview.h.

◆ m_form

KFormDesigner::Form* KexiFormScrollView::m_form
protected

Definition at line 292 of file kexiformscrollview.h.

◆ m_localSortingOrder

int KexiFormScrollView::m_localSortingOrder
protected

Definition at line 293 of file kexiformscrollview.h.

◆ m_previousItem

KexiTableItem* KexiFormScrollView::m_previousItem
protected

Used in selectCellInternal() to avoid fetching the same record twice.

Definition at line 295 of file kexiformscrollview.h.


The documentation for this class was generated from the following files: