kexi
KexiDataAwareView Class Reference
#include <kexidataawareview.h>

Detailed Description
Provides a view displaying record-based data.The KexiDataAwareView is used to implement differently-looking views for displaying record-based data in a consistent way:
- tabular data views
- form data view
Action implementations like data editing and deleting are shared for different view types to keep even better consistency. The view also implements KexiSearchAndReplaceViewInterface to support search/replace features used by shared KexiFindDialog.
Definition at line 41 of file kexidataawareview.h.
Public Slots | |
void | deleteAllRows () |
void | deleteCurrentRow () |
void | deleteAndStartEditCurrentCell () |
void | startEditOrToggleValue () |
bool | acceptRowEdit () |
void | cancelRowEdit () |
void | sortAscending () |
void | sortDescending () |
void | copySelection () |
void | cutSelection () |
void | paste () |
void | slotGoToFirstRow () |
void | slotGoToPreviusRow () |
void | slotGoToNextRow () |
void | slotGoToLastRow () |
void | slotGoToNewRow () |
Public Member Functions | |
KexiDataAwareView (KexiMainWindow *mainWin, QWidget *parent, const char *name=0) | |
QWidget * | mainWidget () |
virtual QSize | minimumSizeHint () const |
virtual QSize | sizeHint () const |
KexiDataAwareObjectInterface * | dataAwareObject () const |
virtual bool | setupFindAndReplace (QStringList &columnNames, QStringList &columnCaptions, QString ¤tColumnName) |
virtual tristate | find (const QVariant &valueToFind, const KexiSearchAndReplaceViewInterface::Options &options, bool next) |
virtual tristate | findNextAndReplace (const QVariant &valueToFind, const QVariant &replacement, const KexiSearchAndReplaceViewInterface::Options &options, bool replaceAll) |
Protected Slots | |
void | slotCellSelected (int col, int row) |
void | reloadActions () |
void | slotUpdateRowActions (int row) |
void | slotClosing (bool &cancel) |
Protected Member Functions | |
void | init (QWidget *viewWidget, KexiSharedActionClient *actionClient, KexiDataAwareObjectInterface *dataAwareObject, bool noDataAware=false) |
void | initActions () |
virtual void | updateActions (bool activated) |
Protected Attributes | |
QWidget * | m_internalView |
KexiSharedActionClient * | m_actionClient |
KexiDataAwareObjectInterface * | m_dataAwareObject |
Member Function Documentation
bool KexiDataAwareView::setupFindAndReplace | ( | QStringList & | columnNames, | |
QStringList & | columnCaptions, | |||
QString & | currentColumnName | |||
) | [virtual] |
Sets up data for find/replace dialog, based on view's data model. Implemented for KexiSearchAndReplaceViewInterface.
Implements KexiSearchAndReplaceViewInterface.
Definition at line 309 of file kexidataawareview.cpp.
tristate KexiDataAwareView::find | ( | const QVariant & | valueToFind, | |
const KexiSearchAndReplaceViewInterface::Options & | options, | |||
bool | next | |||
) | [virtual] |
Finds valueToFind within the view. Implemented for KexiSearchAndReplaceViewInterface.
Implements KexiSearchAndReplaceViewInterface.
Definition at line 332 of file kexidataawareview.cpp.
tristate KexiDataAwareView::findNextAndReplace | ( | const QVariant & | valueToFind, | |
const QVariant & | replacement, | |||
const KexiSearchAndReplaceViewInterface::Options & | options, | |||
bool | replaceAll | |||
) | [virtual] |
Finds valueToFind within the view and replaces with replacement. Implemented for KexiSearchAndReplaceViewInterface.
Implements KexiSearchAndReplaceViewInterface.
Definition at line 355 of file kexidataawareview.cpp.
void KexiDataAwareView::init | ( | QWidget * | viewWidget, | |
KexiSharedActionClient * | actionClient, | |||
KexiDataAwareObjectInterface * | dataAwareObject, | |||
bool | noDataAware = false | |||
) | [protected] |
before closing - we'are accepting editing
updating actions on start/stop editing
Definition at line 39 of file kexidataawareview.cpp.
void KexiDataAwareView::initActions | ( | ) | [protected] |
- Todo:
- plugSharedAction("data_filter", this, SLOT(???()));
- Todo:
- update availability
- Todo:
- plugSharedAction("edit_replace", this, SLOT(editReplace()));
- Todo:
- m_actionClient->plugSharedAction(sharedAction("edit_replace")); //for proper shortcut
- Todo:
- setAvailable("edit_replace", true);
Definition at line 73 of file kexidataawareview.cpp.
void KexiDataAwareView::updateActions | ( | bool | activated | ) | [protected, virtual] |
Updates actions (e.g. availability). Reimplement it, if needed (you must call superclass impelmentation at the end!). This implementation does nothing for this view but calls updateActions() for every child-view of this view. called by KexiDialogBase on dialog's activation (activated is true) or deactivation.
Reimplemented from KexiViewBase.
Reimplemented in KexiTableDesignerView.
Definition at line 178 of file kexidataawareview.cpp.
The documentation for this class was generated from the following files: