kexi
KexiQueryPart Class Reference
#include <kexiquerypart.h>

Detailed Description
Kexi Query Designer Plugin.Definition at line 44 of file kexiquerypart.h.
Public Member Functions | |
KexiQueryPart (QObject *parent, const char *name, const QStringList &) | |
virtual bool | remove (KexiMainWindow *win, KexiPart::Item &item) |
virtual QString | i18nMessage (const QCString &englishMessage, KexiDialogBase *dlg) const |
virtual tristate | rename (KexiMainWindow *win, KexiPart::Item &item, const QString &newName) |
Protected Member Functions | |
virtual KexiDialogTempData * | createTempData (KexiDialogBase *dialog) |
virtual KexiViewBase * | createView (QWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, QMap< QString, QString > *staticObjectArgs=0) |
virtual void | initPartActions () |
virtual void | initInstanceActions () |
virtual KexiDB::SchemaData * | loadSchemaData (KexiDialogBase *dlg, const KexiDB::SchemaData &sdata, int viewMode) |
Classes | |
class | TempData |
Temporary data kept in memory while switching between Query Dialog's views. More... |
Member Function Documentation
bool KexiQueryPart::remove | ( | KexiMainWindow * | win, | |
KexiPart::Item & | item | |||
) | [virtual] |
- Todo:
- make it protected, outside world should use KexiProject
Database transaction is started by KexiProject before calling this method, and it will be rolled back if you return false here. You shouldn't use by hand transactions here.
Default implementation just removes object from kexi__* system structures at the database backend using KexiDB::Connection::removeObject().
Reimplemented from KexiPart::Part.
Definition at line 101 of file kexiquerypart.cpp.
QString KexiQueryPart::i18nMessage | ( | const QCString & | englishMessage, | |
KexiDialogBase * | dlg | |||
) | const [virtual] |
- Returns:
- i18n'd message translated from englishMessage. This method is useful for messages like: "<p>Table \"1\" has been modified.</p>", -- such messages can be accurately translated, while this could not: "<p>%1 \"2\" has been modified.</p>". See implementation of this method in KexiTablePart to see what strings are needed for translation.
Reimplemented from KexiPart::Part.
Definition at line 194 of file kexiquerypart.cpp.
tristate KexiQueryPart::rename | ( | KexiMainWindow * | win, | |
KexiPart::Item & | item, | |||
const QString & | newName | |||
) | [virtual] |
Renames stored data pointed by item to newName. Reimplemented to mark the query obsolete by using KexiDB::Connection::setQuerySchemaObsolete().
Reimplemented from KexiPart::Part.
Definition at line 205 of file kexiquerypart.cpp.
KexiDialogTempData * KexiQueryPart::createTempData | ( | KexiDialogBase * | dialog | ) | [protected, virtual] |
Creates and returns a new temporary data for a dialog dialog. This method is called on openInstance() once per dialog. Reimplement this to return KexiDialogTempData subclass instance. Default implemention just returns empty KexiDialogTempData object.
Reimplemented from KexiPart::Part.
Definition at line 60 of file kexiquerypart.cpp.
KexiViewBase * KexiQueryPart::createView | ( | QWidget * | parent, | |
KexiDialogBase * | dialog, | |||
KexiPart::Item & | item, | |||
int | viewMode = Kexi::DataViewMode , |
|||
QMap< QString, QString > * | staticObjectArgs = 0 | |||
) | [protected, virtual] |
Creates a new view for mode viewMode, item and parent. The view will be used inside dialog.
Implements KexiPart::Part.
Definition at line 68 of file kexiquerypart.cpp.
The documentation for this class was generated from the following files: