#include <kexireportview.h>
|
| enum | ResizeMode { ResizeAuto = 0
, ResizeDefault = ResizeAuto
, ResizeFixed = 1
, NoResize = 2
} |
| |
|
| | KexiReportView (KexiMainWindow *win, TQWidget *parent, const char *name, KexiDB::Connection *conn) |
| |
| KexiDB::Connection * | connection () |
| |
| virtual TQSize | preferredSizeHint (const TQSize &otherSize) |
| |
| int | resizeMode () const |
| |
| | KexiViewBase (KexiMainWindow *mainWin, TQWidget *parent, const char *name=0) |
| |
| KexiMainWindow * | mainWin () const |
| |
| KexiDialogBase * | parentDialog () const |
| |
| KexiPart::Part * | part () const |
| |
| 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) |
| |
|
| virtual tristate | beforeSwitchTo (int mode, bool &dontStore) |
| |
| virtual tristate | afterSwitchFrom (int mode) |
| |
| virtual KoProperty::Set * | propertySet () |
| |
| virtual KexiDB::SchemaData * | storeNewData (const KexiDB::SchemaData &sdata, bool &cancel) |
| |
| virtual tristate | storeData (bool dontAsk=false) |
| |
| KexiReportPart::TempData * | tempData () const |
| |
| KexiReportPart * | reportPart () const |
| |
|
void | disableWidgetActions () |
| |
|
void | enableFormActions () |
| |
| KFormDesigner::Form * | form () const |
| |
| void | setForm (KFormDesigner::Form *f) |
| |
| void | initForm () |
| |
| void | loadForm () |
| |
| virtual void | resizeEvent (TQResizeEvent *) |
| |
| virtual void | closeEvent (TQCloseEvent *e) |
| |
| void | propertySetReloaded (bool preservePrevSelection=false, const TQCString &propertyToSelect=TQCString()) |
| |
| bool | loadDataBlock (TQString &dataString, const TQString &dataID=TQString(), bool canBeEmpty=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 | updateActions (bool activated) |
| |
| 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) |
| |
The FormPart's view.
This class presents a single view used inside KexiDialogBase. It takes care of saving/loading report, of enabling actions when needed. One KexiReportView object is instantiated for data view mode (preview == true in constructor), and second KexiReportView object is instantiated for design view mode (preview == false in constructor).
Definition at line 63 of file kexireportview.h.
◆ ResizeMode
| enum KexiReportView::ResizeMode |
◆ KexiReportView()
◆ ~KexiReportView()
| KexiReportView::~KexiReportView |
( |
| ) |
|
|
virtual |
◆ afterSwitchFrom()
| tristate KexiReportView::afterSwitchFrom |
( |
int |
mode | ) |
|
|
protectedvirtual |
called by KexiDialogBase::switchToViewMode() right after dialog is switched to new mode By default does nothing. Reimplement this if you need to do something after switching to this view. - Returns
- true if you accept or false if a error occupied and view shouldn't change If there is no error but switching should be just cancelled (probably after showing some info messages), you need to return cancelled.
Reimplemented from KexiViewBase.
Definition at line 264 of file kexireportview.cpp.
◆ beforeSwitchTo()
| tristate KexiReportView::beforeSwitchTo |
( |
int |
mode, |
|
|
bool & |
dontStore |
|
) |
| |
|
protectedvirtual |
called by KexiDialogBase::switchToViewMode() right before dialog is switched to new mode By default does nothing. Reimplement this if you need to do something before switching to this view. - Returns
- true if you accept or false if a error occupied and view shouldn't change If there is no error but switching should be just cancelled (probably after showing some info messages), you need to return cancelled. Set dontStore to true (it's false by default) if you want to avoid data storing by storeData() or storeNewData().
Reimplemented from KexiViewBase.
Definition at line 247 of file kexireportview.cpp.
◆ connection()
◆ form()
◆ initForm()
| void KexiReportView::initForm |
( |
| ) |
|
|
protected |
◆ loadForm()
| void KexiReportView::loadForm |
( |
| ) |
|
|
protected |
◆ preferredSizeHint()
| TQSize KexiReportView::preferredSizeHint |
( |
const TQSize & |
otherSize | ) |
|
|
virtual |
- Returns
- preferred size hint, that can be used to resize the view. It is computed using maximum of (a) otherSize and (b) current KMDI dock area's size, so the view won't exceed this maximum size. The method is used e.g. in KexiDialogBase::sizeHint(). If you reimplement this method, do not forget to return value of yoursize.boundedTo( KexiViewBase::preferredSizeHint(otherSize) ).
Reimplemented from KexiViewBase.
Definition at line 432 of file kexireportview.cpp.
◆ propertySet()
| virtual KoProperty::Set * KexiReportView::propertySet |
( |
| ) |
|
|
inlineprotectedvirtual |
- Returns
- a property set for this view. For reimplementation. By default returns NULL.
Reimplemented from KexiViewBase.
Definition at line 104 of file kexireportview.h.
◆ reportPart()
◆ resizeEvent()
| void KexiReportView::resizeEvent |
( |
TQResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ resizeMode()
| int KexiReportView::resizeMode |
( |
| ) |
const |
|
inline |
◆ setForm()
◆ show
| void KexiReportView::show |
( |
| ) |
|
|
virtualslot |
◆ slotDirty
◆ slotFocus
| void KexiReportView::slotFocus |
( |
bool |
in | ) |
|
|
protectedslot |
◆ slotPropertySetSwitched
| void KexiReportView::slotPropertySetSwitched |
( |
KoProperty::Set * |
set, |
|
|
bool |
forceReload = false |
|
) |
| |
|
protectedslot |
◆ storeData()
| tristate KexiReportView::storeData |
( |
bool |
dontAsk = false | ) |
|
|
protectedvirtual |
Tells this view to store data changes on the backend. Called by KexiDialogBase::storeData(). Default implementation:
- makes a deep copy of sdata
- stores object schema data sdata in 'kexi__objects' internal table using Connection::storeObjectSchemaData(). If dontAsk is true, no question dialog will be shown to the user. The default is false.
Reimpelment this for your needs. Should return true on success or cancelled when the task should be cancelled. - See also
- storeNewData()
Reimplemented from KexiViewBase.
Definition at line 322 of file kexireportview.cpp.
◆ storeNewData()
Tells this dialog to create and store data of the new object pointed by sdata on the backend. Called by KexiDialogBase::storeNewData(). Default implementation:
- makes a deep copy of sdata
- stores object schema data sdata in 'kexi__objects' internal table using Connection::storeObjectSchemaData(). Reimpelment this for your needs. Requirements:
- deep copy of sdata should be made
- schema data should be created at the backend (by calling KexiViewBase::storeNewData(const KexiDB::SchemaData& sdata)), or using Connection::storeObjectSchemaData() or more specialized method. For example, KexiAlterTableDialog uses Connection::createTable(TableSchema) for this (tableschema is SchemaData subclass) to store more information than just a schem adata. You should use such subclasses if needed. Should return newly created schema data object on success. In this case, do not store schema object yourself (make deep copy if needed).
Reimplemented from KexiViewBase.
Definition at line 303 of file kexireportview.cpp.
◆ tempData()
| KexiReportPart::TempData * KexiReportView::tempData |
( |
| ) |
const |
|
inlineprotected |
The documentation for this class was generated from the following files:
|