kexi
KexiRecordNavigator Class Reference
#include <kexirecordnavigator.h>
Detailed Description
KexiRecordNavigator class provides a record navigator.Record navigator is usually used for data tables (e.g. KexiTableView) or data-aware forms.
You can plug KexiRecordNavigator object to your data-aware object in two ways: 1) By connectiong to slots prevButtonClicked(), etc. 2) A bit cleaner way: by inheriting from KexiRecordNavigatorHandler interface in your data-aware class and implementing all it's prototype methods like moveToRecordRequested(), and then caling setRecordHandler() on navigator's object. Note that using this way, you can allow to exist more than one navigator widget connected with your data-aware object (don't matter if this is sane).
Definition at line 62 of file kexirecordnavigator.h.
Public Slots | |
void | setInsertingEnabled (bool set) |
void | setInsertingButtonVisible (bool set) |
void | setEditingIndicatorEnabled (bool set) |
void | showEditingIndicator (bool show) |
virtual void | setEnabled (bool set) |
void | setCurrentRecordNumber (uint r) |
void | setRecordCount (uint count) |
void | updateGeometry (int leftMargin) |
void | setLabelText (const QString &text) |
Signals | |
void | prevButtonClicked () |
void | nextButtonClicked () |
void | lastButtonClicked () |
void | firstButtonClicked () |
void | newButtonClicked () |
void | recordNumberEntered (uint r) |
Public Member Functions | |
KexiRecordNavigator (QWidget *parent, int leftMargin=0, const char *name=0) | |
virtual | ~KexiRecordNavigator () |
void | setParentView (QScrollView *view) |
void | setRecordHandler (KexiRecordNavigatorHandler *handler) |
bool | isInsertingEnabled () const |
uint | currentRecordNumber () const |
uint | recordCount () const |
void | setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h) |
virtual bool | eventFilter (QObject *o, QEvent *e) |
bool | editingIndicatorVisible () const |
bool | editingIndicatorEnabled () const |
Protected Slots | |
void | slotPrevButtonClicked () |
void | slotNextButtonClicked () |
void | slotLastButtonClicked () |
void | slotFirstButtonClicked () |
void | slotNewButtonClicked () |
Protected Member Functions | |
void | updateButtons (uint recCnt) |
Protected Attributes | |
QLabel * | m_textLabel |
QToolButton * | m_navBtnFirst |
QToolButton * | m_navBtnPrev |
QToolButton * | m_navBtnNext |
QToolButton * | m_navBtnLast |
QToolButton * | m_navBtnNew |
KLineEdit * | m_navRecordNumber |
QIntValidator * | m_navRecordNumberValidator |
KLineEdit * | m_navRecordCount |
uint | m_nav1DigitWidth |
QScrollView * | m_view |
bool | m_isInsertingEnabled: 1 |
KexiRecordNavigatorPrivate * | d |
Member Function Documentation
|
Definition at line 309 of file kexirecordnavigator.cpp. |
|
Definition at line 419 of file kexirecordnavigator.cpp. |
|
Definition at line 414 of file kexirecordnavigator.cpp. |
|
Definition at line 77 of file kexirecordnavigator.h. |
|
Definition at line 318 of file kexirecordnavigator.cpp. |
|
Sets current record number for this navigator, i.e. a value that will be displayed in the 'record number' text box. This can also affect button's enabling and disabling. If Definition at line 249 of file kexirecordnavigator.cpp. |
|
Sets visibility of the place where "editing" indicator will be displayed. "editing" indicator will display KexiRecordMarker::penImage() image when setEditingIndicatorVisible() is called. This method is currently used e.g. within standard kexi forms (see KexiFormScrollView class). Definition at line 424 of file kexirecordnavigator.cpp. |
|
Sets horizontal bar's hbar (at the bottom) geometry so this record navigator is properly positioned together with horizontal scroll bar. This method is used in QScrollView::setHBarGeometry() implementations: see KexiTableView::setHBarGeometry() and KexiFormScrollView::setHBarGeometry() for usage examples. Definition at line 355 of file kexirecordnavigator.cpp. |
|
Sets visibility of "inserting" button. Definition at line 365 of file kexirecordnavigator.cpp. |
|
Sets insertingEnabled flag. If true, "+" button will be enabled. Definition at line 175 of file kexirecordnavigator.cpp. |
|
Sets label text at the left of the for record navigator's button. By default this label contains translated "Row:" text. Definition at line 360 of file kexirecordnavigator.cpp. |
|
Sets record count for this navigator. This can also affect button's enabling and disabling. By default count is 0. Definition at line 282 of file kexirecordnavigator.cpp. |
|
Sets record navigator handler. This allows to react on actions performed within navigator and vice versa. Definition at line 409 of file kexirecordnavigator.cpp. |
|
Shows or hides "editing" indicator. Definition at line 445 of file kexirecordnavigator.cpp. |
Member Data Documentation
|
readonly counter
Definition at line 167 of file kexirecordnavigator.h. |
The documentation for this class was generated from the following files: