Kexi API Documentation (2.0 alpha)

KexiMainWindowImpl Class Reference

#include <keximainwindowimpl.h>

Inheritance diagram for KexiMainWindowImpl:

KexiMainWindow KexiGUIMessageHandler KMdiMainFrm KexiSharedActionHost KexiDB::MessageHandler List of all members.

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 KexiDialogBaseopenObject (KexiPart::Item *item, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0, QString *errorMessage=0)
virtual KexiDialogBaseopenObject (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 KexiProjectproject ()
 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 KexiDialogBasecurrentDialog () 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 KexiMainWindowImplself ()

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
KexiDialogBaseopenObjectFromNavigator (KexiPart::Item *item, int viewMode, bool &openingCancelled)
KexiDialogBaseopenObjectFromNavigator (KexiPart::Item *item, int viewMode)
 For convenience.
virtual bool newObject (KexiPart::Info *info, bool &openingCancelled)
bool newObject (KexiPart::Info *info)
 For convenience.
KexiDialogBaseopenObject (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 ()
KexiProjectDatacreateBlankProjectData (bool &cancelled, bool confirmOverwrites=true, QString *shortcutFileName=0)
void setWindowMenu (QPopupMenu *menu)
virtual bool acceptsSharedActions (QObject *w)
QWidgetfindWindow (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

KexiMainWindowImpl::KexiMainWindowImpl  ) 
 

Creates an empty mainwindow.

Definition at line 219 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::config, KexiMainWindowImpl::Private::createMenu, KexiMainWindowImpl::Private::disableMenuItem(), initActions(), initContextHelp(), initPropertyEditor(), invalidateActions(), KexiMainWindowImpl::Private::isProjectNavigatorVisible, KexiMainWindowImpl::Private::origAppCaption, Kexi::partManager(), KexiMainWindowImpl::Private::popups, restoreSettings(), KexiSharedActionHost::setAsDefaultHost(), setWindowMenu(), slotCaptionForCurrentMDIChild(), slotChildViewIsDetachedNow(), slotLastActions(), slotLastChildViewClosed(), slotMdiModeHasBeenChangedTo(), slotNoMaximizedChildFrmLeft(), slotPartLoaded(), Kexi::smallFont(), Kexi::startupHandler(), KexiMainWindowImpl::Private::statusBar, KexiMainWindowImpl::Private::timer, userMode(), KexiProjectData::userMode(), and KexiMainWindowImpl::Private::userMode.

Referenced by create().

KexiMainWindowImpl::~KexiMainWindowImpl  )  [virtual]
 

Definition at line 368 of file keximainwindowimpl.cpp.

References closeProject(), and KexiMainWindowImpl::Private::forceDialogClosing.


Member Function Documentation

void KexiMainWindowImpl::acceptPropertySetEditing  )  [protected, virtual, slot]
 

Called to accept property butter editing.

Implements KexiMainWindow.

Definition at line 3794 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::propEditor.

bool KexiMainWindowImpl::acceptsSharedActions QObject *  w  )  [protected, virtual]
 

Reimplemented from KexiSharedActionHost: accepts only KexiDockBase and KexiDialogBase subclasses.

Reimplemented from KexiSharedActionHost.

Definition at line 3297 of file keximainwindowimpl.cpp.

Referenced by findWindow().

bool KexiMainWindowImpl::activateWindow KexiDialogBase dlg  ) 
 

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.

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 2366 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::openedDialogFor().

Referenced by openObject(), openObjectFromNavigator(), printActionForItem(), and slotProjectRelations().

void KexiMainWindowImpl::activeWindowChanged KMdiChildView dlg  )  [protected, slot]
 

This slot is called if a window changes

Definition at line 2236 of file keximainwindowimpl.cpp.

References KexiDialogBase::attachToGUIClient(), KexiMainWindowImpl::Private::closedDialogGUIClient, KexiMainWindowImpl::Private::closedDialogViewGUIClient, KexiDialogBase::commonGUIClient(), KexiMainWindowImpl::Private::curDialog, KexiMainWindowImpl::Private::curDialogGUIClient, KexiMainWindowImpl::Private::curDialogViewGUIClient, KexiDialogBase::currentViewMode(), KexiDialogBase::guiClient(), invalidateActions(), invalidateViewModeActions(), KexiDialogBase::isRegistered(), Kexi::NoViewMode, KexiDialogBase::setFocus(), slotCaptionForCurrentMDIChild(), updateCustomPropertyPanelTabs(), updateDialogViewGUIClient(), and KexiMainWindowImpl::Private::updatePropEditorVisibility().

Referenced by registerChild(), slotLastChildViewClosed(), and slotMdiModeHasBeenChangedTo().

void KexiMainWindowImpl::addWindow KMdiChildView pView,
int  flags = KMdi::StandardAdd
[virtual, slot]
 

Reimplemented for internal reasons.

Definition at line 4419 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::maximizeFirstOpenedChildFrm.

KActionPtrList KexiMainWindowImpl::allActions  )  const [virtual]
 

Implemented for KexiMainWindow.

Implements KexiMainWindow.

Definition at line 499 of file keximainwindowimpl.cpp.

void KexiMainWindowImpl::attachWindow KMdiChildView pWnd,
bool  bShow = true,
bool  bAutomaticResize = false
[virtual, slot]
 

Definition at line 3272 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 2390 of file keximainwindowimpl.cpp.

References KexiDialogBase::id(), KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::openedDialogsCount(), KexiMainWindowImpl::Private::removeDialog(), KexiMainWindowImpl::Private::removePendingDialog(), and KexiBrowser::setFocus().

tristate KexiMainWindowImpl::closeDialog KexiDialogBase dlg,
bool  layoutTaskBar,
bool  doNotSaveChanges = false
[slot]
 

Internal implementation. If doNotSaveChanges is true, messages asking for saving the will be skipped and the changes will be dropped. This should not be usually used, maybe except for test suites (see kexi/tests/altertable/ directory).

Definition at line 3094 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::addItemToPendingDialogs(), cancelled, KexiMainWindowImpl::Private::closedDialogGUIClient, KexiMainWindowImpl::Private::closedDialogViewGUIClient, closeDialog(), KexiDialogBase::commonGUIClient(), KexiMainWindowImpl::Private::curDialog, KexiMainWindowImpl::Private::curDialogGUIClient, KexiMainWindowImpl::Private::curDialogViewGUIClient, KexiMainWindowImpl::Private::DialogClosingJob, KexiDialogBase::dirty(), KexiMainWindowImpl::Private::executeActionWhenPendingJobsAreFinished(), KexiMainWindowImpl::Private::forceDialogClosing, KexiDialogBase::guiClient(), KexiDialogBase::id(), KexiMainWindowImpl::Private::insideCloseDialog, invalidateActions(), KexiMainWindowImpl::Private::maximizeFirstOpenedChildFrm, KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::openedDialogsCount(), KexiMainWindowImpl::Private::pageSetupDialogItemID2dataItemID_map, KexiMainWindowImpl::Private::pageSetupDialogs, KexiDialogBase::part(), KexiDialogBase::partItem(), KexiMainWindowImpl::Private::pendingDialogsExist(), KexiMainWindowImpl::Private::propBuffer, KexiMainWindowImpl::Private::propEditor, KexiMainWindowImpl::Private::removeDialog(), removeObject(), KexiMainWindowImpl::Private::removePendingDialog(), saveObject(), KexiBrowser::setFocus(), KexiBrowser::updateItemName(), KexiMainWindowImpl::Private::updatePropEditorVisibility(), and KexiMainWindowImpl::Private::windowsToClose.

tristate KexiMainWindowImpl::closeDialog KexiDialogBase dlg  )  [virtual, slot]
 

Implemented for KexiMainWindow

Implements KexiMainWindow.

Definition at line 3089 of file keximainwindowimpl.cpp.

Referenced by closeDialog(), closeObject(), closeProject(), closeWindow(), and removeObject().

tristate KexiMainWindowImpl::closeObject KexiPart::Item item  )  [virtual, slot]
 

Closes the object for item.

Returns:
true on success (closing can be dealyed though), false on failure and cancelled if the object has "opening" job assigned.

Implements KexiMainWindow.

Definition at line 3627 of file keximainwindowimpl.cpp.

References cancelled, closeDialog(), KexiMainWindowImpl::Private::DialogClosingJob, KexiMainWindowImpl::Private::DialogOpeningJob, and KexiMainWindowImpl::Private::openedDialogFor().

tristate KexiMainWindowImpl::closeProject  )  [slot]
 

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 1497 of file keximainwindowimpl.cpp.

References KexiMainWindow::acceptProjectClosingRequested(), KexiMainWindowImpl::Private::actionToExecuteWhenPendingJobsAreFinished, KexiMainWindow::beforeProjectClosing(), cancelled, KexiBrowser::clear(), KexiMainWindowImpl::Private::clearDialogs(), KexiProject::closeConnection(), closeDialog(), KexiMainWindowImpl::Private::CloseProjectAction, KexiMainWindowImpl::Private::curDialog, KexiMainWindowImpl::Private::dialogExistedBeforeCloseProject, invalidateActions(), KexiMainWindowImpl::Private::isProjectNavigatorVisible, KexiMainWindowImpl::Private::nav, KexiMainWindowImpl::Private::navDockSeparatorPos, KexiMainWindowImpl::Private::navToolWindow, KexiMainWindowImpl::Private::navWasVisibleBeforeProjectClosing, KexiMainWindowImpl::Private::openedDialogsCount(), KexiMainWindowImpl::Private::pendingDialogsExist(), KexiMainWindowImpl::Private::prj, KexiMainWindow::projectClosed(), KexiMainWindowImpl::Private::propEditor, KexiMainWindowImpl::Private::propEditorDockSeparatorPos, KexiMainWindowImpl::Private::propEditorTabWidget, KexiMainWindowImpl::Private::saveSettingsForShowProjectNavigator, KDockSplitter::separatorPosInPercent(), KDockSplitter::setSeparatorPosInPercent(), updateAppCaption(), and updateReadOnlyState().

Referenced by KexiMainWindowImpl::Private::executeActionWhenPendingJobsAreFinished(), queryClose(), slotProjectClose(), slotProjectQuit(), slotToolsCompactDatabase(), and ~KexiMainWindowImpl().

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 2958 of file keximainwindowimpl.cpp.

References closeDialog(), KexiMainWindowImpl::Private::insideCloseDialog, and KexiMainWindowImpl::Private::windowsToClose.

tristate KexiMainWindowImpl::copyItemToClipboardAsDataTable KexiPart::Item item  )  [protected, slot]
 

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().

int KexiMainWindowImpl::create int  argc,
char *  argv[],
KAboutData *  aboutdata = 0
[static]
 

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.

Returns:
result 1 on error and 0 on success (the result can be used as a result of kdemain())

Definition at line 140 of file keximainwindowimpl.cpp.

References KexiStartupData::Exit, Kexi::initCmdLineArgs(), KexiMainWindowImpl(), startup(), and Kexi::startupHandler().

Referenced by kdemain().

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 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().

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 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().

void KexiMainWindowImpl::createKexiProject KexiProjectData new_data  )  [protected, slot]
 

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().

KexiDialogBase * KexiMainWindowImpl::currentDialog  )  const [virtual]
 

Returns:
currently active dialog (window) od 0 if there is no active dialog. Implemented for KexiMainWindow.

Implements KexiMainWindow.

Definition at line 504 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::curDialog.

void KexiMainWindowImpl::detachWindow KMdiChildView pWnd,
bool  bShow = true
[virtual, slot]
 

Definition at line 3262 of file keximainwindowimpl.cpp.

bool KexiMainWindowImpl::eventFilter QObject *  obj,
QEvent *  e
[virtual]
 

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.

tristate KexiMainWindowImpl::executeCustomActionForObject KexiPart::Item item,
const QString actionName
[virtual, slot]
 

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.

tristate KexiMainWindowImpl::executeItem KexiPart::Item item  )  [protected, slot]
 

Receives the "executeItem" signal from navigator to perform "execute" action on item.

Returns:
true on success

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().

tristate 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 4202 of file keximainwindowimpl.cpp.

References cancelled, KexiInternalPart::createModalDialogInstance(), and KexiPart::Item::identifier().

Referenced by executeCustomActionForObject(), initNavigator(), slotEditCopySpecialDataTable(), and slotProjectExportDataTable().

void KexiMainWindowImpl::fillWindowMenu  )  [protected, virtual, slot]
 

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().

QPopupMenu * KexiMainWindowImpl::findPopupMenu const char *  popupName  )  [virtual]
 

Returns:
popup menu for popupName name.

Implements KexiMainWindow.

Definition at line 494 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::popups.

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 3290 of file keximainwindowimpl.cpp.

References acceptsSharedActions().

Referenced by eventFilter().

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 3789 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::privateIDCounter.

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 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().

void KexiMainWindowImpl::highlightObject const QCString &  mime,
const QCString &  name
[virtual, slot]
 

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().

void KexiMainWindowImpl::importantInfo bool  onStartup  )  [protected, slot]
 

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().

void KexiMainWindowImpl::initActions  )  [protected]
 

reimplementation of events

Creates standard actions like new, open, save ...

Definition at line 509 of file keximainwindowimpl.cpp.

References KexiMainWindowImpl::Private::action_close, KexiMainWindowImpl::Private::action_configure, KexiMainWindowImpl::Private::action_data_cancel_row_changes, KexiMainWindowImpl::Private::action_data_execute, KexiMainWindowImpl::Private::action_data_save_row, KexiMainWindowImpl::Private::action_edit_clear_table, KexiMainWindowImpl::Private::action_edit_copy, KexiMainWindowImpl::Private::action_edit_copy_special_data_table, KexiMainWindowImpl::Private::action_edit_cut, KexiMainWindowImpl::Private::action_edit_delete, KexiMainWindowImpl::Private::action_edit_delete_row, KexiMainWindowImpl::Private::action_edit_edititem, KexiMainWindowImpl::Private::action_edit_insert_empty_row, KexiMainWindowImpl::Private::action_edit_paste, KexiMainWindowImpl::Private::action_edit_paste_special_data_table, KexiMainWindowImpl::Private::action_edit_redo, KexiMainWindowImpl::Private::action_edit_select_all, KexiMainWindowImpl::Private::action_edit_undo, KexiMainWindowImpl::Private::action_format_font, KexiMainWindowImpl::Private::action_open_recent, KexiMainWindowImpl::Private::action_project_export_data_table, KexiMainWindowImpl::Private::action_project_import_data_table, KexiMainWindowImpl::Private::action_project_print, KexiMainWindowImpl::Private::action_project_print_preview, KexiMainWindowImpl::Private::action_project_print_setup, KexiMainWindowImpl::Private::action_project_properties, KexiMainWindowImpl::Private::action_project_relations, KexiMainWindowImpl::Private::action_save, KexiMainWindowImpl::Private::action_save_as, KexiMainWindowImpl::Private::action_show_helper, KexiMainWindowImpl::Private::action_show_other, KexiMainWindowImpl::Private::action_tools_compact_database, KexiMainWindowImpl::Private::action_tools_data_migration, KexiMainWindowImpl::Private::action_view_data_mode, KexiMainWindowImpl::Private::action_view_design_mode, KexiMainWindowImpl::Private::action_view_mainarea, KexiMainWindowImpl::Private::action_view_nav, KexiMainWindowImpl::Private::action_view_propeditor, KexiMainWindowImpl::Private::action_view_text_mode, KexiMainWindowImpl::Private::action_window_next, KexiMainWindowImpl::Private::action_window_previous, Kexi::actionCategories(), KexiMainWindowImpl::Private::actions_for_view_modes, Kexi::ActionCategories::addAction(), Kexi::ActionCategories::addWindowAction(), KexiSharedActionHost::createSharedAction(), Kexi::DataViewMode, Kexi::DesignViewMode, KexiMainWindowImpl::Private::dummy_action, KexiPart::FormObjectType, futureI18n, Kexi::GlobalActionCategory, KexiMainWindowImpl::Private::isProjectNavigatorVisible, KexiRecordNavigator::Actions::moveToFirstRecord(), KexiRecordNavigator::Actions::moveToLastRecord(), KexiRecordNavigator::Actions::moveToNewRecord(), KexiRecordNavigator::Actions::moveToNextRecord(), KexiRecordNavigator::Actions::moveToPreviousRecord(), Kexi::NoActionCategory, Kexi::PartItemActionCategory, KexiPart::QueryObjectType, KexiSharedActionHost::setActionVolatile(), Kexi::ActionCategories::setAllObjectTypesSupported(), slotConfigureKeys(), slotConfigureToolbars(), slotEditCopySpecialDataTable(), slotEditPasteSpecialDataTable(), slotGetNewStuff(), slotImportantInfo(), slotOptionsEnableForms(), slotProjectClose(), slotProjectExportDataTable(), slotProjectImportDataTable(), slotProjectNew(), slotProjectOpen(), slotProjectOpenRecent(), slotProjectOpenRecentAboutToShow(), slotProjectPageSetup(), slotProjectPrint(), slotProjectPrintPreview(), slotProjectProperties(), slotProjectQuit(), slotProjectRelations(), slotProjectSave(), slotProjectSaveAs(), slotShowSettings(), slotStartFeedbackAgent(), slotToolsCompactDatabase(), slotToolsProjectMigration(), slotViewDataMode(), slotViewDesignMode(), slotViewMainArea(), slotViewNavigator(), slotViewPropertyEditor(), slotViewTextMode(), KexiPart::TableObjectType, Kexi::tempShowMacros(), Kexi::tempShowReports(),