#include <keximainwindowimpl.h>
|
| 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, TQMap< TQString, TQString > *staticObjectArgs=0, TQString *errorMessage=0) |
| |
| virtual KexiDialogBase * | openObject (const TQCString &mime, const TQString &name, int viewMode, bool &openingCancelled, TQMap< TQString, TQString > *staticObjectArgs=0) |
| |
| virtual tristate | closeObject (KexiPart::Item *item) |
| |
| virtual tristate | saveObject (KexiDialogBase *dlg, const TQString &messageWhenAskingForName=TQString(), bool dontAsk=false) |
| |
| virtual tristate | getNewObjectInfo (KexiPart::Item *partItem, KexiPart::Part *part, bool &allowOverwriting, const TQString &messageWhenAskingForName=TQString()) |
| |
| virtual void | highlightObject (const TQCString &mime, const TQCString &name) |
| |
| tristate | openProject (const KexiProjectData &projectData) |
| |
| tristate | openProject (const TQString &aFileName, KexiDB::ConnectionData *cdata, const TQString &dbName=TQString(), const TQValueList< KexiProjectData::ObjectInfo > &autoopenObjects=TQValueList< KexiProjectData::ObjectInfo >()) |
| |
| tristate | openProject (const TQString &aFileName, const TQString &fileNameForConnectionData, const TQString &dbName=TQString()) |
| |
| tristate | createProjectFromTemplate (const KexiProjectData &projectData) |
| |
| tristate | closeProject () |
| |
| virtual tristate | printItem (KexiPart::Item *item) |
| |
| virtual tristate | printPreviewForItem (KexiPart::Item *item) |
| |
| virtual tristate | showPageSetupForItem (KexiPart::Item *item) |
| |
| virtual tristate | executeCustomActionForObject (KexiPart::Item *item, const TQString &actionName) |
| |
Public Slots inherited from KexiMainWindow |
| virtual bool | newObject (KexiPart::Info *info, bool &openingCancelled)=0 |
| |
| virtual KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, bool &openingCancelled, TQMap< TQString, TQString > *staticObjectArgs=0, TQString *errorMessage=0)=0 |
| |
| virtual KexiDialogBase * | openObject (const TQCString &mime, const TQString &name, int viewMode, bool &openingCancelled, TQMap< TQString, TQString > *staticObjectArgs=0)=0 |
| |
| virtual tristate | closeObject (KexiPart::Item *item)=0 |
| |
| virtual void | acceptPropertySetEditing ()=0 |
| |
| virtual void | propertySetSwitched (KexiDialogBase *dlg, bool force=false, bool preservePrevSelection=true, const TQCString &propertyToSelect=TQCString())=0 |
| |
| virtual tristate | saveObject (KexiDialogBase *dlg, const TQString &messageWhenAskingForName=TQString(), bool dontAsk=false)=0 |
| |
| virtual tristate | closeDialog (KexiDialogBase *dlg)=0 |
| |
| virtual tristate | getNewObjectInfo (KexiPart::Item *partItem, KexiPart::Part *part, bool &allowOverwriting, const TQString &messageWhenAskingForName=TQString())=0 |
| |
| virtual void | highlightObject (const TQCString &mime, const TQCString &name)=0 |
| |
| virtual tristate | printItem (KexiPart::Item *item)=0 |
| |
| virtual tristate | printPreviewForItem (KexiPart::Item *item)=0 |
| |
| virtual tristate | showPageSetupForItem (KexiPart::Item *item)=0 |
| |
| virtual tristate | executeCustomActionForObject (KexiPart::Item *item, const TQString &actionName)=0 |
| |
|
| 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 (TQWidget *) |
| |
| void | createKexiProject (KexiProjectData *new_data) |
| |
| KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode, bool &openingCancelled) |
| |
| KexiDialogBase * | openObjectFromNavigator (KexiPart::Item *item, int viewMode) |
| |
| virtual bool | newObject (KexiPart::Info *info, bool &openingCancelled) |
| |
| bool | newObject (KexiPart::Info *info) |
| |
| KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, TQMap< TQString, TQString > *staticObjectArgs=0) |
| |
| tristate | removeObject (KexiPart::Item *item, bool dontAsk=false) |
| |
| void | renameObject (KexiPart::Item *item, const TQString &_newName, bool &succes) |
| |
| virtual void | slotObjectRenamed (const KexiPart::Item &item, const TQCString &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 | slotEditFind () |
| |
| void | slotEditFind (bool next) |
| |
| void | slotEditFindNext () |
| |
| void | slotEditFindPrevious () |
| |
| void | slotEditReplace (bool all) |
| |
| void | slotEditReplace () |
| |
| void | slotEditReplaceNext () |
| |
| void | slotEditReplaceAll () |
| |
| void | slotViewNavigator () |
| |
| void | slotViewMainArea () |
| |
| void | slotViewPropertyEditor () |
| |
| void | slotViewDataMode () |
| |
| void | slotViewDesignMode () |
| |
| void | slotViewTextMode () |
| |
| void | slotShowSettings () |
| |
| void | slotConfigureKeys () |
| |
| void | slotConfigureToolbars () |
| |
| void | slotToolsProjectMigration () |
| |
| void | slotToolsCompactDatabase () |
| |
| 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, const TQCString &propertyToSelect=TQCString()) |
| |
| void | slotDirtyFlagChanged (KexiDialogBase *) |
| |
| void | slotMdiModeHasBeenChangedTo (KMdi::MdiMode) |
| |
| virtual void | switchToIDEAlMode () |
| |
| void | switchToIDEAlMode (bool showMessage) |
| |
| virtual void | switchToChildframeMode () |
| |
| void | switchToChildframeMode (bool showMessage) |
| |
| tristate | showProjectMigrationWizard (const TQString &mimeType, const TQString &databaseName, const KexiDB::ConnectionData *cdata=0) |
| |
| void | slotPartItemSelectedInNavigator (KexiPart::Item *item) |
| |
| tristate | executeItem (KexiPart::Item *item) |
| |
| tristate | exportItemAsDataTable (KexiPart::Item *item) |
| |
| tristate | copyItemToClipboardAsDataTable (KexiPart::Item *item) |
| |
| bool | printItem (KexiPart::Item *item, const TQString &titleText) |
| |
| bool | printItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const TQString &titleText=TQString()) |
| |
| bool | printPreviewForItem (KexiPart::Item *item, const TQString &titleText, bool reload) |
| |
| bool | printPreviewForItem (KexiPart::Item *item, const KexiSimplePrintingSettings &settings, const TQString &titleText=TQString(), bool reload=false) |
| |
| tristate | printActionForItem (KexiPart::Item *item, PrintActionType action) |
| |
Protected Slots inherited from KexiMainWindow |
|
virtual void | slotObjectRenamed (const KexiPart::Item &item, const TQCString &oldName)=0 |
| |
|
| bool | initUserMode (KexiProjectData *projectData) |
| |
| void | initNavigator () |
| |
| void | initContextHelp () |
| |
| void | initPropertyEditor () |
| |
| void | initActions () |
| |
| void | initUserActions () |
| |
| void | restoreSettings () |
| |
| void | storeSettings () |
| |
| void | invalidateActions () |
| |
| virtual void | invalidateSharedActions (TQObject *o) |
| |
| void | invalidateProjectWideActions () |
| |
| void | invalidateViewModeActions () |
| |
| tristate | createBlankProject () |
| |
| KexiProjectData * | createBlankProjectData (bool &cancelled, bool confirmOverwrites=true, TQString *shortcutFileName=0) |
| |
| void | setWindowMenu (TQPopupMenu *menu) |
| |
| virtual bool | acceptsSharedActions (TQObject *w) |
| |
| TQWidget * | findWindow (TQWidget *w) |
| |
| void | updateAppCaption () |
| |
| void | restoreWindowConfiguration (TDEConfig *config) |
| |
| void | storeWindowConfiguration (TDEConfig *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 TQString &aFileName, KexiDB::ConnectionData *cdata, const TQString &dbName) |
| |
| tristate | openProjectInExternalKexiInstance (const TQString &aFileName, const TQString &fileNameForConnectionData, const TQString &dbName) |
| |
| void | setActionAvailable (const char *action_name, bool avail) |
| |
| void | plugActionProxy (KexiActionProxy *proxy) |
| |
| void | updateActionAvailable (const char *action_name, bool avail, TQObject *obj) |
| |
| TDEMainWindow * | mainWindow () const |
| |
| TDEAction * | createSharedAction (const TQString &text, const TQString &pix_name, const TDEShortcut &cut, const char *name, TDEActionCollection *col=0, const char *subclassName=0) |
| |
| TDEAction * | createSharedAction (KStdAction::StdAction id, const char *name, TDEActionCollection *col=0) |
| |
| TDEAction * | createSharedAction (const KGuiItem &guiItem, const TDEShortcut &cut, const char *name, TDEActionCollection *col=0) |
| |
| KexiActionProxy * | actionProxyFor (TQObject *o) const |
| |
| KexiActionProxy * | takeActionProxyFor (TQObject *o) |
| |
Kexi's main window implementation.
Definition at line 45 of file keximainwindowimpl.h.
◆ KexiMainWindowImpl()
| KexiMainWindowImpl::KexiMainWindowImpl |
( |
| ) |
|
◆ ~KexiMainWindowImpl()
| KexiMainWindowImpl::~KexiMainWindowImpl |
( |
| ) |
|
|
virtual |
◆ acceptPropertySetEditing
| void KexiMainWindowImpl::acceptPropertySetEditing |
( |
| ) |
|
|
protectedvirtualslot |
◆ acceptsSharedActions()
| bool KexiMainWindowImpl::acceptsSharedActions |
( |
TQObject * |
w | ) |
|
|
protectedvirtual |
◆ activateWindow() [1/2]
| 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 2468 of file keximainwindowimpl.cpp.
◆ activateWindow() [2/2]
Like above, using dlg passed explicitly. Above method just calls this one.
Definition at line 2480 of file keximainwindowimpl.cpp.
◆ activeWindowChanged
| void KexiMainWindowImpl::activeWindowChanged |
( |
KMdiChildView * |
dlg | ) |
|
|
protectedslot |
◆ addWindow
| void KexiMainWindowImpl::addWindow |
( |
KMdiChildView * |
pView, |
|
|
int |
flags = KMdi::StandardAdd |
|
) |
| |
|
virtualslot |
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 4600 of file keximainwindowimpl.cpp.
◆ allActions()
| TDEActionPtrList KexiMainWindowImpl::allActions |
( |
| ) |
const |
|
virtual |
◆ attachWindow
| void KexiMainWindowImpl::attachWindow |
( |
KMdiChildView * |
pWnd, |
|
|
bool |
bShow = true, |
|
|
bool |
bAutomaticResize = false |
|
) |
| |
|
virtualslot |
◆ childClosed
| void KexiMainWindowImpl::childClosed |
( |
KMdiChildView * |
dlg | ) |
|
|
protectedslot |
◆ closeDialog [1/2]
◆ closeDialog [2/2]
| 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 3199 of file keximainwindowimpl.cpp.
◆ closeObject
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.
Definition at line 3732 of file keximainwindowimpl.cpp.
◆ closeProject
| 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 1598 of file keximainwindowimpl.cpp.
◆ closeWindow
| void KexiMainWindowImpl::closeWindow |
( |
KMdiChildView * |
pWnd, |
|
|
bool |
layoutTaskBar = true |
|
) |
| |
|
virtualslot |
◆ copyItemToClipboardAsDataTable
◆ create()
| int KexiMainWindowImpl::create |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
TDEAboutData * |
aboutdata = 0 |
|
) |
| |
|
static |
Used by the main kexi routine. Creates a new Kexi main window and a new TDEApplication 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())
- Todo:
- switch GUIenabled off when needed
Definition at line 147 of file keximainwindowimpl.cpp.
◆ createBlankProject()
| 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 2630 of file keximainwindowimpl.cpp.
◆ createBlankProjectData()
| KexiProjectData * KexiMainWindowImpl::createBlankProjectData |
( |
bool & |
cancelled, |
|
|
bool |
confirmOverwrites = true, |
|
|
TQString * |
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 2591 of file keximainwindowimpl.cpp.
◆ createKexiProject
◆ createProjectFromTemplate
Creates a new project usign template pointed by projectData. Application state (e.g. actions) is updated. New project data is copied into a project structures. - Returns
- true on success
Definition at line 1352 of file keximainwindowimpl.cpp.
◆ currentDialog()
◆ detachWindow
| void KexiMainWindowImpl::detachWindow |
( |
KMdiChildView * |
pWnd, |
|
|
bool |
bShow = true |
|
) |
| |
|
virtualslot |
◆ eventFilter()
| bool KexiMainWindowImpl::eventFilter |
( |
TQObject * |
obj, |
|
|
TQEvent * |
e |
|
) |
| |
|
virtual |
On mouse click on the findow, make sure it's focused and actions are invalidated
Definition at line 3407 of file keximainwindowimpl.cpp.
◆ executeCustomActionForObject
| tristate KexiMainWindowImpl::executeCustomActionForObject |
( |
KexiPart::Item * |
item, |
|
|
const TQString & |
actionName |
|
) |
| |
|
virtualslot |
Executes custom action for the main window, usually provided by a plugin. Also used by KexiFormEventAction.
Definition at line 4295 of file keximainwindowimpl.cpp.
◆ executeItem
Receives the "executeItem" signal from navigator to perform "execute" action on item. - Returns
- true on success
Definition at line 4269 of file keximainwindowimpl.cpp.
◆ exportItemAsDataTable
◆ fillWindowMenu
| void KexiMainWindowImpl::fillWindowMenu |
( |
| ) |
|
|
protectedvirtualslot |
◆ findPopupMenu()
| TQPopupMenu * KexiMainWindowImpl::findPopupMenu |
( |
const char * |
popupName | ) |
|
|
virtual |
◆ findWindow()
| TQWidget * KexiMainWindowImpl::findWindow |
( |
TQWidget * |
w | ) |
|
|
protected |
◆ generatePrivateID()
| int KexiMainWindowImpl::generatePrivateID |
( |
| ) |
|
|
virtual |
- Todo:
- move to kexiproject
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 3894 of file keximainwindowimpl.cpp.
◆ getNewObjectInfo
◆ highlightObject
| void KexiMainWindowImpl::highlightObject |
( |
const TQCString & |
mime, |
|
|
const TQCString & |
name |
|
) |
| |
|
virtualslot |
◆ importantInfo
| void KexiMainWindowImpl::importantInfo |
( |
bool |
onStartup | ) |
|
|
protectedslot |
◆ initActions()
| 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
- Todo:
- d->action_edit_replace = KStdAction::replace( this, TQ_SLOT(slotEditReplace()), actionCollection(), "project_print_preview" );
- Todo:
- d->action_edit_replace_all = new TDEAction( i18n("Replace All"), "", 0, this, TQ_SLOT(slotEditReplaceAll()), actionCollection(), "edit_replaceall");
- Todo:
- shouldn't we move this to core?
- Todo:
- unused for now
- Todo:
- support this in KexiPart::FormObjectType as well
- Todo:
- support this in KexiPart::FormObjectType as well
- Todo:
- support this in KexiPart::FormObjectType as well
- Todo:
- support this in KexiPart::FormObjectType as well
- Todo:
- support this in FormObjectType as well
- Todo:
- support this in FormObjectType, ReportObjectType as well as others
- Todo:
- support this in FormObjectType, ReportObjectType as well as others
- Todo:
- support this in FormObjectType, ReportObjectType as well as others
- Todo:
- support this in KexiPart::TableObjectType, KexiPart::QueryObjectType later
- Todo:
- support this in KexiPart::TableObjectType, KexiPart::QueryObjectType, KexiPart::FormObjectType later
- Todo:
- support this in KexiPart::TableObjectType, KexiPart::QueryObjectType, KexiPart::FormObjectType later
Definition at line 519 of file keximainwindowimpl.cpp.
◆ initContextHelp()
| void KexiMainWindowImpl::initContextHelp |
( |
| ) |
|
|
protected |
◆ initNavigator()
| 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 1716 of file keximainwindowimpl.cpp.
◆ initPropertyEditor()
| void KexiMainWindowImpl::initPropertyEditor |
( |
| ) |
|
|
protected |
◆ initUserActions()
| void KexiMainWindowImpl::initUserActions |
( |
| ) |
|
|
protected |
◆ initUserMode()
Initialises the User 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 4043 of file keximainwindowimpl.cpp.
◆ invalidateActions()
| void KexiMainWindowImpl::invalidateActions |
( |
| ) |
|
|
protected |
◆ invalidateProjectWideActions()
| 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 1144 of file keximainwindowimpl.cpp.
◆ invalidateSharedActions [1/2]
| void KexiMainWindowImpl::invalidateSharedActions |
( |
| ) |
|
|
protectedslot |
◆ invalidateSharedActions() [2/2]
| void KexiMainWindowImpl::invalidateSharedActions |
( |
TQObject * |
o | ) |
|
|
protectedvirtual |
◆ invalidateSharedActionsLater
| void KexiMainWindowImpl::invalidateSharedActionsLater |
( |
| ) |
|
|
protectedslot |
◆ invalidateViewModeActions()
| 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 1237 of file keximainwindowimpl.cpp.
◆ newObject [1/2]
◆ newObject [2/2]
| bool KexiMainWindowImpl::newObject |
( |
KexiPart::Info * |
info, |
|
|
bool & |
openingCancelled |
|
) |
| |
|
protectedvirtualslot |
Creates new object of type defined by info part info. openingCancelled is set to true is opening has been cancelled. - Returns
- true on success.
Definition at line 3749 of file keximainwindowimpl.cpp.
◆ openingAllowed()
| bool KexiMainWindowImpl::openingAllowed |
( |
KexiPart::Item * |
item, |
|
|
int |
viewMode |
|
) |
| |
◆ openObject [1/3]
| KexiDialogBase * KexiMainWindowImpl::openObject |
( |
const TQCString & |
mime, |
|
|
const TQString & |
name, |
|
|
int |
viewMode, |
|
|
bool & |
openingCancelled, |
|
|
TQMap< TQString, TQString > * |
staticObjectArgs = 0 |
|
) |
| |
|
virtualslot |
◆ openObject [2/3]
| KexiDialogBase * KexiMainWindowImpl::openObject |
( |
KexiPart::Item * |
item, |
|
|
int |
viewMode, |
|
|
bool & |
openingCancelled, |
|
|
TQMap< TQString, TQString > * |
staticObjectArgs = 0, |
|
|
TQString * |
errorMessage = 0 |
|
) |
| |
|
virtualslot |
- Todo:
- move part of this to KexiProject, because currently KexiProject::openObject() allows multiple opens!
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. errorMessage, if not 0, points to a string that can be set to error message if one encountered.
Definition at line 3602 of file keximainwindowimpl.cpp.
◆ openObject [3/3]
◆ openObjectFromNavigator [1/2]
◆ openObjectFromNavigator [2/2]
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 3692 of file keximainwindowimpl.cpp.
◆ openProject [1/3]
Opens project pointed by projectData. Application state (e.g. actions) is updated. projectData is copied into a project structures. - Returns
- true on success
- Todo:
- temp.: change this if there are file-based drivers requiring a password
showDetailsButton
Definition at line 1287 of file keximainwindowimpl.cpp.
◆ openProject [2/3]
| tristate KexiMainWindowImpl::openProject |
( |
const TQString & |
aFileName, |
|
|
const TQString & |
fileNameForConnectionData, |
|
|
const TQString & |
dbName = TQString() |
|
) |
| |
|
slot |
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 2669 of file keximainwindowimpl.cpp.
◆ openProject [3/3]
| tristate KexiMainWindowImpl::openProject |
( |
const TQString & |
aFileName, |
|
|
KexiDB::ConnectionData * |
cdata, |
|
|
const TQString & |
dbName = TQString(), |
|
|
const TQValueList< KexiProjectData::ObjectInfo > & |
autoopenObjects = TQValueList<KexiProjectData::ObjectInfo>() |
|
) |
| |
|
slot |
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 2686 of file keximainwindowimpl.cpp.
◆ openProjectInExternalKexiInstance() [1/2]
| tristate KexiMainWindowImpl::openProjectInExternalKexiInstance |
( |
const TQString & |
aFileName, |
|
|
const TQString & |
fileNameForConnectionData, |
|
|
const TQString & |
dbName |
|
) |
| |
|
protected |
◆ openProjectInExternalKexiInstance() [2/2]
| tristate KexiMainWindowImpl::openProjectInExternalKexiInstance |
( |
const TQString & |
aFileName, |
|
|
KexiDB::ConnectionData * |
cdata, |
|
|
const TQString & |
dbName |
|
) |
| |
|
protected |
◆ printActionForItem
◆ printItem [1/3]
◆ printItem [2/3]
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
- Todo:
- Todo:
- : accept row changes...
Definition at line 4337 of file keximainwindowimpl.cpp.
◆ printItem [3/3]
| bool KexiMainWindowImpl::printItem |
( |
KexiPart::Item * |
item, |
|
|
const TQString & |
titleText |
|
) |
| |
|
protectedslot |
◆ printPreviewForItem [1/3]
◆ printPreviewForItem [2/3]
Shows "print preview" dialog.
- Returns
- true on success.
- Todo:
- : check if changes to this object's design are saved, if not: ask for saving
- Todo:
- Todo:
- : accept row changes...
Definition at line 4359 of file keximainwindowimpl.cpp.
◆ printPreviewForItem [3/3]
| bool KexiMainWindowImpl::printPreviewForItem |
( |
KexiPart::Item * |
item, |
|
|
const TQString & |
titleText, |
|
|
bool |
reload |
|
) |
| |
|
protectedslot |
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 4347 of file keximainwindowimpl.cpp.
◆ project()
◆ projectOpened
| void KexiMainWindowImpl::projectOpened |
( |
| ) |
|
|
signal |
◆ propertySetSwitched
| void KexiMainWindowImpl::propertySetSwitched |
( |
KexiDialogBase * |
dlg, |
|
|
bool |
force = false, |
|
|
bool |
preservePrevSelection = true, |
|
|
const TQCString & |
propertyToSelect = TQCString() |
|
) |
| |
|
protectedvirtualslot |
◆ queryClose()
| bool KexiMainWindowImpl::queryClose |
( |
| ) |
|
|
protectedvirtual |
◆ queryExit()
| bool KexiMainWindowImpl::queryExit |
( |
| ) |
|
|
protectedvirtual |
◆ readProperties()
| void KexiMainWindowImpl::readProperties |
( |
TDEConfig * |
config | ) |
|
|
virtual |
◆ registerChild()
◆ removeObject
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 3777 of file keximainwindowimpl.cpp.
◆ renameObject
| void KexiMainWindowImpl::renameObject |
( |
KexiPart::Item * |
item, |
|
|
const TQString & |
_newName, |
|
|
bool & |
succes |
|
) |
| |
|
protectedslot |
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 3851 of file keximainwindowimpl.cpp.
◆ restoreSettings()
| void KexiMainWindowImpl::restoreSettings |
( |
| ) |
|
|
protected |
◆ restoreWindowConfiguration()
| void KexiMainWindowImpl::restoreWindowConfiguration |
( |
TDEConfig * |
config | ) |
|
|
protected |
◆ saveGlobalProperties()
| void KexiMainWindowImpl::saveGlobalProperties |
( |
TDEConfig * |
sessionConfig | ) |
|
|
virtual |
◆ saveObject
| tristate KexiMainWindowImpl::saveObject |
( |
KexiDialogBase * |
dlg, |
|
|
const TQString & |
messageWhenAskingForName = TQString(), |
|
|
bool |
dontAsk = false |
|
) |
| |
|
virtualslot |
◆ saveProperties()
| void KexiMainWindowImpl::saveProperties |
( |
TDEConfig * |
config | ) |
|
|
virtual |
◆ self()
◆ setWindowMenu()
| void KexiMainWindowImpl::setWindowMenu |
( |
TQPopupMenu * |
menu | ) |
|
|
protected |
◆ showPageSetupForItem
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
- Todo:
- Todo:
- : accept row changes...
Definition at line 4376 of file keximainwindowimpl.cpp.
◆ showProjectMigrationWizard
| tristate KexiMainWindowImpl::showProjectMigrationWizard |
( |
const TQString & |
mimeType, |
|
|
const TQString & |
databaseName, |
|
|
const KexiDB::ConnectionData * |
cdata = 0 |
|
) |
| |
|
protectedslot |
Shows Project Migration Wizard. - Returns
- true on successful 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 4222 of file keximainwindowimpl.cpp.
◆ slotAutoOpenObjectsLater
| void KexiMainWindowImpl::slotAutoOpenObjectsLater |
( |
| ) |
|
|
protectedslot |
◆ slotCaptionForCurrentMDIChild
| void KexiMainWindowImpl::slotCaptionForCurrentMDIChild |
( |
bool |
childrenMaximized | ) |
|
|
protectedslot |
◆ slotChildViewIsDetachedNow
| void KexiMainWindowImpl::slotChildViewIsDetachedNow |
( |
TQWidget * |
| ) |
|
|
protectedslot |
◆ slotConfigureKeys
| void KexiMainWindowImpl::slotConfigureKeys |
( |
| ) |
|
|
protectedslot |
◆ slotConfigureToolbars
| void KexiMainWindowImpl::slotConfigureToolbars |
( |
| ) |
|
|
protectedslot |
◆ slotDirtyFlagChanged
◆ slotEditCopySpecialDataTable
| void KexiMainWindowImpl::slotEditCopySpecialDataTable |
( |
| ) |
|
|
protectedslot |
◆ slotEditFind [1/2]
| void KexiMainWindowImpl::slotEditFind |
( |
| ) |
|
|
protectedslot |
◆ slotEditFind [2/2]
| void KexiMainWindowImpl::slotEditFind |
( |
bool |
next | ) |
|
|
protectedslot |
◆ slotEditFindNext
| void KexiMainWindowImpl::slotEditFindNext |
( |
| ) |
|
|
protectedslot |
◆ slotEditFindPrevious
| void KexiMainWindowImpl::slotEditFindPrevious |
( |
| ) |
|
|
protectedslot |
◆ slotEditPasteSpecialDataTable
| void KexiMainWindowImpl::slotEditPasteSpecialDataTable |
( |
| ) |
|
|
protectedslot |
◆ slotEditReplace [1/2]
| void KexiMainWindowImpl::slotEditReplace |
( |
| ) |
|
|
protectedslot |
◆ slotEditReplace [2/2]
| void KexiMainWindowImpl::slotEditReplace |
( |
bool |
all | ) |
|
|
protectedslot |
helper
- Todo:
- add question: "Do you want to replace every occurence of \"%1\" with \"%2\"?
You won't be able to undo this." + "Do not ask again".
- Todo:
- result
Definition at line 4581 of file keximainwindowimpl.cpp.
◆ slotEditReplaceAll
| void KexiMainWindowImpl::slotEditReplaceAll |
( |
| ) |
|
|
protectedslot |
◆ slotEditReplaceNext
| void KexiMainWindowImpl::slotEditReplaceNext |
( |
| ) |
|
|
protectedslot |
◆ slotGetNewStuff
| void KexiMainWindowImpl::slotGetNewStuff |
( |
| ) |
|
|
protectedslot |
TMP: Display a dialog to download db examples from internet.
TMP (until there's true template support)
Definition at line 4613 of file keximainwindowimpl.cpp.
◆ slotImportantInfo
| void KexiMainWindowImpl::slotImportantInfo |
( |
| ) |
|
|
protectedslot |
◆ slotImportFile
| void KexiMainWindowImpl::slotImportFile |
( |
| ) |
|
|
protectedslot |
◆ slotImportServer
| void KexiMainWindowImpl::slotImportServer |
( |
| ) |
|
|
protectedslot |
◆ slotLastActions
| void KexiMainWindowImpl::slotLastActions |
( |
| ) |
|
|
protectedslot |
There are performed all actions that need to be done immediately after ctro (using timer)
Definition at line 1778 of file keximainwindowimpl.cpp.
◆ slotLastChildViewClosed
| void KexiMainWindowImpl::slotLastChildViewClosed |
( |
| ) |
|
|
protectedslot |
◆ slotMdiModeHasBeenChangedTo
| void KexiMainWindowImpl::slotMdiModeHasBeenChangedTo |
( |
KMdi::MdiMode |
| ) |
|
|
protectedslot |
◆ slotNoMaximizedChildFrmLeft
| void KexiMainWindowImpl::slotNoMaximizedChildFrmLeft |
( |
KMdiChildFrm * |
| ) |
|
|
protectedslot |
◆ slotObjectRenamed
| void KexiMainWindowImpl::slotObjectRenamed |
( |
const KexiPart::Item & |
item, |
|
|
const TQCString & |
oldName |
|
) |
| |
|
protectedvirtualslot |
Reaction for object rename (signalled by KexiProject). If this item has opened dialog, it's caption is updated, and also optionally application's caption.
Definition at line 3875 of file keximainwindowimpl.cpp.
◆ slotOptionsEnableForms
| void KexiMainWindowImpl::slotOptionsEnableForms |
( |
bool |
show, |
|
|
bool |
noMessage = false |
|
) |
| |
|
protectedslot |
◆ slotPartItemSelectedInNavigator
| void KexiMainWindowImpl::slotPartItemSelectedInNavigator |
( |
KexiPart::Item * |
item | ) |
|
|
protectedslot |
Receives "selectionChanged()" signal from navigator to update some actions.
Definition at line 4637 of file keximainwindowimpl.cpp.
◆ slotPartLoaded
◆ slotProjectClose
| void KexiMainWindowImpl::slotProjectClose |
( |
| ) |
|
|
protectedslot |
◆ slotProjectExportDataTable
| void KexiMainWindowImpl::slotProjectExportDataTable |
( |
| ) |
|
|
protectedslot |
◆ slotProjectImportDataTable
| void KexiMainWindowImpl::slotProjectImportDataTable |
( |
| ) |
|
|
protectedslot |
◆ slotProjectNew
| void KexiMainWindowImpl::slotProjectNew |
( |
| ) |
|
|
protectedslot |
◆ slotProjectOpen
| void KexiMainWindowImpl::slotProjectOpen |
( |
| ) |
|
|
protectedslot |
◆ slotProjectOpenRecent
| void KexiMainWindowImpl::slotProjectOpenRecent |
( |
int |
id | ) |
|
|
protectedslot |
◆ slotProjectOpenRecentAboutToShow
| void KexiMainWindowImpl::slotProjectOpenRecentAboutToShow |
( |
| ) |
|
|
protectedslot |
◆ slotProjectOpenRecentMore
| void KexiMainWindowImpl::slotProjectOpenRecentMore |
( |
| ) |
|
|
protectedslot |
◆ slotProjectPageSetup
| void KexiMainWindowImpl::slotProjectPageSetup |
( |
| ) |
|
|
protectedslot |
◆ slotProjectPrint
| void KexiMainWindowImpl::slotProjectPrint |
( |
| ) |
|
|
protectedslot |
◆ slotProjectPrintPreview
| void KexiMainWindowImpl::slotProjectPrintPreview |
( |
| ) |
|
|
protectedslot |
◆ slotProjectProperties
| void KexiMainWindowImpl::slotProjectProperties |
( |
| ) |
|
|
protectedslot |
◆ slotProjectQuit
| void KexiMainWindowImpl::slotProjectQuit |
( |
| ) |
|
|
protectedslot |
◆ slotProjectRelations
| void KexiMainWindowImpl::slotProjectRelations |
( |
| ) |
|
|
protectedslot |
◆ slotProjectSave
| void KexiMainWindowImpl::slotProjectSave |
( |
| ) |
|
|
protectedslot |
◆ slotProjectSaveAs
| void KexiMainWindowImpl::slotProjectSaveAs |
( |
| ) |
|
|
protectedslot |
◆ slotShowSettings
| void KexiMainWindowImpl::slotShowSettings |
( |
| ) |
|
|
protectedslot |
◆ slotStartFeedbackAgent
| void KexiMainWindowImpl::slotStartFeedbackAgent |
( |
| ) |
|
|
protectedslot |
◆ slotTipOfTheDay
| void KexiMainWindowImpl::slotTipOfTheDay |
( |
| ) |
|
|
protectedslot |
◆ slotToolsCompactDatabase
| void KexiMainWindowImpl::slotToolsCompactDatabase |
( |
| ) |
|
|
protectedslot |
◆ slotToolsProjectMigration
| void KexiMainWindowImpl::slotToolsProjectMigration |
( |
| ) |
|
|
protectedslot |
◆ slotViewDataMode
| void KexiMainWindowImpl::slotViewDataMode |
( |
| ) |
|
|
protectedslot |
◆ slotViewDesignMode
| void KexiMainWindowImpl::slotViewDesignMode |
( |
| ) |
|
|
protectedslot |
◆ slotViewMainArea
| void KexiMainWindowImpl::slotViewMainArea |
( |
| ) |
|
|
protectedslot |
◆ slotViewNavigator
| void KexiMainWindowImpl::slotViewNavigator |
( |
| ) |
|
|
protectedslot |
◆ slotViewPropertyEditor
| void KexiMainWindowImpl::slotViewPropertyEditor |
( |
| ) |
|
|
protectedslot |
◆ slotViewTextMode
| void KexiMainWindowImpl::slotViewTextMode |
( |
| ) |
|
|
protectedslot |
◆ startup()
| tristate KexiMainWindowImpl::startup |
( |
| ) |
|
Performs startup actions. - Returns
- false if application should exit immediately with an error status.
Definition at line 1256 of file keximainwindowimpl.cpp.
◆ storeSettings()
| void KexiMainWindowImpl::storeSettings |
( |
| ) |
|
|
protected |
◆ storeWindowConfiguration()
| void KexiMainWindowImpl::storeWindowConfiguration |
( |
TDEConfig * |
config | ) |
|
|
protected |
◆ switchToChildframeMode [1/2]
| void KexiMainWindowImpl::switchToChildframeMode |
( |
| ) |
|
|
protectedvirtualslot |
◆ switchToChildframeMode [2/2]
| void KexiMainWindowImpl::switchToChildframeMode |
( |
bool |
showMessage | ) |
|
|
protectedslot |
◆ switchToIDEAlMode [1/2]
| void KexiMainWindowImpl::switchToIDEAlMode |
( |
| ) |
|
|
protectedvirtualslot |
◆ switchToIDEAlMode [2/2]
| void KexiMainWindowImpl::switchToIDEAlMode |
( |
bool |
showMessage | ) |
|
|
protectedslot |
◆ switchToViewMode()
| bool KexiMainWindowImpl::switchToViewMode |
( |
int |
viewMode | ) |
|
|
protected |
◆ updateAppCaption()
| void KexiMainWindowImpl::updateAppCaption |
( |
| ) |
|
|
protected |
◆ updateCustomPropertyPanelTabs() [1/2]
| 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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 2273 of file keximainwindowimpl.cpp.
◆ updateCustomPropertyPanelTabs() [2/2]
| void KexiMainWindowImpl::updateCustomPropertyPanelTabs |
( |
KexiPart::Part * |
prevDialogPart, |
|
|
int |
prevViewMode, |
|
|
KexiPart::Part * |
curDialogPart, |
|
|
int |
curViewMode |
|
) |
| |
|
protected |
◆ updateDialogViewGUIClient()
| void KexiMainWindowImpl::updateDialogViewGUIClient |
( |
KXMLGUIClient * |
viewClient | ) |
|
|
protected |
◆ updateReadOnlyState
| void KexiMainWindowImpl::updateReadOnlyState |
( |
| ) |
|
|
protectedslot |
Updates the statusbar, navigator and "Insert->....." actions, dependent on read-only state.
Only called on project opening and closing.
Definition at line 1416 of file keximainwindowimpl.cpp.
◆ userMode()
| bool KexiMainWindowImpl::userMode |
( |
| ) |
const |
|
virtual |
◆ KexiDialogBase
The documentation for this class was generated from the following files:
|