kexi
KexiMainWindowImpl Class Reference
#include <keximainwindowimpl.h>
Inheritance diagram for KexiMainWindowImpl:

Detailed Description
Kexi's main window implementation.
Definition at line 52 of file keximainwindowimpl.h.
Public Slots | |
virtual void | closeWindow (KMdiChildView *pWnd, bool layoutTaskBar=true) |
virtual void | addWindow (KMdiChildView *pView, int flags=KMdi::StandardAdd) |
virtual tristate | closeDialog (KexiDialogBase *dlg) |
tristate | closeDialog (KexiDialogBase *dlg, bool layoutTaskBar) |
virtual void | detachWindow (KMdiChildView *pWnd, bool bShow=true) |
virtual void | attachWindow (KMdiChildView *pWnd, bool bShow=true, bool bAutomaticResize=false) |
virtual KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0) |
virtual KexiDialogBase * | openObject (const QCString &mime, const QString &name, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0) |
virtual tristate | saveObject (KexiDialogBase *dlg, const QString &messageWhenAskingForName=QString::null, bool dontAsk=false) |
virtual tristate | getNewObjectInfo (KexiPart::Item *partItem, KexiPart::Part *part, bool &allowOverwriting, const QString &messageWhenAskingForName=QString::null) |
virtual void | highlightObject (const QCString &mime, const QCString &name) |
Public Member Functions | |
KexiMainWindowImpl () | |
virtual | ~KexiMainWindowImpl () |
virtual KexiProject * | project () |
virtual void | registerChild (KexiDialogBase *dlg) |
bool | activateWindow (int id) |
bool | activateWindow (KexiDialogBase *dlg) |
tristate | startup () |
bool | inFinalMode () const |
virtual bool | eventFilter (QObject *obj, QEvent *e) |
virtual QPopupMenu * | findPopupMenu (const char *popupName) |
virtual KActionPtrList | allActions () const |
virtual int | generatePrivateID () |
virtual void | readProperties (KConfig *config) |
virtual void | saveProperties (KConfig *config) |
virtual void | saveGlobalProperties (KConfig *sessionConfig) |
Protected Slots | |
void | slotAutoOpenObjectsLater () |
void | activeWindowChanged (KMdiChildView *dlg) |
void | childClosed (KMdiChildView *dlg) |
void | slotPartLoaded (KexiPart::Part *p) |
void | slotCaptionForCurrentMDIChild (bool childrenMaximized) |
void | slotNoMaximizedChildFrmLeft (KMdiChildFrm *) |
void | slotLastChildViewClosed () |
void | slotChildViewIsDetachedNow (QWidget *) |
void | createKexiProject (KexiProjectData *new_data) |
KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode, bool &openingCancelled) |
KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode) |
bool | newObject (KexiPart::Info *info) |
KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, QMap< QString, QString > *staticObjectArgs=0) |
tristate | removeObject (KexiPart::Item *item, bool dontAsk=false) |
void | renameObject (KexiPart::Item *item, const QString &_newName, bool &succes) |
virtual void | slotObjectRenamed (const KexiPart::Item &item, const QCString &oldName) |
virtual void | fillWindowMenu () |
void | invalidateSharedActions () |
void | invalidateSharedActionsLater () |
void | updateReadOnlyState () |
void | slotProjectNew () |
void | slotProjectOpen () |
void | slotProjectOpenRecentAboutToShow () |
void | slotProjectOpenRecent (int id) |
void | slotProjectOpenRecentMore () |
void | slotProjectSave () |
void | slotProjectSaveAs () |
void | slotProjectPrint () |
void | slotProjectPrintPreview () |
void | slotProjectPageSetup () |
void | slotProjectProperties () |
void | slotProjectClose () |
void | slotProjectRelations () |
void | slotProjectImportDataTable () |
void | slotProjectExportDataTable () |
void | slotProjectQuit () |
void | slotEditPasteSpecialDataTable () |
void | slotEditCopySpecialDataTable () |
void | slotViewNavigator () |
void | slotViewPropertyEditor () |
void | slotViewDataMode () |
void | slotViewDesignMode () |
void | slotViewTextMode () |
void | slotShowSettings () |
void | slotConfigureKeys () |
void | slotConfigureToolbars () |
void | slotToolsProjectMigration () |
void | slotGetNewStuff () |
void | slotTipOfTheDay () |
void | importantInfo (bool onStartup) |
void | slotImportantInfo () |
void | slotStartFeedbackAgent () |
void | slotOptionsEnableForms (bool show, bool noMessage=false) |
void | slotImportFile () |
void | slotImportServer () |
void | slotLastActions () |
virtual void | acceptPropertySetEditing () |
virtual void | propertySetSwitched (KexiDialogBase *dlg, bool force=false, bool preservePrevSelection=true) |
void | slotDirtyFlagChanged (KexiDialogBase *) |
void | slotMdiModeHasBeenChangedTo (KMdi::MdiMode) |
virtual void | switchToIDEAlMode () |
void | switchToIDEAlMode (bool showMessage) |
virtual void | switchToChildframeMode () |
void | switchToChildframeMode (bool showMessage) |
tristate | showProjectMigrationWizard (const QString &mimeType, const QString &databaseName, const KexiDB::ConnectionData *cdata=0) |
void | slotPartItemSelectedInNavigator (KexiPart::Item *item) |
void | exportItemAsDataTable (KexiPart::Item *item) |
bool | printItem (KexiPart::Item *item, const QString &titleText=QString::null) |
bool | printItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const QString &titleText=QString::null) |
bool | printPreviewForItem (KexiPart::Item *item, const QString &titleText=QString::null, bool reload=false) |
bool | printPreviewForItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const QString &titleText=QString::null, bool reload=false) |
tristate | pageSetupForItem (KexiPart::Item *item) |
tristate | printActionForItem (KexiPart::Item *item, PrintActionType action) |
Protected Member Functions | |
bool | initFinalMode (KexiProjectData *projectData) |
void | initNavigator () |
void | initContextHelp () |
void | initPropertyEditor () |
void | initActions () |
void | initUserActions () |
void | restoreSettings () |
void | storeSettings () |
void | invalidateActions () |
virtual void | invalidateSharedActions (QObject *o) |
void | invalidateProjectWideActions () |
void | invalidateViewModeActions () |
tristate | openProject (const KexiProjectData &projectData) |
tristate | openProject (const QString &aFileName, KexiDB::ConnectionData *cdata, const QString &dbName=QString::null) |
tristate | openProject (const QString &aFileName, const QString &fileNameForConnectionData, const QString &dbName=QString::null) |
tristate | closeProject () |
tristate | createBlankProject () |
KexiProjectData * | createBlankProjectData (bool &cancelled, bool confirmOverwrites=true, QString *shortcutFileName=0) |
void | setWindowMenu (QPopupMenu *menu) |
virtual bool | acceptsSharedActions (QObject *w) |
QWidget * | findWindow (QWidget *w) |
void | updateAppCaption () |
void | restoreWindowConfiguration (KConfig *config) |
void | storeWindowConfiguration (KConfig *config) |
virtual bool | queryClose () |
virtual bool | queryExit () |
bool | switchToViewMode (int viewMode) |
void | updateDialogViewGUIClient (KXMLGUIClient *viewClient) |
void | updateCustomPropertyPanelTabs (KexiDialogBase *prevDialog, int prevViewMode) |
void | updateCustomPropertyPanelTabs (KexiPart::Part *prevDialogPart, int prevViewMode, KexiPart::Part *curDialogPart, int curViewMode) |
tristate | openProjectInExternalKexiInstance (const QString &aFileName, KexiDB::ConnectionData *cdata, const QString &dbName) |
tristate | openProjectInExternalKexiInstance (const QString &aFileName, const QString &fileNameForConnectionData, const QString &dbName) |
Friends | |
class | KexiDialogBase |
class | Private |
Constructor & Destructor Documentation
KexiMainWindowImpl::KexiMainWindowImpl | ( | ) |
Creates an empty mainwindow.
Definition at line 143 of file keximainwindowimpl.cpp.
Member Function Documentation
void KexiMainWindowImpl::acceptPropertySetEditing | ( | ) | [protected, virtual, slot] |
Called to accept property butter editing.
Implements KexiMainWindow.
Definition at line 3590 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::acceptsSharedActions | ( | QObject * | w | ) | [protected, virtual] |
Reimplemented from KexiSharedActionHost: accepts only KexiDockBase and KexiDialogBase subclasses.
Reimplemented from KexiSharedActionHost.
Definition at line 3090 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::activateWindow | ( | KexiDialogBase * | dlg | ) |
Like above, using dlg passed explicity. Above method just calls this one.
Definition at line 2061 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::activateWindow | ( | int | id | ) |
Activates a window by it's document identifier.
- Returns:
- false if doc couldn't be raised or isn't opened.
Definition at line 2049 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::activeWindowChanged | ( | KMdiChildView * | dlg | ) | [protected, slot] |
This slot is called if a window changes
Definition at line 1925 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::addWindow | ( | KMdiChildView * | pView, | |
int | flags = KMdi::StandardAdd | |||
) | [virtual, slot] |
Reimplemented for internal reasons.
- Todo:
- Certain windows' sizes, e.g. forms could have own size configation specified! Query for this, and if so: give up.
Definition at line 4107 of file keximainwindowimpl.cpp.
KActionPtrList KexiMainWindowImpl::allActions | ( | ) | const [virtual] |
Implemented for KexiMainWindow.
Implements KexiMainWindow.
Definition at line 405 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::childClosed | ( | KMdiChildView * | dlg | ) | [protected, slot] |
Tthis slot is called if a window gets colsed and will unregister stuff
Definition at line 2073 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::closeDialog | ( | KexiDialogBase * | dlg, | |
bool | layoutTaskBar | |||
) | [slot] |
Implemented for KexiMainWindow
Definition at line 2871 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::closeDialog | ( | KexiDialogBase * | dlg | ) | [virtual, slot] |
Implemented for KexiMainWindow
Implements KexiMainWindow.
Definition at line 2866 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::closeProject | ( | ) | [protected] |
Closes current project,
- Returns:
- true on success. Application state (e.g. actions) is updated.
true on success. If closing was cancelled by user, cancelled is returned.
Definition at line 1163 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::closeWindow | ( | KMdiChildView * | pWnd, | |
bool | layoutTaskBar = true | |||
) | [virtual, slot] |
Inherited from KMdiMainFrm: we need to do some tasks before child is closed. Just calls closeDialog(). Use closeDialog() if you need, not this one.
Definition at line 2735 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::createBlankProject | ( | ) | [protected] |
Shows dialog for creating new blank project, and creates one. Dialog is not shown if option for automatic creation is checked or Kexi::startupHandler().projectData() was provided from command line. cancelled is set to true if creation has been cancelled (e.g. user answered no when asked for database overwriting, etc.
- Returns:
- true if database was created, false on error or when cancel was pressed
Definition at line 2211 of file keximainwindowimpl.cpp.
KexiProjectData * KexiMainWindowImpl::createBlankProjectData | ( | bool & | cancelled, | |
bool | confirmOverwrites = true , |
|||
QString * | shortcutFileName = 0 | |||
) | [protected] |
Shows dialog for creating new blank project, and return a data describing it. It the dialog was cancelled, cancelled will be set to true (false otherwise). shortcutFileName, if not 0, will be set to a shortcut filename (in case when server database project was selected).
Definition at line 2172 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::createKexiProject | ( | KexiProjectData * | new_data | ) | [protected, slot] |
internal - creates and initializes kexi project
Definition at line 2159 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::eventFilter | ( | QObject * | obj, | |
QEvent * | e | |||
) | [virtual] |
Definition at line 3095 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::exportItemAsDataTable | ( | KexiPart::Item * | item | ) | [protected, slot] |
Shows "exports as data table" dialog for item.
- Todo:
- : check if changes to this are saved, if not: ask for saving
: accept row changes...
Definition at line 3909 of file keximainwindowimpl.cpp.
QWidget * KexiMainWindowImpl::findWindow | ( | QWidget * | w | ) | [protected] |
Performs lookup like in KexiSharedActionHost::focusWindow() but starting from w instead of a widget returned by QWidget::focusWidget().
- Returns:
- NULL if no widget matches acceptsSharedActions() or if w is NULL.
Definition at line 3083 of file keximainwindowimpl.cpp.
int KexiMainWindowImpl::generatePrivateID | ( | ) | [virtual] |
Generates ID for private "document" like Relations window. Private IDs are negative numbers (while ID regular part instance's IDs are >0) Private means that the object is not stored as-is in the project but is somewhat generated and in most cases there is at most one unique instance document of such type (part). To generate this ID, just app-wide internal counter is used.
Implements KexiMainWindow.
Definition at line 3585 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::getNewObjectInfo | ( | KexiPart::Item * | partItem, | |
KexiPart::Part * | part, | |||
bool & | allowOverwriting, | |||
const QString & | messageWhenAskingForName = QString::null | |||
) | [virtual, slot] |
Implemented for KexiMainWindow
Implements KexiMainWindow.
Definition at line 2753 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::highlightObject | ( | const QCString & | mime, | |
const QCString & | name | |||
) | [virtual, slot] |
Implemented for KexiMainWindow
Implements KexiMainWindow.
Definition at line 4131 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::importantInfo | ( | bool | onStartup | ) | [protected, slot] |
Shows 'important info' dialog, is onStartup is false, it's always shown.
Definition at line 3659 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::inFinalMode | ( | ) | const |
- Returns:
- true if this window is in the Final Mode.
Definition at line 3731 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::initActions | ( | ) | [protected] |
reimplementation of events
Creates standard actions like new, open, save ...
- Todo:
- : change to "file_import" or so
- Todo:
- : change to "file_export" or so
Definition at line 410 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::initFinalMode | ( | KexiProjectData * | projectData | ) | [protected] |
Initialises final mode: constructs window according to kexi__final database and loads the specified part.
- Returns:
- true on success or false if e.g. kexi__final does not exist or a fatal exception happened
Definition at line 3737 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::initNavigator | ( | ) | [protected] |
Creates navigator (if it's not yet created), lookups items for current project and fills the nav. with not-opened items
Definition at line 1278 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::initUserActions | ( | ) | [protected] |
Creates user project-wide actions
Definition at line 3819 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::invalidateActions | ( | ) | [protected] |
Invalidates availability of all actions for current application state.
Definition at line 784 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::invalidateProjectWideActions | ( | ) | [protected] |
Invalidates action availability for current application state. These actions only depend on project availability, not on curently selected dialog.
- Todo:
- "copy special" is currently enabled only for data view mode; what about allowing it to enable in design view for "kexi/table" ?
Definition at line 813 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::invalidateSharedActions | ( | QObject * | o | ) | [protected, virtual] |
Invalidates action availability for current application state. These actions are dependent on curently selected dialog.
Reimplemented from KexiSharedActionHost.
Definition at line 790 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::invalidateViewModeActions | ( | ) | [protected] |
Invalidates action availability for current application state. These actions only depend on curently selected dialog and currently selected view (KexiViewBase derived object) within this dialog.
Definition at line 893 of file keximainwindowimpl.cpp.
KexiDialogBase* KexiMainWindowImpl::openObject | ( | KexiPart::Item * | item, | |
int | viewMode, | |||
QMap< QString, QString > * | staticObjectArgs = 0 | |||
) | [inline, protected, slot] |
KexiDialogBase * KexiMainWindowImpl::openObject | ( | const QCString & | mime, | |
const QString & | name, | |||
int | viewMode, | |||
bool & | openingCancelled, | |||
QMap< QString, QString > * | staticObjectArgs = 0 | |||
) | [virtual, slot] |
KexiDialogBase * KexiMainWindowImpl::openObject | ( | KexiPart::Item * | item, | |
int | viewMode, | |||
bool & | openingCancelled, | |||
QMap< QString, QString > * | staticObjectArgs = 0 | |||
) | [virtual, slot] |
Opens object pointed by item in a view viewMode. staticObjectArgs can be passed for static object (only works when part for this item is of type KexiPart::StaticPart). openingCancelled is set to true is opening has been cancelled.
Implements KexiMainWindow.
Definition at line 3281 of file keximainwindowimpl.cpp.
KexiDialogBase * KexiMainWindowImpl::openObjectFromNavigator | ( | KexiPart::Item * | item, | |
int | viewMode | |||
) | [protected, slot] |
KexiDialogBase * KexiMainWindowImpl::openObjectFromNavigator | ( | KexiPart::Item * | item, | |
int | viewMode, | |||
bool & | openingCancelled | |||
) | [protected, slot] |
Handles event when user double clicked (or single -depending on settings) or pressed Return key on the part item in the navigator. This differs from openObject() signal in that if the object is already opened in view mode other than viewMode, the mode is not changed.
- See also:
- KexiBrowser::openOrActivateItem()
Definition at line 3377 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::openProject | ( | const QString & | aFileName, | |
const QString & | fileNameForConnectionData, | |||
const QString & | dbName = QString::null | |||
) | [protected] |
Helper. Opens project pointed by aFileName. Like above but fileNameForConnectionData can be passed instead of a pointer to connection data itself.
- Returns:
- false if fileNameForConnectionData is not empty but there is no such connection in Kexi::connset() for this filename. fileNameForConnectionData can be empty.
Definition at line 2250 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::openProject | ( | const QString & | aFileName, | |
KexiDB::ConnectionData * | cdata, | |||
const QString & | dbName = QString::null | |||
) | [protected] |
Helper. Opens project pointed by aFileName. If aFileName is empty, a connection shortcut (.kexic file name) is obtained from global connection set using cdata (if present). In this case: If connection shortcut has been found and dbName (a server database name) is provided 'kexi --skip-dialog --connection file.kexic dbName' is executed (or the project is opened directly if there's no project opened in the current Kexi main window. If connection shortcut has been found and dbName is not provided, 'kexi --skip-dialog file.kexic' is executed (or the connection is opened directly if there's no porject opened in the current Kexi main window.
- Todo:
- caption arg?
Definition at line 2267 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::openProject | ( | const KexiProjectData & | projectData | ) | [protected] |
Opens project pointed by projectData,
- Returns:
- true on success. Application state (e.g. actions) is updated. projectData is copied into a project structures.
true on success
- Todo:
- temp.: change this if there are file-based drivers requiring a password
showDetailsButton
Definition at line 937 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::openProjectInExternalKexiInstance | ( | const QString & | aFileName, | |
const QString & | fileNameForConnectionData, | |||
const QString & | dbName | |||
) | [protected] |
Used in openProject when running another Kexi process is required.
- Todo:
- use KRun
Definition at line 2339 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::openProjectInExternalKexiInstance | ( | const QString & | aFileName, | |
KexiDB::ConnectionData * | cdata, | |||
const QString & | dbName | |||
) | [protected] |
Used in openProject when running another Kexi process is required.
Definition at line 2328 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::pageSetupForItem | ( | KexiPart::Item * | item | ) | [protected, slot] |
Shows "page setup" dialog for item.
- Returns:
- true on success and cancelled when the action was cancelled.
- Todo:
- : check if changes to this object's design are saved, if not: ask for saving
: accept row changes...
Definition at line 3967 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::printActionForItem | ( | KexiPart::Item * | item, | |
PrintActionType | action | |||
) | [protected, slot] |
Helper for printItem() and printPreviewForItem().
- Returns:
- true on success and cancelled when the action was cancelled.
Definition at line 3974 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::printItem | ( | KexiPart::Item * | item, | |
const KexiSimplePrintingSettings & | settings, | |||
const QString & | titleText = QString::null | |||
) | [protected, slot] |
Shows "print" dialog for item and settings.
- Returns:
- true on success.
- Todo:
- : check if changes to this object's design are saved, if not: ask for saving
: accept row changes...
Definition at line 3933 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::printItem | ( | KexiPart::Item * | item, | |
const QString & | titleText = QString::null | |||
) | [protected, slot] |
Shows "print" dialog for item.
- Returns:
- true on success.
Definition at line 3928 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::printPreviewForItem | ( | KexiPart::Item * | item, | |
const KexiSimplePrintingSettings & | settings, | |||
const QString & | titleText = QString::null , |
|||
bool | reload = false | |||
) | [protected, slot] |
Shows "print preview" dialog for item and settings.
- Returns:
- true on success.
- Todo:
- : check if changes to this object's design are saved, if not: ask for saving
: accept row changes...
Definition at line 3949 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::printPreviewForItem | ( | KexiPart::Item * | item, | |
const QString & | titleText = QString::null , |
|||
bool | reload = false | |||
) | [protected, slot] |
Shows "print preview" dialog for item. The preview dialog is cached, so reload == true is sometimes needed if data or print settings have changed in the meantime.
- Returns:
- true on success.
Definition at line 3944 of file keximainwindowimpl.cpp.
KexiProject * KexiMainWindowImpl::project | ( | ) | [virtual] |
Project data of currently opened project or NULL if no project here yet.
Implements KexiMainWindow.
Definition at line 283 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::propertySetSwitched | ( | KexiDialogBase * | dlg, | |
bool | force = false , |
|||
bool | preservePrevSelection = true | |||
) | [protected, virtual, slot] |
Received information from active view that dlg has switched its property set, so property editor contents should be reloaded. If force is true, property editor's data is reloaded even if the currently pointed property set is the same as before. If preservePrevSelection is true and there was a property set set before call, previously selected item will be preselected in the editor (if found).
Implements KexiMainWindow.
Definition at line 3596 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::readProperties | ( | KConfig * | config | ) | [virtual] |
Reimplemented
Definition at line 1794 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::registerChild | ( | KexiDialogBase * | dlg | ) | [virtual] |
Registers dialog dlg for watching and adds it to the main window's stack.
Implements KexiMainWindow.
Definition at line 1812 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::removeObject | ( | KexiPart::Item * | item, | |
bool | dontAsk = false | |||
) | [protected, slot] |
Removes object pointed by item from current project. Asks for confirmation.
- Returns:
- true on success or cancelled if removing was cancelled (only possible if dontAsk is false).
Definition at line 3474 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::renameObject | ( | KexiPart::Item * | item, | |
const QString & | _newName, | |||
bool & | succes | |||
) | [protected, slot] |
Renames object pointed by item to a new name _newName. Sets success to false on failure. Used as a slot connected to KexiBrowser::renameItem() signal.
Definition at line 3546 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::restoreSettings | ( | ) | [protected] |
Sets up the window from user settings (e.g. mdi mode).
Definition at line 1597 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::saveObject | ( | KexiDialogBase * | dlg, | |
const QString & | messageWhenAskingForName = QString::null , |
|||
bool | dontAsk = false | |||
) | [virtual, slot] |
Implemented for KexiMainWindow
Implements KexiMainWindow.
Definition at line 2827 of file keximainwindowimpl.cpp.
tristate KexiMainWindowImpl::showProjectMigrationWizard | ( | const QString & | mimeType, | |
const QString & | databaseName, | |||
const KexiDB::ConnectionData * | cdata = 0 | |||
) | [protected, slot] |
Shows Project Migration Wizard.
- Returns:
- true on successfull migration, cancelled on cancellation, and false on failure. If mimeType and databaseName are not empty, the wizard will only ask about parameters of destination project and skip pages related to source project. cdata connection data can be also provided to preselect server-based connections.
Definition at line 3846 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotAutoOpenObjectsLater | ( | ) | [protected, slot] |
Called once after timeout (after ctors are executed).
Definition at line 1018 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotCaptionForCurrentMDIChild | ( | bool | childrenMaximized | ) | [protected, slot] |
void KexiMainWindowImpl::slotDirtyFlagChanged | ( | KexiDialogBase * | ) | [protected, slot] |
Handles changes in 'dirty' flag for dialogs.
Definition at line 3610 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotGetNewStuff | ( | ) | [protected, slot] |
TMP: Display a dialog to download db examples from internet.
Definition at line 4120 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotImportantInfo | ( | ) | [protected, slot] |
void KexiMainWindowImpl::slotLastActions | ( | ) | [protected, slot] |
There are performed all actions that need to be done immediately after ctro (using timer).
Definition at line 1364 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotObjectRenamed | ( | const KexiPart::Item & | item, | |
const QCString & | oldName | |||
) | [protected, virtual, slot] |
Reaction for object rename (signalled by KexiProject). If this item has opened dialog, it's caption is updated, and also optionally application's caption.
Implements KexiMainWindow.
Definition at line 3566 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotPartItemSelectedInNavigator | ( | KexiPart::Item * | item | ) | [protected, slot] |
Receives "selectionChanged()" signal from navigator to update some actions.
Definition at line 4144 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotProjectNew | ( | ) | [protected, slot] |
Definition at line 2112 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::slotViewTextMode | ( | ) | [protected, slot] |
tristate KexiMainWindowImpl::startup | ( | ) |
Performs startup actions.
- Returns:
- false if application should exit immediately with an error status.
Definition at line 906 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::storeSettings | ( | ) | [protected] |
Writes user settings back.
Definition at line 1692 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::switchToIDEAlMode | ( | ) | [protected, virtual, slot] |
reimplemented to add "restart is required" message box
Definition at line 348 of file keximainwindowimpl.cpp.
bool KexiMainWindowImpl::switchToViewMode | ( | int | viewMode | ) | [protected] |
Helper: switches to view mode.
Definition at line 2579 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::updateAppCaption | ( | ) | [protected] |
Updates application's caption - also shows project's name.
Definition at line 1484 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::updateCustomPropertyPanelTabs | ( | KexiDialogBase * | prevDialog, | |
int | prevViewMode | |||
) | [protected] |
Helper. Updates setup of property panel's tabs. Used when switching from prevDialog dialog to a current dialog.
Definition at line 1861 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::updateDialogViewGUIClient | ( | KXMLGUIClient * | viewClient | ) | [protected] |
Helper. Removes and/or adds GUI client for current dialog's view; on switching to other dialog (activeWindowChanged()) or on switching to other view within the same dialog (switchToViewMode()).
Definition at line 1839 of file keximainwindowimpl.cpp.
void KexiMainWindowImpl::updateReadOnlyState | ( | ) | [protected, slot] |
Updates the statusbar, navigator and "Insert->....." actions, dependent on read-only state.
Only called on project opening and closing.
Definition at line 1003 of file keximainwindowimpl.cpp.
The documentation for this class was generated from the following files: