kexi
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 () |
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) |
virtual QSize | minimumSizeHint () const |
virtual QSize | sizeHint () const |
KexiMainWindow * | mainWin () |
void | setId (int id) |
int | id () const |
KexiPart::Part * | part () const |
KexiPart::Item * | partItem () const |
KexiPart::GUIClient * | commonGUIClient () const |
KexiPart::GUIClient * | guiClient () const |
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 |
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) |
void | registerDialog () |
virtual void | closeEvent (QCloseEvent *e) |
void | addView (KexiViewBase *view, int mode) |
QWidgetStack * | stack () const |
void | dirtyChanged () |
Protected Attributes | |
int | m_supportedViewModes |
int | m_openedViewModes |
int | m_currentViewMode |
Friends | |
class | KexiMainWindow |
class | KexiPart::Part |
class | KexiInternalPart |
class | KexiViewBase |
Member Function Documentation
|
Called primarily by KexiMainWindowImpl to activate dialog. Selected view (if present) is also informed about activation. Definition at line 595 of file kexidialogbase.cpp. |
|
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. |
|
Used by Main Window
Definition at line 150 of file kexidialogbase.cpp. |
|
emitted when the window is about to close
|
|
Kexi dialog's gui COMMON client. It's obtained by querying part object for this dialog. Definition at line 264 of file kexidialogbase.cpp. |
|
Definition at line 154 of file kexidialogbase.h. |
|
Called primarily by KexiMainWindowImpl to deactivate dialog. Selected view (if present) is also informed about deactivation. Definition at line 610 of file kexidialogbase.cpp. |
|
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 213 of file kexidialogbase.cpp. |
|
Emited to inform the world that 'dirty' flag changes. Activated by KexiViewBase::setDirty(). |
|
Internal reimplementation. Definition at line 404 of file kexidialogbase.cpp. |
|
Kexi dialog's gui client for currently selected view. It's obtained by querying part object for this dialog. Definition at line 257 of file kexidialogbase.cpp. |
|
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 162 of file kexidialogbase.cpp. |
|
Definition at line 245 of file kexidialogbase.cpp. |
|
reimplemented: minimum size hint is inherited from currently visible view. Definition at line 110 of file kexidialogbase.cpp. |
|
Definition at line 466 of file kexidialogbase.cpp. |
|
Definition at line 124 of file kexidialogbase.h. |
|
Definition at line 127 of file kexidialogbase.h. |
|
Definition at line 396 of file kexidialogbase.cpp. |
|
Definition at line 79 of file kexidialogbase.cpp. |
|
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 624 of file kexidialogbase.cpp. |
|
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 617 of file kexidialogbase.cpp. |
|
Sets 'dirty' flag on every dialog's view. Definition at line 230 of file kexidialogbase.cpp. |
|
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. |
|
reimplemented: size hint is inherited from currently visible view. Definition at line 118 of file kexidialogbase.cpp. |
|
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 559 of file kexidialogbase.cpp. |
|
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 471 of file kexidialogbase.cpp. |
|
Definition at line 151 of file kexidialogbase.h. |
|
Used by Part::openInstance(), like switchToViewMode( int newViewMode ), but passed staticObjectArgs. Only used for parts of class KexiPart::StaticPart. Definition at line 271 of file kexidialogbase.cpp. |
|
Switches this dialog to newViewMode. viewMode is one of Kexi::ViewMode enum elements.
Definition at line 376 of file kexidialogbase.cpp. |
|
Used by KexiViewBase subclasses.
Definition at line 199 of file kexidialogbase.h. |
|
Definition at line 87 of file kexidialogbase.cpp. |
The documentation for this class was generated from the following files: