kexi

#include <keximainwindowimpl.h>

Inheritance diagram for KexiMainWindowImpl:
KexiMainWindow KexiSharedActionHost

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, 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
 

Signals

void projectOpened ()
 
- Signals inherited from KexiMainWindow
void acceptProjectClosingRequested (bool &cancel)
 
void beforeProjectClosing ()
 
void projectClosed ()
 

Public Member Functions

 KexiMainWindowImpl ()
 
virtual KexiProject * project ()
 
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 (TQObject *obj, TQEvent *e)
 
virtual TQPopupMenu * findPopupMenu (const char *popupName)
 
virtual TDEActionPtrList allActions () const
 
virtual KexiDialogBase * currentDialog () const
 
virtual int generatePrivateID ()
 
virtual void readProperties (TDEConfig *config)
 
virtual void saveProperties (TDEConfig *config)
 
virtual void saveGlobalProperties (TDEConfig *sessionConfig)
 
- Public Member Functions inherited from KexiSharedActionHost
 KexiSharedActionHost (TDEMainWindow *mainWin)
 
virtual ~KexiSharedActionHost ()
 
TQWidget * focusWindow ()
 
void setAsDefaultHost ()
 
TDEActionPtrList sharedActions () const
 
void setActionVolatile (TDEAction *a, bool set)
 

Static Public Member Functions

static int create (int argc, char *argv[], TDEAboutData *aboutdata=0)
 
static KexiMainWindowImpl * self ()
 
- Static Public Member Functions inherited from KexiSharedActionHost
static KexiSharedActionHost & defaultHost ()
 

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

Protected Member Functions

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)
 
- Protected Member Functions inherited from KexiSharedActionHost
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)
 

Friends

class KexiDialogBase
 

Additional Inherited Members

- Public Types inherited from KexiMainWindow
enum  PrintActionType { PrintItem , PreviewItem , PageSetupForItem }
 

Detailed Description

Kexi's main window implementation.

Definition at line 45 of file keximainwindowimpl.h.

Constructor & Destructor Documentation

◆ KexiMainWindowImpl()

KexiMainWindowImpl::KexiMainWindowImpl ( )

Creates an empty mainwindow.

Definition at line 227 of file keximainwindowimpl.cpp.

◆ ~KexiMainWindowImpl()

KexiMainWindowImpl::~KexiMainWindowImpl ( )
virtual

Definition at line 378 of file keximainwindowimpl.cpp.

Member Function Documentation

◆ acceptPropertySetEditing

void KexiMainWindowImpl::acceptPropertySetEditing ( )
protectedvirtualslot

Definition at line 3899 of file keximainwindowimpl.cpp.

◆ acceptsSharedActions()

bool KexiMainWindowImpl::acceptsSharedActions ( TQObject *  w)
protectedvirtual
Returns
focused kexi window (KexiDialogBase or KexiDockBase subclass)

Reimplemented from KexiSharedActionHost: accepts only KexiDockBase and KexiDialogBase subclasses.

Reimplemented from KexiSharedActionHost.

Definition at line 3402 of file keximainwindowimpl.cpp.

◆ 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]

bool KexiMainWindowImpl::activateWindow ( KexiDialogBase *  dlg)

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

This slot is called if a window changes

Definition at line 2337 of file keximainwindowimpl.cpp.

◆ 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

Implemented for KexiMainWindow.

Implements KexiMainWindow.

Definition at line 509 of file keximainwindowimpl.cpp.

◆ attachWindow

void KexiMainWindowImpl::attachWindow ( KMdiChildView *  pWnd,
bool  bShow = true,
bool  bAutomaticResize = false 
)
virtualslot

Definition at line 3377 of file keximainwindowimpl.cpp.

◆ childClosed

void KexiMainWindowImpl::childClosed ( KMdiChildView *  dlg)
protectedslot

Tthis slot is called if a window gets colsed and will unregister stuff

Definition at line 2492 of file keximainwindowimpl.cpp.

◆ closeDialog [1/2]

tristate KexiMainWindowImpl::closeDialog ( KexiDialogBase *  dlg)
virtualslot

Implemented for KexiMainWindow

Definition at line 3194 of file keximainwindowimpl.cpp.

◆ 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

tristate KexiMainWindowImpl::closeObject ( KexiPart::Item *  item)
virtualslot

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

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

◆ copyItemToClipboardAsDataTable

tristate KexiMainWindowImpl::copyItemToClipboardAsDataTable ( KexiPart::Item *  item)
protectedslot

Shows "copy special as data table" dialog for item.

Definition at line 4495 of file keximainwindowimpl.cpp.

◆ 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

void KexiMainWindowImpl::createKexiProject ( KexiProjectData *  new_data)
protectedslot

internal - creates and initializes kexi project

Definition at line 2578 of file keximainwindowimpl.cpp.

◆ createProjectFromTemplate

tristate KexiMainWindowImpl::createProjectFromTemplate ( const KexiProjectData &  projectData)
slot

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

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

◆ detachWindow

void KexiMainWindowImpl::detachWindow ( KMdiChildView *  pWnd,
bool  bShow = true 
)
virtualslot

Definition at line 3367 of file keximainwindowimpl.cpp.

◆ 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

tristate KexiMainWindowImpl::executeItem ( KexiPart::Item *  item)
protectedslot

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

tristate KexiMainWindowImpl::exportItemAsDataTable ( KexiPart::Item *  item)
protectedslot

Shows "exports as data table" dialog for item.

Todo:
: check if changes to this are saved, if not: ask for saving
Todo:
Todo:
: accept row changes...

Definition at line 4308 of file keximainwindowimpl.cpp.

◆ fillWindowMenu

void KexiMainWindowImpl::fillWindowMenu ( )
protectedvirtualslot

Definition at line 412 of file keximainwindowimpl.cpp.

◆ findPopupMenu()

TQPopupMenu * KexiMainWindowImpl::findPopupMenu ( const char *  popupName)
virtual
Returns
popup menu for popupName name.

Implements KexiMainWindow.

Definition at line 504 of file keximainwindowimpl.cpp.

◆ findWindow()

TQWidget * KexiMainWindowImpl::findWindow ( TQWidget *  w)
protected

Performs lookup like in KexiSharedActionHost::focusWindow() but starting from w instead of a widget returned by TQWidget::focusWidget().

Returns
NULL if no widget matches acceptsSharedActions() or if w is NULL.

Definition at line 3395 of file keximainwindowimpl.cpp.

◆ 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

tristate KexiMainWindowImpl::getNewObjectInfo ( KexiPart::Item *  partItem,
KexiPart::Part *  part,
bool &  allowOverwriting,
const TQString &  messageWhenAskingForName = TQString() 
)
virtualslot

Implemented for KexiMainWindow

Definition at line 3081 of file keximainwindowimpl.cpp.

◆ highlightObject

void KexiMainWindowImpl::highlightObject ( const TQCString &  mime,
const TQCString &  name 
)
virtualslot

Implemented for KexiMainWindow

Definition at line 4624 of file keximainwindowimpl.cpp.

◆ importantInfo

void KexiMainWindowImpl::importantInfo ( bool  onStartup)
protectedslot

Shows 'important info' dialog, is onStartup is false, it's always shown.

Definition at line 3977 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 1702 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 1795 of file keximainwindowimpl.cpp.

◆ initUserActions()

void KexiMainWindowImpl::initUserActions ( )
protected

Creates user project-wide actions

Definition at line 4126 of file keximainwindowimpl.cpp.

◆ initUserMode()

bool KexiMainWindowImpl::initUserMode ( KexiProjectData *  projectData)
protected

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

Invalidates availability of all actions for current application state.

Definition at line 1115 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 1133 of file keximainwindowimpl.cpp.

◆ invalidateSharedActions() [2/2]

void KexiMainWindowImpl::invalidateSharedActions ( TQObject *  o)
protectedvirtual

Invalidates action availability for current application state. These actions are dependent on curently selected dialog.

Reimplemented from KexiSharedActionHost.

Definition at line 1121 of file keximainwindowimpl.cpp.

◆ invalidateSharedActionsLater

void KexiMainWindowImpl::invalidateSharedActionsLater ( )
protectedslot

Definition at line 1139 of file keximainwindowimpl.cpp.

◆ 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]

bool KexiMainWindowImpl::newObject ( KexiPart::Info *  info)
inlineprotectedslot

For convenience.

Definition at line 374 of file keximainwindowimpl.h.

◆ 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 
)
Returns
true if opening of item item in viewMode mode is allowed. userMode() is taken into account as well as KexiPart::Part::supportedUserViewModes() for item.
Todo:
this can be more complex once we deliver ACLs...

Definition at line 3582 of file keximainwindowimpl.cpp.

◆ openObject [1/3]

KexiDialogBase * KexiMainWindowImpl::openObject ( const TQCString &  mime,
const TQString &  name,
int  viewMode,
bool &  openingCancelled,
TQMap< TQString, TQString > *  staticObjectArgs = 0 
)
virtualslot

For convenience.

Definition at line 3592 of file keximainwindowimpl.cpp.

◆ 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]

KexiDialogBase * KexiMainWindowImpl::openObject ( KexiPart::Item *  item,
int  viewMode,
TQMap< TQString, TQString > *  staticObjectArgs = 0 
)
inlineprotectedslot

For convenience.

Definition at line 380 of file keximainwindowimpl.h.

◆ openObjectFromNavigator [1/2]

KexiDialogBase * KexiMainWindowImpl::openObjectFromNavigator ( KexiPart::Item *  item,
int  viewMode 
)
protectedslot

For convenience.

Definition at line 3685 of file keximainwindowimpl.cpp.

◆ openObjectFromNavigator [2/2]

KexiDialogBase * KexiMainWindowImpl::openObjectFromNavigator ( KexiPart::Item *  item,
int  viewMode,
bool &  openingCancelled 
)
protectedslot

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]

tristate KexiMainWindowImpl::openProject ( const KexiProjectData &  projectData)
slot

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

Used in openProject when running another Kexi process is required.

Todo:
use KRun

Definition at line 2760 of file keximainwindowimpl.cpp.

◆ openProjectInExternalKexiInstance() [2/2]

tristate KexiMainWindowImpl::openProjectInExternalKexiInstance ( const TQString &  aFileName,
KexiDB::ConnectionData *  cdata,
const TQString &  dbName 
)
protected

Used in openProject when running another Kexi process is required.

Definition at line 2749 of file keximainwindowimpl.cpp.

◆ printActionForItem

tristate KexiMainWindowImpl::printActionForItem ( KexiPart::Item *  item,
PrintActionType  action 
)
protectedslot

Implemented for KexiMainWindow. Helper for printItem() and printPreviewForItem(). Also used by KexiFormEventAction.

Returns
true on success and cancelled when the action was cancelled.

Definition at line 4383 of file keximainwindowimpl.cpp.

◆ printItem [1/3]

tristate KexiMainWindowImpl::printItem ( KexiPart::Item *  item)
virtualslot

Shows "print" dialog for item.

Returns
true on success.

Definition at line 4332 of file keximainwindowimpl.cpp.

◆ printItem [2/3]

bool KexiMainWindowImpl::printItem ( KexiPart::Item *  item,
const KexiSimplePrintingSettings &  settings,
const TQString &  titleText = TQString() 
)
protectedslot

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

Shows "print" dialog for item.

Returns
true on success.

Definition at line 4327 of file keximainwindowimpl.cpp.

◆ printPreviewForItem [1/3]

tristate KexiMainWindowImpl::printPreviewForItem ( KexiPart::Item *  item)
virtualslot

Shows "print preview" dialog.

Returns
true on success.
Todo:
store cached row data?

Definition at line 4352 of file keximainwindowimpl.cpp.

◆ printPreviewForItem [2/3]

bool KexiMainWindowImpl::printPreviewForItem ( KexiPart::Item *  item,
const KexiSimplePrintingSettings &  settings,
const TQString &  titleText = TQString(),
bool  reload = false 
)
protectedslot

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

KexiProject * KexiMainWindowImpl::project ( )
virtual

Project data of currently opened project or NULL if no project here yet.

Implements KexiMainWindow.

Definition at line 385 of file keximainwindowimpl.cpp.

◆ projectOpened

void KexiMainWindowImpl::projectOpened ( )
signal

Emitted after opening a project, even after slotAutoOpenObjectsLater().

◆ propertySetSwitched

void KexiMainWindowImpl::propertySetSwitched ( KexiDialogBase *  dlg,
bool  force = false,
bool  preservePrevSelection = true,
const TQCString &  propertyToSelect = TQCString() 
)
protectedvirtualslot

Definition at line 3905 of file keximainwindowimpl.cpp.

◆ queryClose()

bool KexiMainWindowImpl::queryClose ( )
protectedvirtual

Definition at line 1981 of file keximainwindowimpl.cpp.

◆ queryExit()

bool KexiMainWindowImpl::queryExit ( )
protectedvirtual

Definition at line 2002 of file keximainwindowimpl.cpp.

◆ readProperties()

void KexiMainWindowImpl::readProperties ( TDEConfig *  config)
virtual

Reimplemented

Definition at line 2206 of file keximainwindowimpl.cpp.

◆ registerChild()

void KexiMainWindowImpl::registerChild ( KexiDialogBase *  dlg)
virtual

Registers dialog dlg for watching and adds it to the main window's stack.

Implements KexiMainWindow.

Definition at line 2224 of file keximainwindowimpl.cpp.

◆ removeObject

tristate KexiMainWindowImpl::removeObject ( KexiPart::Item *  item,
bool  dontAsk = false 
)
protectedslot

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

Sets up the window from user settings (e.g. mdi mode).

Definition at line 2009 of file keximainwindowimpl.cpp.

◆ restoreWindowConfiguration()

void KexiMainWindowImpl::restoreWindowConfiguration ( TDEConfig *  config)
protected

Definition at line 2169 of file keximainwindowimpl.cpp.

◆ saveGlobalProperties()

void KexiMainWindowImpl::saveGlobalProperties ( TDEConfig *  sessionConfig)
virtual

Definition at line 2219 of file keximainwindowimpl.cpp.

◆ saveObject

tristate KexiMainWindowImpl::saveObject ( KexiDialogBase *  dlg,
const TQString &  messageWhenAskingForName = TQString(),
bool  dontAsk = false 
)
virtualslot

Implemented for KexiMainWindow

Definition at line 3155 of file keximainwindowimpl.cpp.

◆ saveProperties()

void KexiMainWindowImpl::saveProperties ( TDEConfig *  config)
virtual

Definition at line 2211 of file keximainwindowimpl.cpp.

◆ self()

static KexiMainWindowImpl * KexiMainWindowImpl::self ( )
inlinestatic
Returns
KexiMainWindowImpl singleton (if it is instantiated)

Definition at line 61 of file keximainwindowimpl.h.

◆ setWindowMenu()

void KexiMainWindowImpl::setWindowMenu ( TQPopupMenu *  menu)
protected

Definition at line 390 of file keximainwindowimpl.cpp.

◆ showPageSetupForItem

tristate KexiMainWindowImpl::showPageSetupForItem ( KexiPart::Item *  item)
virtualslot

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

Called once after timeout (after ctors are executed).

Definition at line 1431 of file keximainwindowimpl.cpp.

◆ slotCaptionForCurrentMDIChild

void KexiMainWindowImpl::slotCaptionForCurrentMDIChild ( bool  childrenMaximized)
protectedslot

internal

Definition at line 1867 of file keximainwindowimpl.cpp.

◆ slotChildViewIsDetachedNow

void KexiMainWindowImpl::slotChildViewIsDetachedNow ( TQWidget *  )
protectedslot

Definition at line 1957 of file keximainwindowimpl.cpp.

◆ slotConfigureKeys

void KexiMainWindowImpl::slotConfigureKeys ( )
protectedslot

Definition at line 2514 of file keximainwindowimpl.cpp.

◆ slotConfigureToolbars

void KexiMainWindowImpl::slotConfigureToolbars ( )
protectedslot

Definition at line 2523 of file keximainwindowimpl.cpp.

◆ slotDirtyFlagChanged

void KexiMainWindowImpl::slotDirtyFlagChanged ( KexiDialogBase *  dlg)
protectedslot

Handles changes in 'dirty' flag for dialogs.

Definition at line 3928 of file keximainwindowimpl.cpp.

◆ slotEditCopySpecialDataTable

void KexiMainWindowImpl::slotEditCopySpecialDataTable ( )
protectedslot

Definition at line 4488 of file keximainwindowimpl.cpp.

◆ slotEditFind [1/2]

void KexiMainWindowImpl::slotEditFind ( )
protectedslot

Definition at line 4527 of file keximainwindowimpl.cpp.

◆ slotEditFind [2/2]

void KexiMainWindowImpl::slotEditFind ( bool  next)
protectedslot

helper

Todo:
result

Definition at line 4541 of file keximainwindowimpl.cpp.

◆ slotEditFindNext

void KexiMainWindowImpl::slotEditFindNext ( )
protectedslot

Definition at line 4554 of file keximainwindowimpl.cpp.

◆ slotEditFindPrevious

void KexiMainWindowImpl::slotEditFindPrevious ( )
protectedslot

Definition at line 4559 of file keximainwindowimpl.cpp.

◆ slotEditPasteSpecialDataTable

void KexiMainWindowImpl::slotEditPasteSpecialDataTable ( )
protectedslot
Todo:
allow data appending (it is not possible now)

Definition at line 4512 of file keximainwindowimpl.cpp.

◆ slotEditReplace [1/2]

void KexiMainWindowImpl::slotEditReplace ( )
protectedslot
Todo:
slotEditReplace()

Definition at line 4564 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 4595 of file keximainwindowimpl.cpp.

◆ slotEditReplaceNext

void KexiMainWindowImpl::slotEditReplaceNext ( )
protectedslot

Definition at line 4576 of file keximainwindowimpl.cpp.

◆ 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

just importantInfo(false);

Definition at line 3951 of file keximainwindowimpl.cpp.

◆ slotImportFile

void KexiMainWindowImpl::slotImportFile ( )
protectedslot

Definition at line 2934 of file keximainwindowimpl.cpp.

◆ slotImportServer

void KexiMainWindowImpl::slotImportServer ( )
protectedslot

Definition at line 2939 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 1943 of file keximainwindowimpl.cpp.

◆ slotMdiModeHasBeenChangedTo

void KexiMainWindowImpl::slotMdiModeHasBeenChangedTo ( KMdi::MdiMode  )
protectedslot

Definition at line 3939 of file keximainwindowimpl.cpp.

◆ slotNoMaximizedChildFrmLeft

void KexiMainWindowImpl::slotNoMaximizedChildFrmLeft ( KMdiChildFrm *  )
protectedslot

Definition at line 1938 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 4031 of file keximainwindowimpl.cpp.

◆ 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

void KexiMainWindowImpl::slotPartLoaded ( KexiPart::Part *  p)
protectedslot

Definition at line 1857 of file keximainwindowimpl.cpp.

◆ slotProjectClose

void KexiMainWindowImpl::slotProjectClose ( )
protectedslot

Definition at line 2921 of file keximainwindowimpl.cpp.

◆ slotProjectExportDataTable

void KexiMainWindowImpl::slotProjectExportDataTable ( )
protectedslot

Definition at line 2906 of file keximainwindowimpl.cpp.

◆ slotProjectImportDataTable

void KexiMainWindowImpl::slotProjectImportDataTable ( )
protectedslot
Todo:
allow data appending (it is not possible now)

Definition at line 4280 of file keximainwindowimpl.cpp.

◆ slotProjectNew

void KexiMainWindowImpl::slotProjectNew ( )
protectedslot
Todo:
use TDEProcess?

Definition at line 2531 of file keximainwindowimpl.cpp.

◆ slotProjectOpen

void KexiMainWindowImpl::slotProjectOpen ( )
protectedslot

Definition at line 2657 of file keximainwindowimpl.cpp.

◆ slotProjectOpenRecent

void KexiMainWindowImpl::slotProjectOpenRecent ( int  id)
protectedslot

Definition at line 2856 of file keximainwindowimpl.cpp.

◆ slotProjectOpenRecentAboutToShow

void KexiMainWindowImpl::slotProjectOpenRecentAboutToShow ( )
protectedslot

Definition at line 2796 of file keximainwindowimpl.cpp.

◆ slotProjectOpenRecentMore

void KexiMainWindowImpl::slotProjectOpenRecentMore ( )
protectedslot

Definition at line 2864 of file keximainwindowimpl.cpp.

◆ slotProjectPageSetup

void KexiMainWindowImpl::slotProjectPageSetup ( )
protectedslot

Definition at line 2900 of file keximainwindowimpl.cpp.

◆ slotProjectPrint

void KexiMainWindowImpl::slotProjectPrint ( )
protectedslot

Definition at line 2886 of file keximainwindowimpl.cpp.

◆ slotProjectPrintPreview

void KexiMainWindowImpl::slotProjectPrintPreview ( )
protectedslot

Definition at line 2893 of file keximainwindowimpl.cpp.

◆ slotProjectProperties

void KexiMainWindowImpl::slotProjectProperties ( )
protectedslot

Definition at line 2913 of file keximainwindowimpl.cpp.

◆ slotProjectQuit

void KexiMainWindowImpl::slotProjectQuit ( )
protectedslot

Definition at line 2945 of file keximainwindowimpl.cpp.

◆ slotProjectRelations

void KexiMainWindowImpl::slotProjectRelations ( )
protectedslot

Definition at line 2926 of file keximainwindowimpl.cpp.

◆ slotProjectSave

void KexiMainWindowImpl::slotProjectSave ( )
protectedslot

Definition at line 2870 of file keximainwindowimpl.cpp.

◆ slotProjectSaveAs

void KexiMainWindowImpl::slotProjectSaveAs ( )
protectedslot

Definition at line 2880 of file keximainwindowimpl.cpp.

◆ slotShowSettings

void KexiMainWindowImpl::slotShowSettings ( )
protectedslot

Definition at line 2506 of file keximainwindowimpl.cpp.

◆ slotStartFeedbackAgent

void KexiMainWindowImpl::slotStartFeedbackAgent ( )
protectedslot

Definition at line 3956 of file keximainwindowimpl.cpp.

◆ slotTipOfTheDay

void KexiMainWindowImpl::slotTipOfTheDay ( )
protectedslot

Definition at line 3946 of file keximainwindowimpl.cpp.

◆ slotToolsCompactDatabase

void KexiMainWindowImpl::slotToolsCompactDatabase ( )
protectedslot
Todo:
add support for server based if needed?

Definition at line 4153 of file keximainwindowimpl.cpp.

◆ slotToolsProjectMigration

void KexiMainWindowImpl::slotToolsProjectMigration ( )
protectedslot

Definition at line 4148 of file keximainwindowimpl.cpp.

◆ slotViewDataMode

void KexiMainWindowImpl::slotViewDataMode ( )
protectedslot

Definition at line 3048 of file keximainwindowimpl.cpp.

◆ slotViewDesignMode

void KexiMainWindowImpl::slotViewDesignMode ( )
protectedslot

Definition at line 3053 of file keximainwindowimpl.cpp.

◆ slotViewMainArea

void KexiMainWindowImpl::slotViewMainArea ( )
protectedslot

Definition at line 2969 of file keximainwindowimpl.cpp.

◆ slotViewNavigator

void KexiMainWindowImpl::slotViewNavigator ( )
protectedslot

Definition at line 2952 of file keximainwindowimpl.cpp.

◆ slotViewPropertyEditor

void KexiMainWindowImpl::slotViewPropertyEditor ( )
protectedslot

Definition at line 2975 of file keximainwindowimpl.cpp.

◆ slotViewTextMode

void KexiMainWindowImpl::slotViewTextMode ( )
protectedslot

sometimes called "SQL View"

Definition at line 3058 of file keximainwindowimpl.cpp.

◆ 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

Writes user settings back.

Definition at line 2104 of file keximainwindowimpl.cpp.

◆ storeWindowConfiguration()

void KexiMainWindowImpl::storeWindowConfiguration ( TDEConfig *  config)
protected

Definition at line 2187 of file keximainwindowimpl.cpp.

◆ switchToChildframeMode [1/2]

void KexiMainWindowImpl::switchToChildframeMode ( )
protectedvirtualslot

Definition at line 477 of file keximainwindowimpl.cpp.

◆ switchToChildframeMode [2/2]

void KexiMainWindowImpl::switchToChildframeMode ( bool  showMessage)
protectedslot

Definition at line 482 of file keximainwindowimpl.cpp.

◆ switchToIDEAlMode [1/2]

void KexiMainWindowImpl::switchToIDEAlMode ( )
protectedvirtualslot

reimplemented to add "restart is required" message box

Definition at line 450 of file keximainwindowimpl.cpp.

◆ switchToIDEAlMode [2/2]

void KexiMainWindowImpl::switchToIDEAlMode ( bool  showMessage)
protectedslot

Definition at line 455 of file keximainwindowimpl.cpp.

◆ switchToViewMode()

bool KexiMainWindowImpl::switchToViewMode ( int  viewMode)
protected

Helper: switches to view mode.

Definition at line 3001 of file keximainwindowimpl.cpp.

◆ updateAppCaption()

void KexiMainWindowImpl::updateAppCaption ( )
protected

Updates application's caption - also shows project's name.

Definition at line 1896 of file keximainwindowimpl.cpp.

◆ 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

Definition at line 2283 of file keximainwindowimpl.cpp.

◆ updateDialogViewGUIClient()

void KexiMainWindowImpl::updateDialogViewGUIClient ( KXMLGUIClient *  viewClient)
protected

Helper. Removes and/or adds GUI client for current dialog's view; on switching to other dialog (activeWindowChanged()) or on switching to other view within the same dialog (switchToViewMode()).

Definition at line 2251 of file keximainwindowimpl.cpp.

◆ 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
Returns
true if the application window is in the User Mode.

Implements KexiMainWindow.

Definition at line 4037 of file keximainwindowimpl.cpp.

Friends And Related Symbol Documentation

◆ KexiDialogBase

friend class KexiDialogBase
friend

Definition at line 535 of file keximainwindowimpl.h.


The documentation for this class was generated from the following files: