KexiReportView Class Reference
#include <kexireportview.h>
Inheritance diagram for KexiReportView:

Detailed Description
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 62 of file kexireportview.h.
Public Types | |
| enum | ResizeMode { ResizeAuto = 0, ResizeDefault = ResizeAuto, ResizeFixed = 1, NoResize = 2 } |
Public Slots | |
| virtual void | show () |
Public Member Functions | |
| KexiReportView (KexiMainWindow *win, QWidget *parent, const char *name, KexiDB::Connection *conn) | |
| virtual | ~KexiReportView () |
| KexiDB::Connection * | connection () |
| virtual QSize | preferredSizeHint (const QSize &otherSize) |
| int | resizeMode () const |
Protected Slots | |
| void | slotPropertySetSwitched (KoProperty::Set *set, bool forceReload=false) |
| void | slotDirty (KFormDesigner::Form *f, bool isDirty) |
| void | slotFocus (bool in) |
Protected Member Functions | |
| 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 (QResizeEvent *) |
Member Enumeration Documentation
|
|
Definition at line 67 of file kexireportview.h. |
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Definition at line 83 of file kexireportview.cpp. References Kexi::DataViewMode, KexiViewBase::dirty(), KexiViewBase::focus(), initForm(), KexiActionProxy::plugSharedAction(), KexiViewBase::propertySetSwitched(), reportPart(), KFormDesigner::FormManager::self(), KexiScrollView::setResizingEnabled(), KexiViewBase::setViewWidget(), KexiScrollView::setWidget(), slotDirty(), slotFocus(), slotPropertySetSwitched(), and KexiViewBase::viewMode(). |
|
|
Definition at line 155 of file kexireportview.cpp. References KexiViewBase::propertySetSwitched(). |
Member Function Documentation
|
|
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.
Reimplemented from KexiViewBase. Definition at line 264 of file kexireportview.cpp. References Kexi::DataViewMode, Kexi::DesignViewMode, initForm(), KexiScrollView::setWidget(), tempData(), and KexiViewBase::viewMode(). |
|
||||||||||||
|
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.
Reimplemented from KexiViewBase. Definition at line 247 of file kexireportview.cpp. References Kexi::DataViewMode, KexiViewBase::dirty(), form(), KFormDesigner::FormIO::saveFormToString(), tempData(), and KexiViewBase::viewMode(). |
|
|
Definition at line 77 of file kexireportview.h. Referenced by KexiSubReport::setReportName(). |
|
|
|
|
|
|
|
|
Definition at line 165 of file kexireportview.cpp. References Kexi::DataViewMode, tempData(), and KexiViewBase::viewMode(). Referenced by beforeSwitchTo(), initForm(), loadForm(), slotDirty(), slotFocus(), and storeData(). |
|
|
Definition at line 183 of file kexireportview.cpp. References Kexi::DataViewMode, form(), KexiReportPart::library(), loadForm(), KexiViewBase::mainWin(), KexiViewBase::parentDialog(), KexiScrollView::refreshContentsSize(), KFormDesigner::FormManager::self(), KexiReportScrollView::setForm(), setForm(), and KexiViewBase::viewMode(). Referenced by afterSwitchFrom(), and KexiReportView(). |
|
|
Definition at line 218 of file kexireportview.cpp. References Kexi::DataViewMode, form(), kexipluginsdbg, KexiViewBase::loadDataBlock(), KFormDesigner::FormIO::loadFormFromString(), KexiViewBase::parentDialog(), tempData(), and KexiViewBase::viewMode(). Referenced by initForm(). |
|
|
Reimplemented from KexiViewBase. Definition at line 432 of file kexireportview.cpp. References KexiViewBase::preferredSizeHint(). |
|
|
Reimplemented from KexiViewBase. Definition at line 102 of file kexireportview.h. |
|
|
Definition at line 109 of file kexireportview.h. References KexiViewBase::part(). Referenced by KexiReportView(). |
|
|
Definition at line 441 of file kexireportview.cpp. References Kexi::DataViewMode, KexiScrollView::refreshContentsSizeLater(), KexiScrollView::updateNavPanelGeometry(), and KexiViewBase::viewMode(). |
|
|
Definition at line 81 of file kexireportview.h. Referenced by show(), and KexiReportScrollView::show(). |
|
|
Definition at line 174 of file kexireportview.cpp. References Kexi::DataViewMode, tempData(), and KexiViewBase::viewMode(). Referenced by initForm(). |
|
|
Reimplemented to update resize policy. Definition at line 454 of file kexireportview.cpp. References Kexi::DataViewMode, ResizeAuto, resizeMode(), and KexiViewBase::viewMode(). |
|
||||||||||||
|
Definition at line 296 of file kexireportview.cpp. References form(), and KexiViewBase::setDirty(). Referenced by KexiReportView(). |
|
|
Definition at line 469 of file kexireportview.cpp. References form(), and KFormDesigner::FormManager::self(). Referenced by KexiReportView(). |
|
||||||||||||
|
Definition at line 237 of file kexireportview.cpp. References KexiViewBase::propertySetReloaded(), and KexiViewBase::propertySetSwitched(). Referenced by KexiReportView(). |
|
|
Tells this view to store data changes on the backend. Called by KexiDialogBase::storeData(). Default implementation:
Reimpelment this for your needs. Should return true on success or cancelled when the task should be cancelled.
Reimplemented from KexiViewBase. Definition at line 322 of file kexireportview.cpp. References form(), kexipluginsdbg, KexiViewBase::parentDialog(), KFormDesigner::FormIO::saveFormToString(), KexiViewBase::storeDataBlock(), and tempData(). Referenced by 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:
Reimplemented from KexiViewBase. Definition at line 303 of file kexireportview.cpp. References KexiDB::SchemaData::id(), kexipluginsdbg, KexiDB::Connection::removeObject(), storeData(), and KexiViewBase::storeNewData(). |
|
|
Definition at line 107 of file kexireportview.h. References KexiViewBase::parentDialog(). Referenced by afterSwitchFrom(), beforeSwitchTo(), form(), loadForm(), setForm(), and storeData(). |
The documentation for this class was generated from the following files:
