KexiDialogBase Class Reference
#include <kexidialogbase.h>
Inheritance diagram for KexiDialogBase:

Detailed Description
Base class for child window of Kexi's main application window.This class can contain a number of configurable views, switchable using toggle action. It also automatically works as a proxy for shared (application-wide) actions.
Definition at line 75 of file kexidialogbase.h.
Public Slots | |
| virtual void | setFocus () |
| void | updateCaption () |
| tristate | storeData (bool dontAsk=false) |
| tristate | storeNewData () |
| void | sendDetachedStateToCurrentView () |
| void | sendAttachedStateToCurrentView () |
Signals | |
| void | updateContextHelp () |
| void | closing () |
| emitted when the window is about to close | |
| void | dirtyChanged (KexiDialogBase *) |
Public Member Functions | |
| KexiDialogBase (KexiMainWindow *parent, const QString &caption=QString::null) | |
| virtual | ~KexiDialogBase () |
| bool | isRegistered () |
| KexiViewBase * | selectedView () const |
| KexiViewBase * | viewForMode (int mode) const |
| void | addView (KexiViewBase *view) |
| Adds view for the dialog. It will be the _only_ view (of unspecified mode) for the dialog. | |
| virtual QSize | minimumSizeHint () const |
| virtual QSize | sizeHint () const |
| KexiMainWindow * | mainWin () const |
| void | setId (int id) |
| int | id () const |
| KexiPart::Part * | part () const |
| KexiPart::Item * | partItem () const |
| KexiPart::GUIClient * | commonGUIClient () const |
| Kexi dialog's gui COMMON client. | |
| KexiPart::GUIClient * | guiClient () const |
| Kexi dialog's gui client for currently selected view. | |
| virtual QString | itemIcon () |
| bool | supportsViewMode (int mode) const |
| int | currentViewMode () const |
| tristate | switchToViewMode (int newViewMode) |
| void | setContextHelp (const QString &caption, const QString &text, const QString &iconName) |
| virtual bool | eventFilter (QObject *obj, QEvent *e) |
| virtual void | attachToGUIClient () |
| virtual void | detachFromGUIClient () |
| bool | dirty () const |
| KexiViewBase * | viewThatRecentlySetDirtyFlag () const |
| bool | neverSaved () const |
| KoProperty::Set * | propertySet () |
| KexiDB::SchemaData * | schemaData () const |
| KexiDialogTempData * | tempData () const |
| void | activate () |
| void | deactivate () |
Protected Slots | |
| void | setDirty (bool dirty) |
Protected Member Functions | |
| tristate | switchToViewMode (int newViewMode, QMap< QString, QString > *staticObjectArgs, bool &proposeOpeningInTextViewModeBecauseOfProblems) |
| void | registerDialog () |
| virtual void | closeEvent (QCloseEvent *e) |
| void | addView (KexiViewBase *view, int mode) |
| void | removeView (int mode) |
| QWidgetStack * | stack () const |
| void | dirtyChanged (KexiViewBase *view) |
| Used by view to inform the dialog about changing state of the "dirty" flag. | |
| bool | isDesignModePreloadedForTextModeHackUsed (int newViewMode) const |
Protected Attributes | |
| int | m_supportedViewModes |
| int | m_openedViewModes |
| int | m_currentViewMode |
Friends | |
| class | KexiMainWindow |
| class | KexiPart::Part |
| class | KexiInternalPart |
| class | KexiViewBase |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 44 of file kexidialogbase.cpp. References m_currentViewMode, m_openedViewModes, m_supportedViewModes, and Kexi::NoViewMode. |
|
|
Definition at line 74 of file kexidialogbase.cpp. |
Member Function Documentation
|
|
Called primarily by KexiMainWindowImpl to activate dialog. Selected view (if present) is also informed about activation. Definition at line 624 of file kexidialogbase.cpp. References KexiUtils::hasParent(), and selectedView(). Referenced by eventFilter(), and setFocus(). |
|
||||||||||||
|
Definition at line 97 of file kexidialogbase.cpp. References m_openedViewModes. |
|
|
Adds view for the dialog. It will be the _only_ view (of unspecified mode) for the dialog.
Definition at line 92 of file kexidialogbase.cpp. Referenced by KexiInternalPart::findOrCreateKexiDialog(), and switchToViewMode(). |
|
|
Used by Main Window
Definition at line 160 of file kexidialogbase.cpp. References guiClient(). Referenced by KexiMainWindowImpl::activeWindowChanged(). |
|
|
Definition at line 186 of file kexidialogbase.cpp. References KexiMainWindow::acceptPropertySetEditing(), closing(), and KexiViewBase::closing(). |
|
|
emitted when the window is about to close
Referenced by closeEvent(). |
|
|
Kexi dialog's gui COMMON client. It's obtained by querying part object for this dialog. Definition at line 274 of file kexidialogbase.cpp. Referenced by KexiMainWindowImpl::activeWindowChanged(), and KexiMainWindowImpl::closeDialog(). |
|
|
Definition at line 154 of file kexidialogbase.h. Referenced by KexiMainWindowImpl::activeWindowChanged(), and KexiTablePart::i18nMessage(). |
|
|
Called primarily by KexiMainWindowImpl to deactivate dialog. Selected view (if present) is also informed about deactivation. Definition at line 639 of file kexidialogbase.cpp. References selectedView(), and KexiViewBase::updateActions(). |
|
|
Definition at line 166 of file kexidialogbase.cpp. References guiClient(). |
|
|
True if contents (data) of the dialog is dirty and need to be saved This may or not be used, depending if changes in the dialog are saved immediately (e.g. like in datatableview) or saved by hand (by user) (e.g. like in alter-table dialog).
Definition at line 223 of file kexidialogbase.cpp. References m_openedViewModes. Referenced by KexiMainWindowImpl::closeDialog(), dirtyChanged(), and updateCaption(). |
|
|
Used by view to inform the dialog about changing state of the "dirty" flag.
Definition at line 450 of file kexidialogbase.cpp. References dirty(), dirtyChanged(), and updateCaption(). |
|
|
Emited to inform the world that 'dirty' flag changes. Activated by KexiViewBase::setDirty(). Referenced by dirtyChanged(), KexiViewBase::setDirty(), and setDirty(). |
|
||||||||||||
|
Internal reimplementation. Definition at line 432 of file kexidialogbase.cpp. References activate(), and KexiUtils::hasParent(). |
|
|
Kexi dialog's gui client for currently selected view. It's obtained by querying part object for this dialog. Definition at line 267 of file kexidialogbase.cpp. References m_currentViewMode. Referenced by KexiMainWindowImpl::activeWindowChanged(), attachToGUIClient(), KexiMainWindowImpl::closeDialog(), and detachFromGUIClient(). |
|
|
If there is a part item associated with this dialog (see partItem()), partItem()->identifier() is returned, otherwise internal dialog's identifier (previously set by setID()) is returned. Definition at line 172 of file kexidialogbase.cpp. References partItem(). Referenced by KexiMainWindowImpl::childClosed(), KexiMainWindowImpl::closeDialog(), KexiViewBase::loadDataBlock(), KexiPart::Part::loadDataBlock(), KexiMainWindowImpl::registerChild(), KexiViewBase::removeDataBlock(), KexiViewBase::storeDataBlock(), and KexiMainWindowImpl::Private::updateDialogId(). |
|
|
Definition at line 281 of file kexidialogbase.cpp. References Kexi::DesignViewMode, supportsViewMode(), Kexi::TextViewMode, and viewForMode(). Referenced by switchToViewMode(). |
|
|
Definition at line 156 of file kexidialogbase.cpp. Referenced by KexiMainWindowImpl::activeWindowChanged(). |
|
|
Definition at line 255 of file kexidialogbase.cpp. References KexiViewBase::m_defaultIconName, and selectedView(). Referenced by KexiPart::Part::openInstance(). |
|
|
|
reimplemented: minimum size hint is inherited from currently visible view. Definition at line 120 of file kexidialogbase.cpp. References selectedView(). Referenced by KexiPart::Part::openInstance(). |
|
|
Definition at line 495 of file kexidialogbase.cpp. References KexiPart::Item::neverSaved(). Referenced by KexiQueryDesignerGuiEditor::afterSwitchFrom(), KexiTablePart::i18nMessage(), storeData(), and storeNewData(). |
|
|
Definition at line 124 of file kexidialogbase.h. Referenced by KexiMainWindowImpl::closeDialog(), KexiQueryPart::createTempData(), KexiViewBase::part(), and storeNewData(). |
|
|
Definition at line 127 of file kexidialogbase.h. Referenced by KexiMainWindowImpl::closeDialog(), KexiQueryPart::createTempData(), id(), and KexiMainWindowImpl::printActionForItem(). |
|
|
Definition at line 424 of file kexidialogbase.cpp. References KexiViewBase::propertySet(), and selectedView(). |
|
|
Definition at line 141 of file kexidialogbase.cpp. References KexiMainWindow::registerChild(). Referenced by KexiInternalPart::findOrCreateKexiDialog(), and KexiPart::Part::openInstance(). |
|
|
Definition at line 110 of file kexidialogbase.cpp. References m_openedViewModes, and viewForMode(). Referenced by switchToViewMode(). |
|
|
Definition at line 198 of file kexidialogbase.h. Referenced by KexiTableDesignerView::simulateAlterTableExecution(), KexiViewBase::storeData(), KexiTableDesignerView::storeData(), KexiQueryDesignerGuiEditor::storeLayout(), and KexiTableDesignerView::storeNewData(). |
|
|
Definition at line 79 of file kexidialogbase.cpp. References m_currentViewMode. Referenced by KexiMacro::NavigateAction::activate(), activate(), deactivate(), itemIcon(), minimumSizeHint(), KexiPart::Part::openInstance(), KexiMainWindowImpl::printActionForItem(), propertySet(), sendAttachedStateToCurrentView(), sendDetachedStateToCurrentView(), sizeHint(), storeData(), storeNewData(), and switchToViewMode(). |
|
|
W're informing the current view about performed atttaching by calling KexiViewBase::parentDialogAttached(), so the view can react on this event (by default KexiViewBase::parentDialogAttached() does nothing, you can reimplement it). Definition at line 653 of file kexidialogbase.cpp. References KexiViewBase::parentDialogAttached(), and selectedView(). |
|
|
Reimplemented - we're informing the current view about performed detaching by calling KexiViewBase::parentDialogDetached(), so the view can react on this event (by default KexiViewBase::parentDialogDetached() does nothing, you can reimplement it). Definition at line 646 of file kexidialogbase.cpp. References KexiViewBase::parentDialogDetached(), and selectedView(). |
|
||||||||||||||||
|
Definition at line 177 of file kexidialogbase.cpp. References updateContextHelp(). |
|
|
Sets 'dirty' flag on every dialog's view. Definition at line 240 of file kexidialogbase.cpp. References dirtyChanged(), and m_openedViewModes. Referenced by storeData(), and storeNewData(). |
|
|
Definition at line 409 of file kexidialogbase.cpp. References activate(). Referenced by KexiMainWindowImpl::activeWindowChanged(), and switchToViewMode(). |
|
|
This method sets internal identifier for the dialog, but if there is a part item associated with this dialog (see partItem()), partItem()->identifier() will be is used as identifier, so this method is noop. Thus, it's usable only for dialog types when no part item is assigned. Definition at line 116 of file kexidialogbase.h. Referenced by KexiScriptPart::execute(), KexiMacroPart::execute(), KexiInternalPart::findOrCreateKexiDialog(), KexiPart::Part::openInstance(), KexiQueryDesignerSQLView::storeNewData(), and KexiQueryDesignerGuiEditor::storeNewData(). |
|
|
reimplemented: size hint is inherited from currently visible view. Definition at line 128 of file kexidialogbase.cpp. References KexiViewBase::preferredSizeHint(), and selectedView(). Referenced by KexiPart::Part::openInstance(). |
|
|
Definition at line 284 of file kexidialogbase.h. Referenced by KexiPart::Part::openInstance(). |
|
|
Internal. Called by KexiMainWindowImpl::saveObject(). Tells this dialog to save changes of the existing object to the backend. If dontAsk is true, no question dialog will be shown to the user. The default is false.
Definition at line 588 of file kexidialogbase.cpp. References KexiDB::TransactionGuard::commit(), KexiDB::Transaction::isNull(), neverSaved(), KexiMainWindow::project(), selectedView(), setDirty(), KexiViewBase::storeData(), and storeData_ERR. |
|
|
Internal. Called by KexiMainWindowImpl::saveObject(). Tells this dialog to create and store data of the new object to the backend. Object's schema data has been never stored, so it is created automatically, using information obtained form part item. On success, part item's ID is updated to new value, and m_schemaData is set.
Definition at line 500 of file kexidialogbase.cpp. References cancelled, KexiPart::Item::caption(), KexiDB::FieldList::debugString(), KexiPart::Item::description(), KexiDB::SchemaData::id(), kexidbg, KexiPart::Item::name(), neverSaved(), part(), KexiMainWindow::project(), selectedView(), KexiDB::SchemaData::setCaption(), KexiDB::SchemaData::setDescription(), setDirty(), KexiPart::Item::setIdentifier(), KexiDB::SchemaData::setName(), Kexi::ObjectStatus::setStatus(), KexiViewBase::storeNewData(), KexiDB::FieldList::subList(), and KexiPart::UserObjectType. |
|
|
Definition at line 151 of file kexidialogbase.h. Referenced by isDesignModePreloadedForTextModeHackUsed(), KexiViewBase::KexiViewBase(), and switchToViewMode(). |
|
||||||||||||||||
|
Used by Part::openInstance(), like switchToViewMode( int newViewMode ), but passed staticObjectArgs. Only used for parts of class KexiPart::StaticPart. Definition at line 288 of file kexidialogbase.cpp. References KexiMainWindow::acceptPropertySetEditing(), KexiActionProxy::addActionProxyChild(), addView(), KexiViewBase::afterSwitchFrom(), Kexi::ObjectStatus::append(), KexiViewBase::beforeSwitchTo(), cancelled, KexiPart::StaticPart::createView(), Kexi::DesignViewMode, KexiSharedActionHost::invalidateSharedActions(), isDesignModePreloadedForTextModeHackUsed(), m_currentViewMode, mainWin(), Kexi::nameForViewMode(), Kexi::NoViewMode, KexiViewBase::propertySetSwitched(), removeView(), KexiUtils::removeWaitCursor(), KexiMainWindow::saveObject(), selectedView(), setFocus(), Kexi::ObjectStatus::setStatus(), KexiUtils::setWaitCursor(), Kexi::ObjectStatus::status(), supportsViewMode(), switchToViewMode(), KexiActionProxy::takeActionProxyChild(), and tempData(). |
|
|
Switches this dialog to newViewMode. viewMode is one of Kexi::ViewMode enum elements.
Definition at line 403 of file kexidialogbase.cpp. Referenced by KexiPart::Part::openInstance(), and switchToViewMode(). |
|
|
Used by KexiViewBase subclasses.
Definition at line 203 of file kexidialogbase.h. Referenced by KexiTablePart::createView(), KexiQueryPart::loadSchemaData(), and switchToViewMode(). |
|
|
Definition at line 476 of file kexidialogbase.cpp. References dirty(), and KexiPart::Item::name(). Referenced by dirtyChanged(), KexiPart::Part::openInstance(), and KexiMainWindowImpl::slotObjectRenamed(). |
|
|
Referenced by setContextHelp(). |
|
|
Definition at line 87 of file kexidialogbase.cpp. Referenced by isDesignModePreloadedForTextModeHackUsed(), and removeView(). |
|
|
Definition at line 184 of file kexidialogbase.h. |
Friends And Related Function Documentation
|
|
Definition at line 347 of file kexidialogbase.h. |
|
|
Definition at line 344 of file kexidialogbase.h. |
|
|
Definition at line 346 of file kexidialogbase.h. |
|
|
Definition at line 348 of file kexidialogbase.h. |
Member Data Documentation
|
|
Definition at line 282 of file kexidialogbase.h. Referenced by guiClient(), KexiDialogBase(), selectedView(), and switchToViewMode(). |
|
|
Definition at line 281 of file kexidialogbase.h. Referenced by addView(), dirty(), KexiDialogBase(), removeView(), and setDirty(). |
|
|
Definition at line 280 of file kexidialogbase.h. Referenced by KexiDialogBase(), and KexiPart::Part::openInstance(). |
The documentation for this class was generated from the following files:
