summaryrefslogtreecommitdiffstats
path: root/src/textdocument.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/textdocument.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
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
Diffstat (limited to 'src/textdocument.h')
-rw-r--r--src/textdocument.h37
1 files changed, 19 insertions, 18 deletions
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 <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kate/document.h>
@@ -22,7 +22,7 @@ class GpsimDebugger;
class SourceLine;
class TextView;
-typedef QValueList<int> IntList;
+typedef TQValueList<int> IntList;
/**
@author David Saxton
@@ -30,6 +30,7 @@ typedef QValueList<int> 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<TextDocument> m_pLastTextOutputTarget;
+ TQGuardedPtr<TextDocument> 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<KAction> m_bookmarkActions;
+ TQPtrList<KAction> m_bookmarkActions;
#ifndef NO_GPSIM
bool b_lockSyncBreakpoints; // Used to avoid calling syncMarks() when we are currently doing so
bool m_bOwnDebugger;
- QGuardedPtr<GpsimDebugger> m_pDebugger;
- QString m_symbolFile;
- QString m_debugFile;
+ TQGuardedPtr<GpsimDebugger> m_pDebugger;
+ TQString m_symbolFile;
+ TQString m_debugFile;
#endif
};