summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexidialogbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexidialogbase.h')
-rw-r--r--kexi/core/kexidialogbase.h65
1 files changed, 33 insertions, 32 deletions
diff --git a/kexi/core/kexidialogbase.h b/kexi/core/kexidialogbase.h
index 43dc1ff4e..68c712364 100644
--- a/kexi/core/kexidialogbase.h
+++ b/kexi/core/kexidialogbase.h
@@ -26,12 +26,12 @@
#include "kexi.h"
#include "kexipart.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kmdichildview.h>
#include <kxmlguiclient.h>
-class QWidgetStack;
+class TQWidgetStack;
class KexiMainWindow;
class KexiViewBase;
class KActionCollection;
@@ -46,11 +46,11 @@ namespace KoProperty {
//! Privides temporary data shared between KexiDialogBase's views (KexiView's)
/*! Designed for reimplementation, if needed. */
-class KEXICORE_EXPORT KexiDialogTempData : public QObject
+class KEXICORE_EXPORT KexiDialogTempData : public TQObject
{
public:
- KexiDialogTempData(QObject* parent)
- : QObject(parent, "KexiDialogTempData")
+ KexiDialogTempData(TQObject* tqparent)
+ : TQObject(tqparent, "KexiDialogTempData")
, proposeOpeningInTextViewModeBecauseOfProblems(false)
{}
/*! Initially false, KexiPart::Part implementation can set this to true
@@ -75,12 +75,13 @@ class KEXICORE_EXPORT KexiDialogTempData : public QObject
class KEXICORE_EXPORT KexiDialogBase :
public KMdiChildView,
public KexiActionProxy,
- public Kexi::ObjectStatus
+ public Kexi::ObjecttqStatus
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiDialogBase(KexiMainWindow *parent, const QString &caption = QString::null);
+ KexiDialogBase(KexiMainWindow *tqparent, const TQString &caption = TQString());
virtual ~KexiDialogBase();
bool isRegistered();
@@ -97,13 +98,13 @@ class KEXICORE_EXPORT KexiDialogBase :
/*! \return main (top level) widget inside this dialog.
This widget is used for e.g. determining minimum size hint and size hint. */
-// virtual QWidget* mainWidget() = 0;
+// virtual TQWidget* mainWidget() = 0;
/*! reimplemented: minimum size hint is inherited from currently visible view. */
- virtual QSize minimumSizeHint() const;
+ virtual TQSize tqminimumSizeHint() const;
/*! reimplemented: size hint is inherited from currently visible view. */
- virtual QSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
KexiMainWindow *mainWin() const { return m_parentWindow; }
@@ -141,7 +142,7 @@ class KEXICORE_EXPORT KexiDialogBase :
/*! \return name of icon provided by part that created this dialog.
The name is used by KexiMainWindow to set/reset icon for this dialog. */
- virtual QString itemIcon();
+ virtual TQString itemIcon();
/*! \return true if this dialog supports switching to \a mode.
\a mode is one of Kexi::ViewMode enum elements.
@@ -161,10 +162,10 @@ class KEXICORE_EXPORT KexiDialogBase :
*/
tristate switchToViewMode( int newViewMode );
- void setContextHelp(const QString& caption, const QString& text, const QString& iconName);
+ void setContextHelp(const TQString& caption, const TQString& text, const TQString& iconName);
/*! Internal reimplementation. */
- virtual bool eventFilter(QObject *obj, QEvent *e);
+ virtual bool eventFilter(TQObject *obj, TQEvent *e);
/*! Used by Main Window
\todo js: PROBABLY REMOVE THESE TWO?
@@ -197,7 +198,7 @@ class KEXICORE_EXPORT KexiDialogBase :
KexiDB::SchemaData* schemaData() const { return m_schemaData; }
/*! Reimpelmented: "*" is added if for 'dirty' dialog's data. */
-// QString caption() const;
+// TQString caption() const;
/*! Used by KexiViewBase subclasses. \return temporary data shared between views */
KexiDialogTempData *tempData() const { return m_tempData; }
@@ -237,13 +238,13 @@ class KEXICORE_EXPORT KexiDialogBase :
tristate storeNewData();
/*! Reimplemented - we're informing the current view about performed detaching by calling
- KexiViewBase::parentDialogDetached(), so the view can react on this event
- (by default KexiViewBase::parentDialogDetached() does nothing, you can reimplement it). */
+ KexiViewBase::tqparentDialogDetached(), so the view can react on this event
+ (by default KexiViewBase::tqparentDialogDetached() does nothing, you can reimplement it). */
void sendDetachedStateToCurrentView();
/*! W're informing the current view about performed atttaching by calling
- KexiViewBase::parentDialogAttached(), so the view can react on this event
- (by default KexiViewBase::parentDialogAttached() does nothing, you can reimplement it). */
+ KexiViewBase::tqparentDialogAttached(), so the view can react on this event
+ (by default KexiViewBase::tqparentDialogAttached() does nothing, you can reimplement it). */
void sendAttachedStateToCurrentView();
signals:
@@ -264,12 +265,12 @@ class KEXICORE_EXPORT KexiDialogBase :
/*! Used by Part::openInstance(),
like switchToViewMode( int newViewMode ), but passed \a staticObjectArgs.
Only used for parts of class KexiPart::StaticPart. */
- tristate switchToViewMode( int newViewMode, QMap<QString,QString>* staticObjectArgs,
+ tristate switchToViewMode( int newViewMode, TQMap<TQString,TQString>* staticObjectArgs,
bool& proposeOpeningInTextViewModeBecauseOfProblems);
void registerDialog();
- virtual void closeEvent( QCloseEvent * e );
+ virtual void closeEvent( TQCloseEvent * e );
//! \internal
void addView(KexiViewBase *view, int mode);
@@ -281,7 +282,7 @@ class KEXICORE_EXPORT KexiDialogBase :
int m_openedViewModes;
int m_currentViewMode;
- inline QWidgetStack * stack() const { return m_stack; }
+ inline TQWidgetStack * stack() const { return m_stack; }
//! Used by \a view to inform the dialog about changing state of the "dirty" flag.
void dirtyChanged(KexiViewBase* view);
@@ -290,7 +291,7 @@ class KEXICORE_EXPORT KexiDialogBase :
indexed with optional \a dataID, from the database backend.
\return true on success
\sa storeDataBlock(). */
- bool loadDataBlock( QString &dataString, const QString& dataID = QString::null);
+ bool loadDataBlock( TQString &dataString, const TQString& dataID = TQString());
/*! Stores (potentially large) string data \a dataString, block (e.g. xml form's representation),
at the database backend. Block will be stored in "kexi__objectdata" table pointed by
@@ -298,21 +299,21 @@ class KEXICORE_EXPORT KexiDialogBase :
If there is already such record in the table, it's simply overwritten.
\return true on success
*/
- bool storeDataBlock( const QString &dataString, const QString& dataID = QString::null );
+ bool storeDataBlock( const TQString &dataString, const TQString& dataID = TQString() );
/*! Removes (potentially large) string data (e.g. xml form's representation),
pointed by optional \a dataID, from the database backend.
\return true on success. Does not fail if the block doe not exists.
Note that if \a dataID is not specified, all data blocks for this dialog will be removed.
\sa storeDataBlock(). */
- bool removeDataBlock( QString &dataString, const QString& dataID = QString::null);
+ bool removeDataBlock( TQString &dataString, const TQString& dataID = TQString());
/*! @internal
Used by KexiDialogBase::storeDataBlock() and by KexiViewBase::storeDataBlock().
*/
- bool storeDataBlock_internal( const QString &dataString, int o_id, const QString& dataID );
+ bool storeDataBlock_internal( const TQString &dataString, int o_id, const TQString& dataID );
#endif
-// void setError(const QString& message, const QString& details);
+// void setError(const TQString& message, const TQString& details);
bool isDesignModePreloadedForTextModeHackUsed(int newViewMode) const;
@@ -323,16 +324,16 @@ class KEXICORE_EXPORT KexiDialogBase :
KexiContextHelpInfo *m_contextHelpInfo;
#endif
int m_id;
- QGuardedPtr<KexiPart::Part> m_part;
+ TQGuardedPtr<KexiPart::Part> m_part;
KexiPart::Item *m_item;
- QWidgetStack *m_stack;
- QString m_origCaption; //!< helper
+ TQWidgetStack *m_stack;
+ TQString m_origCaption; //!< helper
KexiDB::SchemaData* m_schemaData;
- QGuardedPtr<KexiViewBase> m_newlySelectedView; //!< Used in dirty(), temporary set in switchToViewMode()
+ TQGuardedPtr<KexiViewBase> m_newlySelectedView; //!< Used in dirty(), temporary set in switchToViewMode()
//!< during view setup, when a new view is not yet raised.
//! Used in viewThatRecentlySetDirtyFlag(), modified in dirtyChanged().
- QGuardedPtr<KexiViewBase> m_viewThatRecentlySetDirtyFlag;
- QGuardedPtr<KexiDialogTempData> m_tempData; //!< temporary data shared between views
+ TQGuardedPtr<KexiViewBase> m_viewThatRecentlySetDirtyFlag;
+ TQGuardedPtr<KexiDialogTempData> m_tempData; //!< temporary data shared between views
/*! Created view's mode - helper for switchToViewMode(),
KexiViewBase ctor uses that info. >0 values are useful. */