summaryrefslogtreecommitdiffstats
path: root/src/libgui/text_editor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/text_editor.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/text_editor.h')
-rw-r--r--src/libgui/text_editor.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/libgui/text_editor.h b/src/libgui/text_editor.h
index 9c5a994..5b76734 100644
--- a/src/libgui/text_editor.h
+++ b/src/libgui/text_editor.h
@@ -10,9 +10,9 @@
#ifndef TEXT_EDITOR_H
#define TEXT_EDITOR_H
-#include <qsplitter.h>
-#include <qstringlist.h>
-class QSplitter;
+#include <tqsplitter.h>
+#include <tqstringlist.h>
+class TQSplitter;
#include <kate/view.h>
#include <kate/document.h>
@@ -25,8 +25,9 @@ class QSplitter;
class TextEditor : public Editor
{
Q_OBJECT
+ TQ_OBJECT
public:
- TextEditor(bool withDebugger, QWidget *parent, const char *name = 0);
+ TextEditor(bool withDebugger, TQWidget *tqparent, const char *name = 0);
virtual PURL::FileType fileType() const { return url().fileType(); }
virtual PURL::Url url() const { return _document->url(); }
virtual bool isModified() const;
@@ -34,16 +35,16 @@ public:
virtual void addGui();
virtual void removeGui();
virtual void setFocus() { _view->setFocus(); }
- static QPixmap pixmap(Breakpoint::MarkType type);
+ static TQPixmap pixmap(Breakpoint::MarkType type);
void setMark(uint line, Breakpoint::MarkType type);
void clearBreakpointMarks();
void setCursor(uint line, uint column) { _view->setCursorPosition(line, column); }
uint cursorLine() const;
virtual bool open(const PURL::Url &url);
virtual bool save(const PURL::Url &url) { return _document->saveAs(url.kurl()); }
- virtual bool eventFilter(QObject *o, QEvent *e);
- virtual QValueList<uint> bookmarkLines() const;
- virtual void setBookmarkLines(const QValueList<uint> &lines);
+ virtual bool eventFilter(TQObject *o, TQEvent *e);
+ virtual TQValueList<uint> bookmarkLines() const;
+ virtual void setBookmarkLines(const TQValueList<uint> &lines);
public slots:
void addView();
@@ -64,7 +65,7 @@ private slots:
void addToDebugManager();
private:
- QSplitter *_split;
+ TQSplitter *_split;
bool _oldModified, _oldReadOnly;
struct MarkTypeData {
uint type;
@@ -75,7 +76,7 @@ private:
private:
virtual void setModifiedInternal(bool modified);
virtual void setReadOnlyInternal(bool readOnly);
- uint highlightMode(const QString &name) const;
+ uint highlightMode(const TQString &name) const;
void clearMarks(uint type);
};
@@ -83,12 +84,13 @@ private:
class SimpleTextEditor : public TextEditor
{
Q_OBJECT
+ TQ_OBJECT
public:
- SimpleTextEditor(bool withDebugger, PURL::FileType type, QWidget *parent, const char *name = 0);
- SimpleTextEditor(bool withDebugger, QWidget *parent, const char *name = 0);
+ SimpleTextEditor(bool withDebugger, PURL::FileType type, TQWidget *tqparent, const char *name = 0);
+ SimpleTextEditor(bool withDebugger, TQWidget *tqparent, const char *name = 0);
void setFileType(PURL::FileType type) { _type = type; }
virtual PURL::FileType fileType() const { return _type; }
- bool setText(const QString &text);
+ bool setText(const TQString &text);
virtual bool open(const PURL::Url &url);
protected: