diff options
Diffstat (limited to 'kexi/core/kexiproject.h')
-rw-r--r-- | kexi/core/kexiproject.h | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/kexi/core/kexiproject.h b/kexi/core/kexiproject.h index 1128ffe4..e6fb283e 100644 --- a/kexi/core/kexiproject.h +++ b/kexi/core/kexiproject.h @@ -21,10 +21,10 @@ #ifndef KEXIPROJECT_H #define KEXIPROJECT_H -#include <qobject.h> -#include <qintdict.h> -#include <qptrdict.h> -#include <qguardedptr.h> +#include <tqobject.h> +#include <tqintdict.h> +#include <tqptrdict.h> +#include <tqguardedptr.h> #include <kexiutils/tristate.h> #include <kexidb/object.h> @@ -64,9 +64,10 @@ class KexiDialogBase; * It also contains connection data, * current file state, etc. */ -class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object +class KEXICORE_EXPORT KexiProject : public TQObject, public KexiDB::Object { Q_OBJECT + TQ_OBJECT public: /*! Constructor 1. Creates a new object using \a pdata. @@ -106,7 +107,7 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object value in "kexi__db" table. This is often the case for native server-based databases. If so, Kexi application can propose importing the database - or linking it to parent project (the latter isn't yet implemented). + or linking it to tqparent project (the latter isn't yet implemented). For other types of errors the variable is set to true. */ tristate open(bool &incompatibleWithKexi); @@ -138,7 +139,7 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object * @return all items of a type \a mime in this project * It is a convenience function. */ - KexiPart::ItemDict* itemsForMimeType(const QCString &mimeType); + KexiPart::ItemDict* itemsForMimeType(const TQCString &mimeType); /** * Puts a list of items of a type \a i in this project into \a list. @@ -150,17 +151,17 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object * Puts a sorted list of items of a type \a mimeType in this project into \a list. * You can then sort this list using ItemList::sort(). */ - void getSortedItemsForMimeType(KexiPart::ItemList& list, const QCString &mimeType); + void getSortedItemsForMimeType(KexiPart::ItemList& list, const TQCString &mimeType); /** * @return item of type \a mime and name \a name */ - KexiPart::Item* itemForMimeType(const QCString &mimeType, const QString &name); + KexiPart::Item* itemForMimeType(const TQCString &mimeType, const TQString &name); /** * @return item of type \a i and name \a name */ - KexiPart::Item* item(KexiPart::Info *i, const QString &name); + KexiPart::Item* item(KexiPart::Info *i, const TQString &name); /** * @return item for \a identifier @@ -181,11 +182,11 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object \a staticObjectArgs can be passed for static object (only works when part for this item is of type KexiPart::StaticPart) */ KexiDialogBase* openObject(KexiMainWindow *wnd, KexiPart::Item& item, - int viewMode = Kexi::DataViewMode, QMap<QString,QString>* staticObjectArgs = 0); + int viewMode = Kexi::DataViewMode, TQMap<TQString,TQString>* staticObjectArgs = 0); //! For convenience - KexiDialogBase* openObject(KexiMainWindow *wnd, const QCString &mimeType, - const QString& name, int viewMode = Kexi::DataViewMode); + KexiDialogBase* openObject(KexiMainWindow *wnd, const TQCString &mimeType, + const TQString& name, int viewMode = Kexi::DataViewMode); /*! Remove a part instance pointed by \a item. \return true on success. */ @@ -193,7 +194,7 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object /*! Renames a part instance pointed by \a item to a new name \a newName. \return true on success. */ - bool renameObject(KexiMainWindow *wnd, KexiPart::Item& item, const QString& newName); + bool renameObject(KexiMainWindow *wnd, KexiPart::Item& item, const TQString& newName); /*! Creates part item for given part \a info. Newly item will not be saved to the backend but stored in memory only @@ -210,11 +211,11 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object This method is used before creating new object. \return newly created part item or NULL on any error. */ KexiPart::Item* createPartItem(KexiPart::Info *info, - const QString& suggestedCaption = QString::null ); + const TQString& suggestedCaption = TQString() ); //! Added for convenience. KexiPart::Item* createPartItem(KexiPart::Part *part, - const QString& suggestedCaption = QString::null); + const TQString& suggestedCaption = TQString()); /*! Adds item \a item after it is succesfully stored as an instance of part pointed by \a info. Also clears 'neverSaved' flag if \a item. @@ -254,11 +255,11 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object static tristate dropProject(KexiProjectData* data, KexiDB::MessageHandler* handler, bool dontAsk = false); - /*! @see KexiDB::Connection::setQuerySchemaObsolete( const QString& queryName ) */ -// void setQuerySchemaObsolete( const QString& queryName ); + /*! @see KexiDB::Connection::setQuerySchemaObsolete( const TQString& queryName ) */ +// void setQuerySchemaObsolete( const TQString& queryName ); // /** used to emit objectCreated() signal */ -// void emitObjectCreated(const QCString &mime, const QCString& name) { emit objectCreated(mime, name); } +// void emitObjectCreated(const TQCString &mime, const TQCString& name) { emit objectCreated(mime, name); } // void emitTableCreated(KexiDB::TableSchema& schema) { emit tableCreated(schema); } protected: @@ -300,10 +301,10 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object signals: /** signal emitted on error */ - void error(const QString &title, KexiDB::Object *obj); + void error(const TQString &title, KexiDB::Object *obj); /** signal emitted on error (not KexiDB-related) */ - void error(const QString &msg, const QString &desc); + void error(const TQString &msg, const TQString &desc); /** New \a item has been stored. */ void newItemStored(KexiPart::Item& item); @@ -312,12 +313,12 @@ class KEXICORE_EXPORT KexiProject : public QObject, public KexiDB::Object void itemRemoved(const KexiPart::Item &item); /** instance pointed by \a item is renamed */ - void itemRenamed(const KexiPart::Item &item, const QCString& oldName); + void itemRenamed(const KexiPart::Item &item, const TQCString& oldName); // /** new table \a schema created */ // void tableCreated(KexiDB::TableSchema& schema); // /** New object of mimetype \a mime and \a name has been created. */ -// void objectCreated(const QCString &mime, const QCString& name); +// void objectCreated(const TQCString &mime, const TQCString& name); protected: /*! Checks whether the project's connection is read-only. |