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

Detailed Description
Kexi's main window implementation.
Definition at line 45 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, bool doNotSaveChanges=false) |
| 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, QString *errorMessage=0) |
| virtual KexiDialogBase * | openObject (const QCString &mime, const QString &name, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0) |
| For convenience. | |
| virtual tristate | closeObject (KexiPart::Item *item) |
| 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) |
| 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 () |
| virtual tristate | printItem (KexiPart::Item *item) |
| Shows "print" dialog for item. | |
| virtual tristate | printPreviewForItem (KexiPart::Item *item) |
| Shows "print preview" dialog. | |
| virtual tristate | showPageSetupForItem (KexiPart::Item *item) |
| Shows "page setup" dialog for item. | |
| virtual tristate | executeCustomActionForObject (KexiPart::Item *item, const QString &actionName) |
Signals | |
| void | projectOpened () |
| Emitted after opening a project, even after slotAutoOpenObjectsLater(). | |
Public Member Functions | |
| KexiMainWindowImpl () | |
| virtual | ~KexiMainWindowImpl () |
| virtual KexiProject * | project () |
| Project data of currently opened project or NULL if no project here yet. | |
| virtual void | registerChild (KexiDialogBase *dlg) |
| bool | activateWindow (int id) |
| bool | activateWindow (KexiDialogBase *dlg) |
| tristate | startup () |
| virtual bool | userMode () const |
| bool | openingAllowed (KexiPart::Item *item, int viewMode) |
| virtual bool | eventFilter (QObject *obj, QEvent *e) |
| virtual QPopupMenu * | findPopupMenu (const char *popupName) |
| virtual KActionPtrList | allActions () const |
| virtual KexiDialogBase * | currentDialog () const |
| virtual int | generatePrivateID () |
| virtual void | readProperties (KConfig *config) |
| virtual void | saveProperties (KConfig *config) |
| virtual void | saveGlobalProperties (KConfig *sessionConfig) |
Static Public Member Functions | |
| static int | create (int argc, char *argv[], KAboutData *aboutdata=0) |
| static KexiMainWindowImpl * | self () |
Protected Slots | |
| void | slotAutoOpenObjectsLater () |
| void | activeWindowChanged (KMdiChildView *dlg) |
| void | childClosed (KMdiChildView *dlg) |
| void | slotPartLoaded (KexiPart::Part *p) |
| void | slotCaptionForCurrentMDIChild (bool childrenMaximized) |
| internal | |
| void | slotNoMaximizedChildFrmLeft (KMdiChildFrm *) |
| void | slotLastChildViewClosed () |
| void | slotChildViewIsDetachedNow (QWidget *) |
| void | createKexiProject (KexiProjectData *new_data) |
| internal - creates and initializes kexi project | |
| KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode, bool &openingCancelled) |
| KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode) |
| For convenience. | |
| virtual bool | newObject (KexiPart::Info *info, bool &openingCancelled) |
| bool | newObject (KexiPart::Info *info) |
| For convenience. | |
| KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, QMap< QString, QString > *staticObjectArgs=0) |
| For convenience. | |
| 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 () |
| Updates the statusbar, navigator and "Insert->. | |
| 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 | slotViewMainArea () |
| void | slotViewPropertyEditor () |
| void | slotViewDataMode () |
| void | slotViewDesignMode () |
| void | slotViewTextMode () |
| sometimes called "SQL View" | |
| void | slotShowSettings () |
| void | slotConfigureKeys () |
| void | slotConfigureToolbars () |
| void | slotToolsProjectMigration () |
| void | slotToolsCompactDatabase () |
| void | slotGetNewStuff () |
| TMP: Display a dialog to download db examples from internet. | |
| void | slotTipOfTheDay () |
| void | importantInfo (bool onStartup) |
| Shows 'important info' dialog, is onStartup is false, it's always shown. | |
| void | slotImportantInfo () |
| just importantInfo(false); | |
| void | slotStartFeedbackAgent () |
| void | slotOptionsEnableForms (bool show, bool noMessage=false) |
| void | slotImportFile () |
| void | slotImportServer () |
| void | slotLastActions () |
| There are performed all actions that need to be done immediately after ctro (using timer). | |
| virtual void | acceptPropertySetEditing () |
| virtual void | propertySetSwitched (KexiDialogBase *dlg, bool force=false, bool preservePrevSelection=true, const QCString &propertyToSelect=QCString()) |
| void | slotDirtyFlagChanged (KexiDialogBase *) |
| void | slotMdiModeHasBeenChangedTo (KMdi::MdiMode) |
| virtual void | switchToIDEAlMode () |
| reimplemented to add "restart is required" message box | |
| 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) |
| Receives "selectionChanged()" signal from navigator to update some actions. | |
| tristate | executeItem (KexiPart::Item *item) |
| tristate | exportItemAsDataTable (KexiPart::Item *item) |
| Shows "exports as data table" dialog for item. | |
| tristate | copyItemToClipboardAsDataTable (KexiPart::Item *item) |
| Shows "copy special as data table" dialog for item. | |
| bool | printItem (KexiPart::Item *item, const QString &titleText) |
| Shows "print" dialog for item. | |
| bool | printItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const QString &titleText=QString::null) |
| Shows "print" dialog for item and settings. | |
| bool | printPreviewForItem (KexiPart::Item *item, const QString &titleText, bool reload) |
| bool | printPreviewForItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const QString &titleText=QString::null, bool reload=false) |
| Shows "print preview" dialog. | |
| tristate | printActionForItem (KexiPart::Item *item, PrintActionType action) |
Protected Member Functions | |
| bool | initUserMode (KexiProjectData *projectData) |
| void | initNavigator () |
| void | initContextHelp () |
| void | initPropertyEditor () |
| void | initActions () |
| reimplementation of events | |
| void | initUserActions () |
| void | restoreSettings () |
| void | storeSettings () |
| void | invalidateActions () |
| virtual void | invalidateSharedActions (QObject *o) |
| void | invalidateProjectWideActions () |
| void | invalidateViewModeActions () |
| 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 |
Classes | |
| class | Private |
Constructor & Destructor Documentation
|
|
|
Definition at line 368 of file keximainwindowimpl.cpp. References closeProject(), and KexiMainWindowImpl::Private::forceDialogClosing. |
Member Function Documentation
|
|
Called to accept property butter editing. Implements KexiMainWindow. Definition at line 3794 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::propEditor. |
|
|
Reimplemented from KexiSharedActionHost: accepts only KexiDockBase and KexiDialogBase subclasses. Reimplemented from KexiSharedActionHost. Definition at line 3297 of file keximainwindowimpl.cpp. Referenced by findWindow(). |
|
|
Like above, using dlg passed explicitly. Above method just calls this one. Definition at line 2378 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::focus_before_popup. |
|
|
Activates a window by it's document identifier.
Definition at line 2366 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::openedDialogFor(). Referenced by openObject(), openObjectFromNavigator(), printActionForItem(), and slotProjectRelations(). |
|
|
||||||||||||
|
Reimplemented for internal reasons. Definition at line 4419 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::maximizeFirstOpenedChildFrm. |
|
|
Implemented for KexiMainWindow. Implements KexiMainWindow. Definition at line 499 of file keximainwindowimpl.cpp. |
|
||||||||||||||||
|
Definition at line 3272 of file keximainwindowimpl.cpp. |
|
|
Tthis slot is called if a window gets colsed and will unregister stuff Definition at line 2390 of file keximainwindowimpl.cpp. References KexiDialogBase::id(), KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::openedDialogsCount(), KexiMainWindowImpl::Private::removeDialog(), KexiMainWindowImpl::Private::removePendingDialog(), and KexiBrowser::setFocus(). |
|
||||||||||||||||
|
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 3089 of file keximainwindowimpl.cpp. Referenced by closeDialog(), closeObject(), closeProject(), closeWindow(), and removeObject(). |
|
|
Closes the object for item.
Implements KexiMainWindow. Definition at line 3627 of file keximainwindowimpl.cpp. References cancelled, closeDialog(), KexiMainWindowImpl::Private::DialogClosingJob, KexiMainWindowImpl::Private::DialogOpeningJob, and KexiMainWindowImpl::Private::openedDialogFor(). |
|
|
||||||||||||
|
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 2958 of file keximainwindowimpl.cpp. References closeDialog(), KexiMainWindowImpl::Private::insideCloseDialog, and KexiMainWindowImpl::Private::windowsToClose. |
|
|
Shows "copy special as data table" dialog for item.
Definition at line 4387 of file keximainwindowimpl.cpp. References cancelled, KexiInternalPart::createModalDialogInstance(), and KexiPart::Item::identifier(). Referenced by executeCustomActionForObject(). |
|
||||||||||||||||
|
Used by the main kexi routine. Creates a new Kexi main window and a new KApplication object. kdemain() has to destroy the latter on exit.
Definition at line 140 of file keximainwindowimpl.cpp. References KexiStartupData::Exit, Kexi::initCmdLineArgs(), KexiMainWindowImpl(), startup(), and Kexi::startupHandler(). Referenced by kdemain(). |
|
|
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 2528 of file keximainwindowimpl.cpp. References cancelled, KexiProject::create(), createBlankProjectData(), createKexiProject(), initNavigator(), invalidateActions(), KexiMainWindowImpl::Private::prj, Kexi::recentProjects(), and updateAppCaption(). Referenced by slotProjectNew(), and startup(). |
|
||||||||||||||||
|
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 2489 of file keximainwindowimpl.cpp. References KexiDB::ConnectionDataBase::caption, Kexi::connset(), KexiDB::Driver::defaultFileBasedDriverName(), KexiDB::ConnectionDataBase::driverName, KexiNewProjectWizard::projectCaption(), KexiNewProjectWizard::projectConnectionData(), KexiNewProjectWizard::projectDBName(), KexiDB::ConnectionData::serverInfoString(), KexiNewProjectWizard::setConfirmOverwrites(), and KexiDB::ConnectionData::setFileName(). Referenced by createBlankProject(), and slotProjectNew(). |
|
|
internal - creates and initializes kexi project
Definition at line 2476 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::prj, and slotObjectRenamed(). Referenced by createBlankProject(), initUserMode(), and openProject(). |
|
|
Implements KexiMainWindow. Definition at line 504 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::curDialog. |
|
||||||||||||
|
Definition at line 3262 of file keximainwindowimpl.cpp. |
|
||||||||||||
|
On mouse click on the findow, make sure it's focused and actions are invalidated Definition at line 3302 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::action_window_next, KexiSharedActionHost::actionProxyFor(), KexiMainWindowImpl::Private::block_KMdiMainFrm_eventFilter, KexiMainWindowImpl::Private::curDialog, findWindow(), KexiMainWindowImpl::Private::focus_before_popup, KexiSharedActionHost::focusWindow(), KexiUtils::hasParent(), invalidateSharedActions(), KexiVDebug, KexiMainWindowImpl::Private::nav, KexiStatusBar::setStatus(), and KexiMainWindowImpl::Private::statusBar. |
|
||||||||||||
|
Executes custom action for the main window, usually provided by a plugin. Also used by KexiFormEventAction. Implements KexiMainWindow. Definition at line 4189 of file keximainwindowimpl.cpp. References copyItemToClipboardAsDataTable(), exportItemAsDataTable(), and kexiwarn. |
|
|
Receives the "executeItem" signal from navigator to perform "execute" action on item.
Definition at line 4163 of file keximainwindowimpl.cpp. References KexiPart::Part::execute(), KexiPart::Info::isExecuteSupported(), KexiPart::Item::mimeType(), and Kexi::partManager(). Referenced by initNavigator(), and slotAutoOpenObjectsLater(). |
|
|
Shows "exports as data table" dialog for item.
Definition at line 4202 of file keximainwindowimpl.cpp. References cancelled, KexiInternalPart::createModalDialogInstance(), and KexiPart::Item::identifier(). Referenced by executeCustomActionForObject(), initNavigator(), slotEditCopySpecialDataTable(), and slotProjectExportDataTable(). |
|
|
Definition at line 402 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::action_window_next, KexiMainWindowImpl::Private::action_window_previous, and KexiMainWindowImpl::Private::mdiModeToSwitchAfterRestart. Referenced by setWindowMenu(). |
|
|
Implements KexiMainWindow. Definition at line 494 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::popups. |
|
|
Performs lookup like in KexiSharedActionHost::focusWindow() but starting from w instead of a widget returned by QWidget::focusWidget().
Definition at line 3290 of file keximainwindowimpl.cpp. References acceptsSharedActions(). Referenced by eventFilter(). |
|
|
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 3789 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::privateIDCounter. |
|
||||||||||||||||||||
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 2976 of file keximainwindowimpl.cpp. References cancelled, KexiPart::Item::caption(), KexiPart::Part::i18nMessage(), KexiPart::Part::info(), KexiPart::Info::itemIcon(), KexiPart::Item::name(), KexiMainWindowImpl::Private::nameDialog, project(), KexiPart::Info::projectPartID(), KexiPart::Item::setCaption(), KexiNameDialog::setDialogIcon(), KexiPart::Item::setName(), and KexiNameDialog::widget(). Referenced by saveObject(). |
|
||||||||||||
|
Implemented for KexiMainWindow Implements KexiMainWindow. Definition at line 4443 of file keximainwindowimpl.cpp. References KexiProject::itemForMimeType(), KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::prj, KexiBrowser::selectItem(), and slotViewNavigator(). |
|
|
Shows 'important info' dialog, is onStartup is false, it's always shown.
Definition at line 3872 of file keximainwindowimpl.cpp. References KexiMainWindowImpl::Private::config, KEXI_VERSION_STRING, and KexiMainWindowImpl::Private::showImportantInfoOnStartup. Referenced by slotImportantInfo(). |
|
