From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/textdocument.h | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'src/textdocument.h') diff --git a/src/textdocument.h b/src/textdocument.h index 1876473..18e4e81 100644 --- a/src/textdocument.h +++ b/src/textdocument.h @@ -14,7 +14,7 @@ #include "config.h" #include "document.h" -#include +#include #include @@ -22,7 +22,7 @@ class GpsimDebugger; class SourceLine; class TextView; -typedef QValueList IntList; +typedef TQValueList IntList; /** @author David Saxton @@ -30,6 +30,7 @@ typedef QValueList IntList; class TextDocument : public Document { Q_OBJECT + TQ_OBJECT public: ~TextDocument(); @@ -58,7 +59,7 @@ public: * it if successful, or 0 if it failed. * @returns pointer to constructed object, or 0 if there was a problem */ - static TextDocument *constructTextDocument( const QString& caption, KTechlab *parent, const char *name = 0L ); + static TextDocument *constructTextDocument( const TQString& caption, KTechlab *tqparent, const char *name = 0L ); /** * @returns the guessed code type that this file is */ @@ -106,7 +107,7 @@ public: * Returns true if we are in stepping more */ bool debuggerIsStepping() const; - QString debugFile() const { return m_debugFile; } + TQString debugFile() const { return m_debugFile; } virtual void clearBreakpoints(); #endif @@ -118,7 +119,7 @@ public: * @param asInitial whether the next should be treated as if we had just * opened the file (no undo/redo history, and unmodified). */ - void setText( const QString & text, bool asInitial ); + void setText( const TQString & text, bool asInitial ); /** * Attempts to guess the filetype from the file extension, and load an * appropriate highlighting/etc @@ -132,7 +133,7 @@ public: virtual void print(); virtual void setModified( bool modified ); - Kate::View* createKateView( QWidget *parent, const char *name = 0l ); + Kate::View* createKateView( TQWidget *tqparent, const char *name = 0l ); virtual void undo(); virtual void redo(); @@ -147,11 +148,11 @@ public: void clearBookmarks(); virtual bool fileClose(); - static const QPixmap* inactiveBreakpointPixmap(); - static const QPixmap* activeBreakpointPixmap(); - static const QPixmap* reachedBreakpointPixmap(); - static const QPixmap* disabledBreakpointPixmap(); - static const QPixmap* executionPointPixmap(); + static const TQPixmap* inactiveBreakpointPixmap(); + static const TQPixmap* activeBreakpointPixmap(); + static const TQPixmap* reachedBreakpointPixmap(); + static const TQPixmap* disabledBreakpointPixmap(); + static const TQPixmap* executionPointPixmap(); /** * Returns a TextView pointer to the active TextView (if there is one) */ @@ -202,7 +203,7 @@ protected: * returned. Otherwise, a temporary file with the given extension (ext) is * created, and the location of this file is returned. */ - QString outputFilePath( const QString &ext ); + TQString outputFilePath( const TQString &ext ); void saveDone(); #ifndef NO_GPSIM /** @@ -216,7 +217,7 @@ protected: #endif Kate::Document *m_doc; - QGuardedPtr m_pLastTextOutputTarget; + TQGuardedPtr m_pLastTextOutputTarget; private slots: void setLastTextOutputTarget( TextDocument * target ); @@ -228,17 +229,17 @@ private slots: void slotSelectionmChanged(); private: - TextDocument( const QString& caption, KTechlab *parent, const char *name = 0L ); + TextDocument( const TQString& caption, KTechlab *tqparent, const char *name = 0L ); bool m_constructorSuccessful; CodeType m_guessedCodeType; - QPtrList m_bookmarkActions; + TQPtrList m_bookmarkActions; #ifndef NO_GPSIM bool b_lockSyncBreakpoints; // Used to avoid calling syncMarks() when we are currently doing so bool m_bOwnDebugger; - QGuardedPtr m_pDebugger; - QString m_symbolFile; - QString m_debugFile; + TQGuardedPtr m_pDebugger; + TQString m_symbolFile; + TQString m_debugFile; #endif }; -- cgit v1.2.1