#include <kexidataawareview.h>
|
| | KexiDataAwareView (KexiMainWindow *mainWin, TQWidget *parent, const char *name=0) |
| |
| TQWidget * | mainWidget () |
| |
| virtual TQSize | minimumSizeHint () const |
| |
| virtual TQSize | sizeHint () const |
| |
| KexiDataAwareObjectInterface * | dataAwareObject () const |
| |
| virtual bool | setupFindAndReplace (TQStringList &columnNames, TQStringList &columnCaptions, TQString ¤tColumnName) |
| |
| 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) |
| |
| | KexiViewBase (KexiMainWindow *mainWin, TQWidget *parent, const char *name=0) |
| |
| KexiMainWindow * | mainWin () const |
| |
| KexiDialogBase * | parentDialog () const |
| |
| KexiPart::Part * | part () const |
| |
| virtual TQSize | preferredSizeHint (const TQSize &otherSize) |
| |
| virtual bool | eventFilter (TQObject *o, TQEvent *e) |
| |
| void | addChildView (KexiViewBase *childView) |
| |
| virtual bool | dirty () const |
| |
| int | viewMode () const |
| |
| virtual TDEAction * | sharedAction (const char *action_name) |
| |
| virtual void | setAvailable (const char *action_name, bool set) |
| |
| | KexiActionProxy (TQObject *receiver, KexiSharedActionHost *host=0) |
| |
| bool | activateSharedAction (const char *action_name, bool alsoCheckInChildren=true) |
| |
| void | setSharedActionHost (KexiSharedActionHost &host) |
| |
| bool | isAvailable (const char *action_name, bool alsoCheckInChildren=true) const |
| |
| bool | isSupported (const char *action_name) const |
| |
| void | setActionProxyParent_internal (KexiActionProxy *parent) |
| |
|
| void | init (TQWidget *viewWidget, KexiSharedActionClient *actionClient, KexiDataAwareObjectInterface *dataAwareObject, bool noDataAware=false) |
| |
| void | initActions () |
| |
| virtual void | updateActions (bool activated) |
| |
| virtual tristate | beforeSwitchTo (int mode, bool &dontStore) |
| |
| virtual tristate | afterSwitchFrom (int mode) |
| |
| virtual void | closeEvent (TQCloseEvent *e) |
| |
| virtual KoProperty::Set * | propertySet () |
| |
| void | propertySetReloaded (bool preservePrevSelection=false, const TQCString &propertyToSelect=TQCString()) |
| |
| virtual KexiDB::SchemaData * | storeNewData (const KexiDB::SchemaData &sdata, bool &cancel) |
| |
| bool | loadDataBlock (TQString &dataString, const TQString &dataID=TQString(), bool canBeEmpty=false) |
| |
| virtual tristate | storeData (bool dontAsk=false) |
| |
| bool | storeDataBlock (const TQString &dataString, const TQString &dataID=TQString()) |
| |
| bool | removeDataBlock (const TQString &dataID=TQString()) |
| |
| void | setViewWidget (TQWidget *w, bool focusProxy=false) |
| |
| virtual void | setFocusInternal () |
| |
| virtual void | parentDialogDetached () |
| |
| virtual void | parentDialogAttached () |
| |
| void | plugSharedAction (const char *action_name, TQObject *receiver, const char *slot) |
| |
| void | unplugSharedAction (const char *action_name) |
| |
| void | plugSharedAction (const char *action_name, const char *slot) |
| |
| int | plugSharedAction (const char *action_name, TQWidget *w) |
| |
| void | plugSharedActionToExternalGUI (const char *action_name, KXMLGUIClient *client) |
| |
| void | plugSharedActionsToExternalGUI (const TQValueList< TQCString > &action_names, KXMLGUIClient *client) |
| |
| void | unplugSharedAction (const char *action_name, TQWidget *w) |
| |
| TDEAction * | plugSharedAction (const char *action_name, const TQString &alternativeText, TQWidget *w) |
| |
| TQObject * | receiver () const |
| |
| void | addActionProxyChild (KexiActionProxy *child) |
| |
| void | takeActionProxyChild (KexiActionProxy *child) |
| |
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.
◆ KexiDataAwareView()
| KexiDataAwareView::KexiDataAwareView |
( |
KexiMainWindow * |
mainWin, |
|
|
TQWidget * |
parent, |
|
|
const char * |
name = 0 |
|
) |
| |
◆ acceptRowEdit
| bool KexiDataAwareView::acceptRowEdit |
( |
| ) |
|
|
slot |
◆ cancelRowEdit
| void KexiDataAwareView::cancelRowEdit |
( |
| ) |
|
|
slot |
◆ copySelection
| void KexiDataAwareView::copySelection |
( |
| ) |
|
|
slot |
◆ cutSelection
| void KexiDataAwareView::cutSelection |
( |
| ) |
|
|
slot |
◆ dataAwareObject()
◆ deleteAllRows
| void KexiDataAwareView::deleteAllRows |
( |
| ) |
|
|
slot |
◆ deleteAndStartEditCurrentCell
| void KexiDataAwareView::deleteAndStartEditCurrentCell |
( |
| ) |
|
|
slot |
◆ deleteCurrentRow
| void KexiDataAwareView::deleteCurrentRow |
( |
| ) |
|
|
slot |
◆ find()
◆ findNextAndReplace()
◆ init()
before closing - we'are accepting editing
updating actions on start/stop editing
Definition at line 39 of file kexidataawareview.cpp.
◆ initActions()
| void KexiDataAwareView::initActions |
( |
| ) |
|
|
protected |
- Todo:
- plugSharedAction("data_filter", this, TQ_SLOT(???()));
- Todo:
- update availability
- Todo:
- plugSharedAction("edit_replace", this, TQ_SLOT(editReplace()));
- Todo:
- Todo:
- m_actionClient->plugSharedAction(sharedAction("edit_replace")); //for proper shortcut
- Todo:
- setAvailable("edit_replace", true);
Definition at line 73 of file kexidataawareview.cpp.
◆ mainWidget()
| TQWidget * KexiDataAwareView::mainWidget |
( |
| ) |
|
◆ minimumSizeHint()
| TQSize KexiDataAwareView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
◆ paste
| void KexiDataAwareView::paste |
( |
| ) |
|
|
slot |
◆ reloadActions
| void KexiDataAwareView::reloadActions |
( |
| ) |
|
|
protectedslot |
◆ setupFindAndReplace()
| bool KexiDataAwareView::setupFindAndReplace |
( |
TQStringList & |
columnNames, |
|
|
TQStringList & |
columnCaptions, |
|
|
TQString & |
currentColumnName |
|
) |
| |
|
virtual |
◆ sizeHint()
| TQSize KexiDataAwareView::sizeHint |
( |
| ) |
const |
|
virtual |
◆ slotCellSelected
| void KexiDataAwareView::slotCellSelected |
( |
int |
col, |
|
|
int |
row |
|
) |
| |
|
protectedslot |
◆ slotClosing
| void KexiDataAwareView::slotClosing |
( |
bool & |
cancel | ) |
|
|
protectedslot |
◆ slotGoToFirstRow
| void KexiDataAwareView::slotGoToFirstRow |
( |
| ) |
|
|
slot |
◆ slotGoToLastRow
| void KexiDataAwareView::slotGoToLastRow |
( |
| ) |
|
|
slot |
◆ slotGoToNewRow
| void KexiDataAwareView::slotGoToNewRow |
( |
| ) |
|
|
slot |
◆ slotGoToNextRow
| void KexiDataAwareView::slotGoToNextRow |
( |
| ) |
|
|
slot |
◆ slotGoToPreviusRow
| void KexiDataAwareView::slotGoToPreviusRow |
( |
| ) |
|
|
slot |
◆ slotUpdateRowActions
| void KexiDataAwareView::slotUpdateRowActions |
( |
int |
row | ) |
|
|
protectedslot |
◆ sortAscending
| void KexiDataAwareView::sortAscending |
( |
| ) |
|
|
slot |
◆ sortDescending
| void KexiDataAwareView::sortDescending |
( |
| ) |
|
|
slot |
◆ startEditOrToggleValue
| void KexiDataAwareView::startEditOrToggleValue |
( |
| ) |
|
|
slot |
◆ updateActions()
| void KexiDataAwareView::updateActions |
( |
bool |
activated | ) |
|
|
protectedvirtual |
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.
◆ m_actionClient
◆ m_dataAwareObject
◆ m_internalView
| TQWidget* KexiDataAwareView::m_internalView |
|
protected |
The documentation for this class was generated from the following files:
|