diff options
Diffstat (limited to 'src/kile/convert.h')
-rw-r--r-- | src/kile/convert.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/kile/convert.h b/src/kile/convert.h index 651d330..0e2b372 100644 --- a/src/kile/convert.h +++ b/src/kile/convert.h @@ -16,9 +16,9 @@ #ifndef CONVERT_H #define CONVERT_H -#include <qstring.h> -#include <qstringlist.h> -#include <qmap.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqmap.h> #include <kurl.h> @@ -27,39 +27,39 @@ namespace Kate { class Document; } class ConvertMap { protected: - ConvertMap(const QString & encoding); + ConvertMap(const TQString & encoding); public: - const QString & encoding() const { return m_aliases[0]; } - const QString & isoName() const { return m_aliases[1]; } + const TQString & encoding() const { return m_aliases[0]; } + const TQString & isoName() const { return m_aliases[1]; } - QChar toEncoding(const QString & enc) { return m_toEncoding[enc]; } - QString toASCII(const QChar & c) { return m_toASCII[c]; } + TQChar toEncoding(const TQString & enc) { return m_toEncoding[enc]; } + TQString toASCII(const TQChar & c) { return m_toASCII[c]; } - void addPair(QChar c, const QString & enc); + void addPair(TQChar c, const TQString & enc); - bool canDecode(const QChar & c) { return ( m_toASCII.contains(c) > 0 ); } - bool canEncode(const QString & enc) { return ( m_toEncoding.contains(enc) > 0 ); } + bool canDecode(const TQChar & c) { return ( m_toASCII.tqcontains(c) > 0 ); } + bool canEncode(const TQString & enc) { return ( m_toEncoding.tqcontains(enc) > 0 ); } bool load(); private: - bool commandIsTerminated(const QString &); + bool commandIsTerminated(const TQString &); private: - QStringList m_aliases; - QMap<QChar, QString> m_toASCII; - QMap<QString, QChar> m_toEncoding; + TQStringList m_aliases; + TQMap<TQChar, TQString> m_toASCII; + TQMap<TQString, TQChar> m_toEncoding; //static members public: - static bool create(const QString & encoding); - static QString encodingNameFor(const QString &); - static QString isoNameFor(const QString &); - static ConvertMap * mapFor(const QString & enc) { return g_maps[enc]; } + static bool create(const TQString & encoding); + static TQString encodingNameFor(const TQString &); + static TQString isoNameFor(const TQString &); + static ConvertMap * mapFor(const TQString & enc) { return g_maps[enc]; } private: - static QMap<QString, ConvertMap*> g_maps; + static TQMap<TQString, ConvertMap*> g_maps; }; class ConvertIO @@ -69,15 +69,15 @@ public: virtual ~ConvertIO() {} virtual void nextLine(); //read next line - virtual QString & currentLine(); - virtual QString & text() { return m_text; } + virtual TQString & currentLine(); + virtual TQString & text() { return m_text; } virtual void writeText(); virtual uint current(); //current line number virtual bool done(); protected: Kate::Document *m_doc; - QString m_text, m_line; + TQString m_text, m_line; uint m_nLine; }; @@ -95,7 +95,7 @@ private: class ConvertBase { public: - ConvertBase(const QString & encoding, ConvertIO * io); + ConvertBase(const TQString & encoding, ConvertIO * io); virtual ~ConvertBase() {}; public: @@ -104,32 +104,32 @@ public: protected: virtual bool setMap(); - virtual QString mapNext(uint &); + virtual TQString mapNext(uint &); ConvertIO *m_io; - QString m_encoding; + TQString m_encoding; ConvertMap *m_map; }; class ConvertEncToASCII : public ConvertBase { public: - ConvertEncToASCII(const QString & encoding, ConvertIO * io) : ConvertBase(encoding, io) {} + ConvertEncToASCII(const TQString & encoding, ConvertIO * io) : ConvertBase(encoding, io) {} protected: - QString mapNext(uint &); + TQString mapNext(uint &); }; class ConvertASCIIToEnc : public ConvertBase { public: - ConvertASCIIToEnc(const QString & encoding, ConvertIO * io) : ConvertBase(encoding, io) {} + ConvertASCIIToEnc(const TQString & encoding, ConvertIO * io) : ConvertBase(encoding, io) {} protected: - QString getSequence(uint &); - QString nextSequence(uint &); - bool isModifier(const QString &); - QString mapNext(uint &); + TQString getSequence(uint &); + TQString nextSequence(uint &); + bool isModifier(const TQString &); + TQString mapNext(uint &); }; #endif |