summaryrefslogtreecommitdiffstats
path: root/kexi/core/keximainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/keximainwindow.h')
-rw-r--r--kexi/core/keximainwindow.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/kexi/core/keximainwindow.h b/kexi/core/keximainwindow.h
index ec1db633..ad6c613b 100644
--- a/kexi/core/keximainwindow.h
+++ b/kexi/core/keximainwindow.h
@@ -21,8 +21,8 @@
#ifndef KEXIMAINWINDOW_H
#define KEXIMAINWINDOW_H
-#include <qmap.h>
-#include <qintdict.h>
+#include <tqmap.h>
+#include <tqintdict.h>
#include <kmdimainfrm.h>
#include <kexiutils/tristate.h>
@@ -45,6 +45,7 @@ namespace KexiPart {
class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActionHost
{
Q_OBJECT
+ TQ_OBJECT
public:
//! Used by printActionForItem()
enum PrintActionType {
@@ -62,7 +63,7 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
/*! Registers dialog \a dlg for watching and adds it to the main window's stack. */
virtual void registerChild(KexiDialogBase *dlg) = 0;
- virtual QPopupMenu* findPopupMenu(const char *popupName) = 0;
+ virtual TQPopupMenu* findPopupMenu(const char *popupName) = 0;
/*! Generates ID for private "document" like Relations window.
Private IDs are negative numbers (while ID regular part instance's IDs are >0)
@@ -102,12 +103,12 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
//! Opens object pointed by \a item in a view \a viewMode
virtual KexiDialogBase * openObject(KexiPart::Item *item, int viewMode,
- bool &openingCancelled, QMap<QString,QString>* staticObjectArgs = 0,
- QString* errorMessage = 0) = 0;
+ bool &openingCancelled, TQMap<TQString,TQString>* staticObjectArgs = 0,
+ TQString* errorMessage = 0) = 0;
//! For convenience
- virtual KexiDialogBase * openObject(const QCString& mime, const QString& name,
- int viewMode, bool &openingCancelled, QMap<QString,QString>* staticObjectArgs = 0) = 0;
+ virtual KexiDialogBase * openObject(const TQCString& mime, const TQString& name,
+ int viewMode, bool &openingCancelled, TQMap<TQString,TQString>* staticObjectArgs = 0) = 0;
/*! Closes the object for \a item.
\return true on success (closing can be dealyed though), false on failure and cancelled
@@ -125,7 +126,7 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
set before call, previously selected item will be preselected
in the editor (if found). */
virtual void propertySetSwitched(KexiDialogBase *dlg, bool force=false,
- bool preservePrevSelection = true, const QCString& propertyToSelect = QCString()) = 0;
+ bool preservePrevSelection = true, const TQCString& propertyToSelect = TQCString()) = 0;
/*! Saves dialog's \a dlg data. If dialog's data is never saved,
user is asked for name and title, before saving (see getNewObjectInfo()).
@@ -135,7 +136,7 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
within name/caption dialog (see KexiNameDialog), which is popped
up for never saved objects. */
virtual tristate saveObject( KexiDialogBase *dlg,
- const QString& messageWhenAskingForName = QString::null, bool dontAsk = false ) = 0;
+ const TQString& messageWhenAskingForName = TQString(), bool dontAsk = false ) = 0;
/*! Closes dialog \a dlg. If dialog's data (see KexiDialoBase::dirty()) is unsaved,
used will be asked if saving should be perforemed.
@@ -156,12 +157,12 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
If it's true, user agreed on overwriting, if it's false, user picked
nonexisting name, so no overwrite will be needed. */
virtual tristate getNewObjectInfo( KexiPart::Item *partItem, KexiPart::Part *part,
- bool& allowOverwriting, const QString& messageWhenAskingForName = QString::null ) = 0;
+ bool& allowOverwriting, const TQString& messageWhenAskingForName = TQString() ) = 0;
/*! Highlights object of mime \a mime and name \a 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. */
- virtual void highlightObject(const QCString& mime, const QCString& name) = 0;
+ virtual void highlightObject(const TQCString& mime, const TQCString& name) = 0;
//! Shows "print" dialog for \a item.
//! \return true on success.
@@ -177,10 +178,10 @@ class KEXICORE_EXPORT KexiMainWindow : public KMdiMainFrm, public KexiSharedActi
/*! Executes custom action for the main window, usually provided by a plugin.
Also used by KexiFormEventAction. */
- virtual tristate executeCustomActionForObject(KexiPart::Item* item, const QString& actionName) = 0;
+ virtual tristate executeCustomActionForObject(KexiPart::Item* item, const TQString& actionName) = 0;
protected slots:
- virtual void slotObjectRenamed(const KexiPart::Item &item, const QCString& oldName) = 0;
+ virtual void slotObjectRenamed(const KexiPart::Item &item, const TQCString& oldName) = 0;
};