summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillaapis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillaapis.cpp')
-rw-r--r--qt/qextscintillaapis.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/qt/qextscintillaapis.cpp b/qt/qextscintillaapis.cpp
index 2ab7397..d6b0dda 100644
--- a/qt/qextscintillaapis.cpp
+++ b/qt/qextscintillaapis.cpp
@@ -3,27 +3,27 @@
// Copyright (c) 2006
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// This file is part of QScintilla.
+// This file is part of TQScintilla.
//
-// This copy of QScintilla is free software; you can redistribute it and/or
+// This copy of TQScintilla is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option) any
// later version.
//
-// QScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
+// TQScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// QScintilla; see the file LICENSE. If not, write to the Free Software
+// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqregexp.h>
-#include "qextscintillaapis.h"
+#include "tqextscintillaapis.h"
// The ctor.
@@ -39,18 +39,18 @@ QextScintillaAPIs::~QextScintillaAPIs()
// Clear out all API information.
-bool QextScintillaAPIs::load(const QString &fname)
+bool QextScintillaAPIs::load(const TQString &fname)
{
- QFile f(fname);
+ TQFile f(fname);
if (!f.open(IO_ReadOnly))
return FALSE;
- QTextStream ts(&f);
+ TQTextStream ts(&f);
for (;;)
{
- QString line = ts.readLine();
+ TQString line = ts.readLine();
if (line.isNull())
break;
@@ -65,7 +65,7 @@ bool QextScintillaAPIs::load(const QString &fname)
// Add a single API entry.
-void QextScintillaAPIs::add(const QString &entry)
+void QextScintillaAPIs::add(const TQString &entry)
{
apis.append(entry);
sorted = FALSE;
@@ -81,12 +81,12 @@ void QextScintillaAPIs::clear()
// Add auto-completion words to an existing list.
-void QextScintillaAPIs::autoCompletionList(const QString &starts, bool cs,
- QStringList &wlist)
+void QextScintillaAPIs::autoCompletionList(const TQString &starts, bool cs,
+ TQStringList &wlist)
{
ensureSorted();
- QStringList::ConstIterator it = apis.begin();
+ TQStringList::ConstIterator it = apis.begin();
// Find the first match in the sorted list.
while (it != apis.end())
@@ -97,14 +97,14 @@ void QextScintillaAPIs::autoCompletionList(const QString &starts, bool cs,
++it;
}
- QString prev;
+ TQString prev;
while (it != apis.end())
{
if ((*it).find(starts, 0, cs) != 0)
break;
- QString w = (*it).section('(', 0, 0);
+ TQString w = (*it).section('(', 0, 0);
if (w != prev)
{
@@ -120,30 +120,30 @@ void QextScintillaAPIs::autoCompletionList(const QString &starts, bool cs,
// Return the call tip for a function.
-QString QextScintillaAPIs::callTips(const QString &function,int maxnr,
+TQString QextScintillaAPIs::callTips(const TQString &function,int maxnr,
int commas)
{
ensureSorted();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
// Find the first match in the sorted list.
for (it = apis.begin(); it != apis.end(); ++it)
if ((*it).startsWith(function))
break;
- QStringList cts;
- QString prev;
+ TQStringList cts;
+ TQString prev;
while (it != apis.end() && (*it).startsWith(function))
{
if (maxnr > 0 && maxnr == cts.count())
break;
- QString w = *it;
+ TQString w = *it;
// Remove any image ID used by auto-completion.
- w.replace(QRegExp("\\?[^(]*"),"");
+ w.replace(TQRegExp("\\?[^(]*"),"");
if (w.find('(') == function.length() && w.contains(',') >= commas && w != prev)
{
@@ -161,7 +161,7 @@ QString QextScintillaAPIs::callTips(const QString &function,int maxnr,
ctlist = cts;
ctcursor = 0;
- QString ct = cts[0];
+ TQString ct = cts[0];
ct.prepend('\002');
@@ -175,9 +175,9 @@ QString QextScintillaAPIs::callTips(const QString &function,int maxnr,
// Return the next or previous call tip.
-QString QextScintillaAPIs::callTipsNextPrev(int dir)
+TQString QextScintillaAPIs::callTipsNextPrev(int dir)
{
- QString ct;
+ TQString ct;
// Get the call tip.
if (dir == 1 && ctcursor > 0)