kexi
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 Slots | |
virtual KexiDialogBase * | openObject (KexiPart::Item *item, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0)=0 |
virtual KexiDialogBase * | openObject (const QCString &mime, const QString &name, int viewMode, bool &openingCancelled, QMap< QString, QString > *staticObjectArgs=0)=0 |
virtual void | acceptPropertySetEditing ()=0 |
virtual void | propertySetSwitched (KexiDialogBase *dlg, bool force=false, bool preservePrevSelection=true)=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 |
Signals | |
void | acceptProjectClosingRequested (bool &cancel) |
void | beforeProjectClosing () |
void | projectClosed () |
Public Member Functions | |
KexiMainWindow () | |
virtual | ~KexiMainWindow () |
virtual KexiProject * | project ()=0 |
virtual void | registerChild (KexiDialogBase *dlg)=0 |
virtual QPopupMenu * | findPopupMenu (const char *popupName)=0 |
virtual int | generatePrivateID ()=0 |
virtual KActionPtrList | allActions () const =0 |
Protected Slots | |
virtual void | slotObjectRenamed (const KexiPart::Item &item, const QCString &oldName)=0 |
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. |
|
Called to accept property butter editing. Implemented in KexiMainWindowImpl. |
|
Implemented in KexiMainWindowImpl. |
|
Emitted before closing the project (and destroying all it's data members). You can do you cleanup of your structures here. |
|
Closes dialog dlg. If dialog's data (see KexiDialoBase::dirty()) is unsaved, used will be asked if saving should be perforemed.
Implemented in KexiMainWindowImpl. |
|
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. |
|
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. |
|
For convenience.
Implemented in KexiMainWindowImpl. |
|
Opens object pointed by item in a view viewMode.
Implemented in KexiMainWindowImpl. |
|
Project data of currently opened project or NULL if no project here yet.
Implemented in KexiMainWindowImpl. |
|
Emitted after closing the project.
|
|
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. |
|
Registers dialog dlg for watching and adds it to the main window's stack. Implemented in KexiMainWindowImpl. |
|
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. |
The documentation for this class was generated from the following files: