diff options
Diffstat (limited to 'kpilot/conduits/docconduit/DOC-converter.h')
-rw-r--r-- | kpilot/conduits/docconduit/DOC-converter.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kpilot/conduits/docconduit/DOC-converter.h b/kpilot/conduits/docconduit/DOC-converter.h index f3747ea1d..802d60f20 100644 --- a/kpilot/conduits/docconduit/DOC-converter.h +++ b/kpilot/conduits/docconduit/DOC-converter.h @@ -36,51 +36,51 @@ #define BMK_SUFFIX ".bmk" #define PDBBMK_SUFFIX ".bm" -#include <qptrlist.h> -#include <qobject.h> +#include <tqptrlist.h> +#include <tqobject.h> class PilotDatabase; /**************************************************************************************************** - * various bookmark classes. Most important is the bmkList findMatches(QString, bmkList &) function, + * various bookmark classes. Most important is the bmkList findMatches(TQString, bmkList &) function, * which needs to return a list of all bookmarks found for the given bookmark expression. * A bookmark usually consists of a bookmark text and an offset into the text document. ****************************************************************************************************/ class docBookmark; -#define bmkList QPtrList<docBookmark> -#define bmkSortedList QSortedList<docBookmark> +#define bmkList TQPtrList<docBookmark> +#define bmkSortedList TQSortedList<docBookmark> class docBookmark { public: static bool compare_pos; docBookmark():bmkName(), position(0) { }; - docBookmark(QString name, long int pos):bmkName(name), position(pos) { }; + docBookmark(TQString name, long int pos):bmkName(name), position(pos) { }; docBookmark(const docBookmark &bmk):bmkName(bmk.bmkName),position(bmk.position){}; virtual ~ docBookmark() { }; - virtual int findMatches(QString, bmkList &fBookmarks) { + virtual int findMatches(TQString, bmkList &fBookmarks) { FUNCTIONSETUP; fBookmarks.append(new docBookmark(*this)); return 1; }; - QString bmkName; + TQString bmkName; long int position; }; class docMatchBookmark:public docBookmark { public: docMatchBookmark():docBookmark() { from=0; to=100;}; - docMatchBookmark(QString pattrn, int options=0):docBookmark(), + docMatchBookmark(TQString pattrn, int options=0):docBookmark(), pattern(pattrn), opts(options) { from=0; to=100; }; - docMatchBookmark(QString pattrn, QString bmkname, + docMatchBookmark(TQString pattrn, TQString bmkname, int options=0):docBookmark(bmkname, 0), pattern(pattrn), opts(options) { from=0; to=100; }; virtual ~ docMatchBookmark() { }; - virtual int findMatches(QString, bmkList &fBookmarks); - QString pattern; + virtual int findMatches(TQString, bmkList &fBookmarks); + TQString pattern; int opts; int from, to; }; @@ -88,13 +88,13 @@ class docMatchBookmark:public docBookmark { class docRegExpBookmark:public docMatchBookmark { public: docRegExpBookmark():docMatchBookmark() { capSubexpression=-1;}; - docRegExpBookmark(QString regexp, int cap=0, + docRegExpBookmark(TQString regexp, int cap=0, int options=0):docMatchBookmark(regexp, options) {capSubexpression=cap; }; - docRegExpBookmark(QString pattrn, QString bmkname, + docRegExpBookmark(TQString pattrn, TQString bmkname, int options=0):docMatchBookmark(pattrn, bmkname, options) { capSubexpression=-1; }; virtual ~ docRegExpBookmark() { }; - virtual int findMatches(QString, bmkList &fBookmarks); + virtual int findMatches(TQString, bmkList &fBookmarks); int capSubexpression; }; @@ -103,12 +103,12 @@ class docRegExpBookmark:public docMatchBookmark { * The converter class that does the real work for us. *************************************************************************************************************/ -class DOCConverter:public QObject { +class DOCConverter:public TQObject { Q_OBJECT private: PilotDatabase * docdb; - QString txtfilename; - QString bmkfilename; + TQString txtfilename; + TQString bmkfilename; bool compress; bmkList fBookmarks; @@ -121,16 +121,16 @@ public: } eSortBookmarks; public: - DOCConverter(QObject *parent=0L, const char *name=0L); + DOCConverter(TQObject *parent=0L, const char *name=0L); virtual ~ DOCConverter(); - QString readText(); - void setTXTpath(QString path, QString file); - void setTXTpath(QString filename); + TQString readText(); + void setTXTpath(TQString path, TQString file); + void setTXTpath(TQString filename); void setPDB(PilotDatabase * dbi); - QString txtFilename() const {return txtfilename;} - QString bmkFilename() const {return bmkfilename;} - void setBmkFilename(QString bmkf) { bmkfilename=bmkf;} + TQString txtFilename() const {return txtfilename;} + TQString bmkFilename() const {return bmkfilename;} + void setBmkFilename(TQString bmkf) { bmkfilename=bmkf;} bool getCompress() const { return compress; }; void setCompress(bool newcomp) {compress=newcomp;}; @@ -151,9 +151,9 @@ public: return fBookmarks.count(); }; - int findBmkEndtags(QString &, bmkList&); - int findBmkInline(QString &, bmkList&); - int findBmkFile(QString &, bmkList&); + int findBmkEndtags(TQString &, bmkList&); + int findBmkInline(TQString &, bmkList&); + int findBmkFile(TQString &, bmkList&); void setSort(enum eSortBookmarksEnum sort) {eSortBookmarks=sort;} @@ -176,8 +176,8 @@ protected: private: void readConfig(); signals: - void logMessage(const QString &); - void logError(const QString &); + void logMessage(const TQString &); + void logError(const TQString &); }; #endif |