KexiMainWindow Class Reference
#include <keximainwindow.h>
Inheritance diagram for KexiMainWindow:

Detailed Description
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.KexiMainWindow offers simple features what lowers cross-dependency (and also avoids circular dependencies between Kexi modules).
Definition at line 45 of file keximainwindow.h.
Public Types | |
| enum | PrintActionType { PrintItem, PreviewItem, PageSetupForItem } |
| Used by printActionForItem(). More... | |
Public Slots | |
| virtual bool | newObject (KexiPart::Info *info, bool &openingCancelled)=0 |
| virtual KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0, QString *errorMessage=0)=0 |
| Opens object pointed by item in a view viewMode. | |
| virtual KexiDialogBase * | openObject (const QCString &mime, const QString &name, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0)=0 |
| For convenience. | |
| virtual tristate | closeObject (KexiPart::Item *item)=0 |
| virtual void | acceptPropertySetEditing ()=0 |
| virtual void | propertySetSwitched (KexiDialogBase *dlg, bool force=false, bool preservePrevSelection=true, const QCString &propertyToSelect=QCString())=0 |
| virtual tristate | saveObject (KexiDialogBase *dlg, const QString &messageWhenAskingForName=QString::null, bool dontAsk=false)=0 |
| virtual tristate | closeDialog (KexiDialogBase *dlg)=0 |
| virtual tristate | getNewObjectInfo (KexiPart::Item *partItem, KexiPart::Part *part, bool &allowOverwriting, const QString &messageWhenAskingForName=QString::null)=0 |
| virtual void | highlightObject (const QCString &mime, const QCString &name)=0 |
| virtual tristate | printItem (KexiPart::Item *item)=0 |
| Shows "print" dialog for item. | |
| virtual tristate | printPreviewForItem (KexiPart::Item *item)=0 |
| Shows "print preview" dialog. | |
| virtual tristate | showPageSetupForItem (KexiPart::Item *item)=0 |
| Shows "page setup" dialog for item. | |
| virtual tristate | executeCustomActionForObject (KexiPart::Item *item, const QString &actionName)=0 |
Signals | |
| void | acceptProjectClosingRequested (bool &cancel) |
| Emitted to make sure the project can be close. | |
| void | beforeProjectClosing () |
| Emitted before closing the project (and destroying all it's data members). | |
| void | projectClosed () |
| Emitted after closing the project. | |
Public Member Functions | |
| KexiMainWindow () | |
| virtual | ~KexiMainWindow () |
| virtual KexiProject * | project ()=0 |
| Project data of currently opened project or NULL if no project here yet. | |
| virtual void | registerChild (KexiDialogBase *dlg)=0 |
| virtual QPopupMenu * | findPopupMenu (const char *popupName)=0 |
| virtual int | generatePrivateID ()=0 |
| virtual KActionPtrList | allActions () const =0 |
| virtual KexiDialogBase * | currentDialog () const =0 |
| virtual bool | userMode () const =0 |
Protected Slots | |
| virtual void | slotObjectRenamed (const KexiPart::Item &item, const QCString &oldName)=0 |
Member Enumeration Documentation
|
|
Used by printActionForItem().
Definition at line 50 of file keximainwindow.h. |
Constructor & Destructor Documentation
|
|
Definition at line 25 of file keximainwindow.cpp. |
|
|
Definition at line 31 of file keximainwindow.cpp. |
Member Function Documentation
|
|
Emitted to make sure the project can be close. Connect a slot here and set cancel to true to cancel the closing. Referenced by KexiMainWindowImpl::closeProject(). |
|
|
Called to accept property butter editing. Implemented in KexiMainWindowImpl. Referenced by KexiDialogBase::closeEvent(), and KexiDialogBase::switchToViewMode(). |
|
|
Implemented in KexiMainWindowImpl. Referenced by KActionsListViewBase::init(). |
|
|
Emitted before closing the project (and destroying all it's data members). You can do you cleanup of your structures here. Referenced by KexiMainWindowImpl::closeProject(). |
|
|
Closes dialog dlg. If dialog's data (see KexiDialoBase::dirty()) is unsaved, used will be asked if saving should be perforemed.
Implemented in KexiMainWindowImpl. |
|
|
Closes the object for item.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(). |
|
|
Implemented in KexiMainWindowImpl. |
|
||||||||||||
|
Executes custom action for the main window, usually provided by a plugin. Also used by KexiFormEventAction. Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(). |
|
|
Implemented in KexiMainWindowImpl. Referenced by KexiScriptPart::initPartActions(). |
|
|
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. Implemented in KexiMainWindowImpl. |
|
||||||||||||||||||||
|
Displays a dialog for entering object's name and title. Used on new object saving.
Implemented in KexiMainWindowImpl. Referenced by KexiCSVImportDialog::accept(). |
|
||||||||||||
|
Highlights object of mime mime and name name. This can be done in the Project Navigator or so. If a window for the object is opened (in any mode), it should be raised. Implemented in KexiMainWindowImpl. |
|
||||||||||||
|
Creates new object of type defined by info part info. openingCancelled is set to true is opening has been cancelled.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(), and KexiMainWindowImpl::newObject(). |
|
||||||||||||||||||||||||
|
For convenience.
Implemented in KexiMainWindowImpl. |
|
||||||||||||||||||||||||
|
Opens object pointed by item in a view viewMode.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(), KexiRelationWidget::designSelectedTable(), KexiUserAction::execute(), KexiMainWindowImpl::openObject(), KexiRelationWidget::openSelectedTable(), KexiSimplePrintingPageSetup::slotOpenData(), and KexiDBFactory::startEditing(). |
|
|
Shows "print" dialog for item.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(). |
|
|
Shows "print preview" dialog.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(). |
|
|
|
Emitted after closing the project.
Referenced by KexiMainWindowImpl::closeProject(). |
|
||||||||||||||||||||
|
Received information from active view that dlg has switched its property set, so property editor contents should be reloaded. If force is true, property editor's data is reloaded even if the currently pointed property set is the same as before. If preservePrevSelection is true and there was a property set set before call, previously selected item will be preselected in the editor (if found). Implemented in KexiMainWindowImpl. Referenced by KexiViewBase::propertySetReloaded(), and KexiViewBase::propertySetSwitched(). |
|
|
Registers dialog dlg for watching and adds it to the main window's stack. Implemented in KexiMainWindowImpl. Referenced by KexiDialogBase::registerDialog(). |
|
||||||||||||||||
|
Saves dialog's dlg data. If dialog's data is never saved, user is asked for name and title, before saving (see getNewObjectInfo()).
Implemented in KexiMainWindowImpl. Referenced by KexiDialogBase::switchToViewMode(). |
|
|
Shows "page setup" dialog for item.
Implemented in KexiMainWindowImpl. Referenced by KexiFormEventAction::activate(). |
|
||||||||||||
|
Implemented in KexiMainWindowImpl. |
|
|
Implemented in KexiMainWindowImpl. Referenced by KexiBrowser::KexiBrowser(). |
The documentation for this class was generated from the following files:
