kexi

KexiDataAwareView Class Reference

#include <kexidataawareview.h>

Inheritance diagram for KexiDataAwareView:

KexiViewBase KexiActionProxy KexiDataTable KexiFormView KexiAlterTable_DataView KexiAlterTableDialog KexiQueryView List of all members.

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.

Definition at line 38 of file kexidataawareview.h.


Public Slots

void deleteAllRows ()
void deleteCurrentRow ()
void deleteAndStartEditCurrentCell ()
void startEditOrToggleValue ()
bool acceptRowEdit ()
void cancelRowEdit ()
void sortAscending ()
void sortDescending ()

Public Member Functions

 KexiDataAwareView (KexiMainWindow *mainWin, QWidget *parent, const char *name=0)
QWidget * mainWidget ()
virtual QSize minimumSizeHint () const
virtual QSize sizeHint () const
KexiDataAwareObjectInterfacedataAwareObject () const

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
KexiSharedActionClientm_actionClient
KexiDataAwareObjectInterfacem_dataAwareObject

Member Function Documentation

void KexiDataAwareView::init ( QWidget *  viewWidget,
KexiSharedActionClient actionClient,
KexiDataAwareObjectInterface dataAwareObject,
bool  noDataAware = false 
) [protected]

Definition at line 37 of file kexidataawareview.cpp.

void KexiDataAwareView::initActions (  )  [protected]

Definition at line 71 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 KexiAlterTableDialog.

Definition at line 135 of file kexidataawareview.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys