summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexipart.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexipart.h')
-rw-r--r--kexi/core/kexipart.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/kexi/core/kexipart.h b/kexi/core/kexipart.h
index 4045c4c6..34136d83 100644
--- a/kexi/core/kexipart.h
+++ b/kexi/core/kexipart.h
@@ -21,8 +21,8 @@
#ifndef KEXIPART_H
#define KEXIPART_H
-#include <qobject.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqmap.h>
#include <kexiutils/tristate.h>
#include "kexi.h"
@@ -62,13 +62,14 @@ enum ObjectTypes {
/**
* The main class for kexi frontend parts like tables, queries, forms and reports
*/
-class KEXICORE_EXPORT Part : public QObject
+class KEXICORE_EXPORT Part : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/*! Constructor. */
- Part(QObject *parent, const char *name, const QStringList &);
+ Part(TQObject *tqparent, const char *name, const TQStringList &);
/*! Destructor. */
virtual ~Part();
@@ -76,12 +77,12 @@ class KEXICORE_EXPORT Part : public QObject
/*! Try to execute the part. Implementations of this \a Part
are able to overwrite this method to offer execution.
\param item The \a KexiPart::Item that should be executed.
- \param sender The sender QObject which likes to execute this \a Part or
+ \param sender The sender TQObject which likes to execute this \a Part or
NULL if there is no sender. The KFormDesigner uses this to pass
the actual widget (e.g. the button that was pressed).
\return true if execution was successfully else false.
*/
- virtual bool execute(KexiPart::Item* item, QObject* sender = 0) {
+ virtual bool execute(KexiPart::Item* item, TQObject* sender = 0) {
Q_UNUSED(item);
Q_UNUSED(sender);
return false;
@@ -109,7 +110,7 @@ class KEXICORE_EXPORT Part : public QObject
\a viewMode is one of Kexi::ViewMode enum.
\a staticObjectArgs can be passed for static Kexi Parts. */
KexiDialogBase* openInstance(KexiMainWindow *win, KexiPart::Item &item,
- int viewMode = Kexi::DataViewMode, QMap<QString,QString>* staticObjectArgs = 0);
+ int viewMode = Kexi::DataViewMode, TQMap<TQString,TQString>* staticObjectArgs = 0);
//! @todo make it protected, outside world should use KexiProject
/*! Removes any stored data pointed by \a item (example: table is dropped for table part).
@@ -139,7 +140,7 @@ class KEXICORE_EXPORT Part : public QObject
You shouldn't use by hand transactions here.
Default implementation does nothing and returns true. */
- virtual tristate rename(KexiMainWindow *win, KexiPart::Item &item, const QString& newName);
+ virtual tristate rename(KexiMainWindow *win, KexiPart::Item &item, const TQString& newName);
/*! Creates and returns a new temporary data for a dialog \a dialog.
This method is called on openInstance() once per dialog.
@@ -147,21 +148,21 @@ class KEXICORE_EXPORT Part : public QObject
Default implemention just returns empty KexiDialogTempData object. */
virtual KexiDialogTempData* createTempData(KexiDialogBase* dialog);
- /*! Creates a new view for mode \a viewMode, \a item and \a parent. The view will be
+ /*! Creates a new view for mode \a viewMode, \a item and \a tqparent. The view will be
used inside \a dialog. */
- virtual KexiViewBase* createView(QWidget *parent, KexiDialogBase* dialog,
- KexiPart::Item &item, int viewMode = Kexi::DataViewMode, QMap<QString,QString>* staticObjectArgs = 0) = 0;
+ virtual KexiViewBase* createView(TQWidget *tqparent, KexiDialogBase* dialog,
+ KexiPart::Item &item, int viewMode = Kexi::DataViewMode, TQMap<TQString,TQString>* staticObjectArgs = 0) = 0;
/*! i18n'd instance name usable for displaying in gui as object's name.
The name is valid identifier - contains latin1 lowercase characters only.
@todo move this to Info class when the name could be moved as localized property
to service's .desktop file. */
- QCString instanceName() const;
+ TQCString instanceName() const;
/*! i18n'd instance name usable for displaying in gui as object's caption.
@todo move this to Info class when the name could be moved as localized property
to service's .desktop file. */
- QString instanceCaption() const;
+ TQString instanceCaption() const;
inline Info *info() const { return m_info; }
@@ -185,7 +186,7 @@ class KEXICORE_EXPORT Part : public QObject
/*! \return action collection for mode \a viewMode. */
KActionCollection* actionCollectionForMode(int viewMode) const;
- const Kexi::ObjectStatus& lastOperationStatus() const { return m_status; }
+ const Kexi::ObjecttqStatus& lastOperationtqStatus() const { return m_status; }
/*! \return i18n'd message translated from \a englishMessage.
This method is useful for messages like:
@@ -201,7 +202,7 @@ class KEXICORE_EXPORT Part : public QObject
a part does not offer a message for such \a englishMessage.
This is used e.g. in KexiMainWindowImpl::closeDialog().
*/
- virtual QString i18nMessage(const QCString& englishMessage,
+ virtual TQString i18nMessage(const TQCString& englishMessage,
KexiDialogBase* dlg) const;
signals:
@@ -212,7 +213,7 @@ class KEXICORE_EXPORT Part : public QObject
protected:
//! Used by StaticPart
- Part(QObject* parent, StaticInfo *info);
+ Part(TQObject* tqparent, StaticInfo *info);
// virtual KexiDialogBase* createInstance(KexiMainWindow *win, const KexiPart::Item &item, int viewMode = Kexi::DataViewMode) = 0;
@@ -249,34 +250,34 @@ class KEXICORE_EXPORT Part : public QObject
virtual KexiDB::SchemaData* loadSchemaData(KexiDialogBase *dlg,
const KexiDB::SchemaData& sdata, int viewMode);
- bool loadDataBlock( KexiDialogBase *dlg, QString &dataString, const QString& dataID = QString::null);
+ bool loadDataBlock( KexiDialogBase *dlg, TQString &dataString, const TQString& dataID = TQString());
/*! Creates shared action for action collection declared
for 'instance actions' of this part.
See KexiSharedActionHost::createSharedAction() for details.
Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have
that subclass allocated instead just KAction (what is the default). */
- KAction* createSharedAction(int mode, const QString &text,
- const QString &pix_name, const KShortcut &cut, const char *name,
+ KAction* createSharedAction(int mode, const TQString &text,
+ const TQString &pix_name, const KShortcut &cut, const char *name,
const char *subclassName = 0);
/*! Convenience version of above method - creates shared toggle action. */
- KAction* createSharedToggleAction(int mode, const QString &text,
- const QString &pix_name, const KShortcut &cut, const char *name);
+ KAction* createSharedToggleAction(int mode, const TQString &text,
+ const TQString &pix_name, const KShortcut &cut, const char *name);
/*! Creates shared action for action collection declared
for 'part actions' of this part.
See KexiSharedActionHost::createSharedAction() for details.
Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have
that subclass allocated instead just KAction (what is the default). */
- KAction* createSharedPartAction(const QString &text,
- const QString &pix_name, const KShortcut &cut, const char *name,
+ KAction* createSharedPartAction(const TQString &text,
+ const TQString &pix_name, const KShortcut &cut, const char *name,
const char *subclassName = 0);
/*! Convenience version of above method - creates shared toggle action
for 'part actions' of this part. */
- KAction* createSharedPartToggleAction(const QString &text,
- const QString &pix_name, const KShortcut &cut, const char *name);
+ KAction* createSharedPartToggleAction(const TQString &text,
+ const TQString &pix_name, const KShortcut &cut, const char *name);
void setActionAvailable(const char *action_name, bool avail);
@@ -293,7 +294,7 @@ class KEXICORE_EXPORT Part : public QObject
//! Set of i18n'd action names for, initialised on KexiPart::Part subclass ctor
//! The names are useful because the same action can have other name for each part
//! E.g. "New table" vs "New query" can have different forms for some languages...
- QMap<QString,QString> m_names;
+ TQMap<TQString,TQString> m_names;
/*! Supported modes for dialogs created by this part.
@see supportedViewModes() */
@@ -306,9 +307,9 @@ class KEXICORE_EXPORT Part : public QObject
Info *m_info;
GUIClient *m_guiClient;
- QIntDict<GUIClient> m_instanceGuiClients;
+ TQIntDict<GUIClient> m_instanceGuiClients;
KexiMainWindow* m_mainWin;
- Kexi::ObjectStatus m_status;
+ Kexi::ObjecttqStatus m_status;
/*! If you're implementing a new part, set this to value >0 in your ctor
if you have well known (ie registered ID) for your part.