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 |
Constructor & Destructor Documentation
|
Creates an empty mainwindow. Definition at line 143 of file keximainwindowimpl.cpp. |
Member Function Documentation
|
Called to accept property butter editing. Implements KexiMainWindow. Definition at line 3590 of file keximainwindowimpl.cpp. |
|
Reimplemented from KexiSharedActionHost: accepts only KexiDockBase and KexiDialogBase subclasses. Reimplemented from KexiSharedActionHost. Definition at line 3090 of file keximainwindowimpl.cpp. |
|
Like above, using dlg passed explicity. Above method just calls this one. Definition at line 2061 of file keximainwindowimpl.cpp. |
|
Activates a window by it's document identifier.
Definition at line 2049 of file keximainwindowimpl.cpp. |
|
This slot is called if a window changes Definition at line 1925 of file keximainwindowimpl.cpp. |
|
Reimplemented for internal reasons. Definition at line 4107 of file keximainwindowimpl.cpp. |
|
Implemented for KexiMainWindow. Implements KexiMainWindow. Definition at line 405 of file keximainwindowimpl.cpp. |
|
Tthis slot is called if a window gets colsed and will unregister stuff Definition at line 2073 of file keximainwindowimpl.cpp. |
|
Implemented for KexiMainWindow Definition at line 2871 of file keximainwindowimpl.cpp. |
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 2866 of file keximainwindowimpl.cpp. |
|
Closes current project,
Definition at line 1163 of file keximainwindowimpl.cpp. |
|
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. |
|
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.
Definition at line 2211 of file keximainwindowimpl.cpp. |
|
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. |
|
internal - creates and initializes kexi project
Definition at line 2159 of file keximainwindowimpl.cpp. |
|
On mouse click on the findow, make sure it's focused and actions are invalidated Definition at line 3095 of file keximainwindowimpl.cpp. |
|
Shows "exports as data table" dialog for item.
Definition at line 3909 of file keximainwindowimpl.cpp. |
|
Performs lookup like in KexiSharedActionHost::focusWindow() but starting from w instead of a widget returned by QWidget::focusWidget().
Definition at line 3083 of file keximainwindowimpl.cpp. |
|
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. |
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 2753 of file keximainwindowimpl.cpp. |
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 4131 of file keximainwindowimpl.cpp. |
|
Shows 'important info' dialog, is onStartup is false, it's always shown.
Definition at line 3659 of file keximainwindowimpl.cpp. |
|
Definition at line 3731 of file keximainwindowimpl.cpp. |
|
reimplementation of events Creates standard actions like new, open, save ... Definition at line 410 of file keximainwindowimpl.cpp. |
|
Initialises final mode: constructs window according to kexi__final database and loads the specified part.
Definition at line 3737 of file keximainwindowimpl.cpp. |
|
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. |
|
Creates user project-wide actions Definition at line 3819 of file keximainwindowimpl.cpp. |
|
Invalidates availability of all actions for current application state. Definition at line 784 of file keximainwindowimpl.cpp. |
|
Invalidates action availability for current application state. These actions only depend on project availability, not on curently selected dialog. Definition at line 813 of file keximainwindowimpl.cpp. |
|
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. |
|
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. |
|
For convenience.
Definition at line 326 of file keximainwindowimpl.h. |
|
For convenience.
Implements KexiMainWindow. Definition at line 3271 of file keximainwindowimpl.cpp. |
|
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. |
|
For convenience.
Definition at line 3370 of file keximainwindowimpl.cpp. |
|
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.
Definition at line 3377 of file keximainwindowimpl.cpp. |
|
Helper. Opens project pointed by aFileName. Like above but fileNameForConnectionData can be passed instead of a pointer to connection data itself.
Definition at line 2250 of file keximainwindowimpl.cpp. |
|
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. Definition at line 2267 of file keximainwindowimpl.cpp. |
|
Opens project pointed by projectData,
Definition at line 937 of file keximainwindowimpl.cpp. |
|
Used in openProject when running another Kexi process is required. Definition at line 2339 of file keximainwindowimpl.cpp. |
|
Used in openProject when running another Kexi process is required. Definition at line 2328 of file keximainwindowimpl.cpp. |
|
Shows "page setup" dialog for item.
Definition at line 3967 of file keximainwindowimpl.cpp. |
|
Helper for printItem() and printPreviewForItem().
Definition at line 3974 of file keximainwindowimpl.cpp. |
|
Shows "print" dialog for item and settings.
Definition at line 3933 of file keximainwindowimpl.cpp. |
|
Shows "print" dialog for item.
Definition at line 3928 of file keximainwindowimpl.cpp. |
|
Shows "print preview" dialog for item and settings.
Definition at line 3949 of file keximainwindowimpl.cpp. |
|
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.
Definition at line 3944 of file keximainwindowimpl.cpp. |
|
Project data of currently opened project or NULL if no project here yet.
Implements KexiMainWindow. Definition at line 283 of file keximainwindowimpl.cpp. |
|
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. |
|
Reimplemented Definition at line 1794 of file keximainwindowimpl.cpp. |
|
Registers dialog dlg for watching and adds it to the main window's stack. Implements KexiMainWindow. Definition at line 1812 of file keximainwindowimpl.cpp. |
|
Removes object pointed by item from current project. Asks for confirmation.
Definition at line 3474 of file keximainwindowimpl.cpp. |
|
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. |
|
Sets up the window from user settings (e.g. mdi mode). Definition at line 1597 of file keximainwindowimpl.cpp. |
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 2827 of file keximainwindowimpl.cpp. |
|
Shows Project Migration Wizard.
Definition at line 3846 of file keximainwindowimpl.cpp. |
|
Called once after timeout (after ctors are executed). Definition at line 1018 of file keximainwindowimpl.cpp. |
|
internal
Definition at line 1455 of file keximainwindowimpl.cpp. |
|
Handles changes in 'dirty' flag for dialogs. Definition at line 3610 of file keximainwindowimpl.cpp. |
|
TMP: Display a dialog to download db examples from internet.
Definition at line 4120 of file keximainwindowimpl.cpp. |
|
just importantInfo(false);
Definition at line 3633 of file keximainwindowimpl.cpp. |
|
There are performed all actions that need to be done immediately after ctro (using timer).
Definition at line 1364 of file keximainwindowimpl.cpp. |
|
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. |
|
Receives "selectionChanged()" signal from navigator to update some actions.
Definition at line 4144 of file keximainwindowimpl.cpp. |
|
Definition at line 2112 of file keximainwindowimpl.cpp. |
|
sometimes called "SQL View"
Definition at line 2634 of file keximainwindowimpl.cpp. |
|
Performs startup actions.
Definition at line 906 of file keximainwindowimpl.cpp. |
|
Writes user settings back. Definition at line 1692 of file keximainwindowimpl.cpp. |
|
reimplemented to add "restart is required" message box
Definition at line 348 of file keximainwindowimpl.cpp. |
|
Helper: switches to view mode. Definition at line 2579 of file keximainwindowimpl.cpp. |
|
Updates application's caption - also shows project's name. Definition at line 1484 of file keximainwindowimpl.cpp. |
|
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. |
|
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. |
|
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: