diff options
Diffstat (limited to 'src/idsuggestions.h')
-rw-r--r-- | src/idsuggestions.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/idsuggestions.h b/src/idsuggestions.h index a1bd022..d4d110f 100644 --- a/src/idsuggestions.h +++ b/src/idsuggestions.h @@ -20,7 +20,7 @@ #ifndef KBIBTEXIDSUGGESTIONS_H #define KBIBTEXIDSUGGESTIONS_H -#include <qstringlist.h> +#include <ntqstringlist.h> #include <file.h> #include <entry.h> @@ -32,7 +32,7 @@ namespace KBibTeX unsigned int len; bool toLower; bool toUpper; - QString inBetween; + TQString inBetween; }; /** @@ -41,33 +41,33 @@ namespace KBibTeX class IdSuggestions { public: - static QStringList createSuggestions( BibTeX::File *file, BibTeX::Entry *entry ); - static QString createDefaultSuggestion( BibTeX::File *file, BibTeX::Entry *entry ); - static QString formatStrToHuman( const QString& formatStr ); - static struct IdSuggestionTokenInfo evalToken( const QString& token ); - static QString formatId( BibTeX::Entry *entry, const QString& formatStr ); - static QString resolveConflict( BibTeX::File *file, const QString &id, BibTeX::Element *element = NULL ); + static TQStringList createSuggestions( BibTeX::File *file, BibTeX::Entry *entry ); + static TQString createDefaultSuggestion( BibTeX::File *file, BibTeX::Entry *entry ); + static TQString formatStrToHuman( const TQString& formatStr ); + static struct IdSuggestionTokenInfo evalToken( const TQString& token ); + static TQString formatId( BibTeX::Entry *entry, const TQString& formatStr ); + static TQString resolveConflict( BibTeX::File *file, const TQString &id, BibTeX::Element *element = NULL ); - static const QStringList smallWords; + static const TQStringList smallWords; private: enum Authors {aAll, aOnlyFirst, aNotFirst}; - static const QRegExp unwantedChars; - static const QChar asciiizeSource[]; - static const QString asciiizeTarget[]; + static const TQRegExp unwantedChars; + static const TQChar asciiizeSource[]; + static const TQString asciiizeTarget[]; IdSuggestions(); ~IdSuggestions(); - static QStringList authorsLastName( BibTeX::Entry *entry ); - static QString normalizeText( const QString& text ); - static QString asciiizeText( const QString& text ); + static TQStringList authorsLastName( BibTeX::Entry *entry ); + static TQString normalizeText( const TQString& text ); + static TQString asciiizeText( const TQString& text ); static int extractYear( BibTeX::Entry *entry ); - static QString extractTitle( BibTeX::Entry *entry ); - static QString translateToken( BibTeX::Entry *entry, const QString& token ); - static QString translateAuthorsToken( BibTeX::Entry *entry, const QString& token, Authors selectAuthors ); - static QString translateTitleToken( BibTeX::Entry *entry, const QString& token, bool removeSmallWords ); + static TQString extractTitle( BibTeX::Entry *entry ); + static TQString translateToken( BibTeX::Entry *entry, const TQString& token ); + static TQString translateAuthorsToken( BibTeX::Entry *entry, const TQString& token, Authors selectAuthors ); + static TQString translateTitleToken( BibTeX::Entry *entry, const TQString& token, bool removeSmallWords ); }; } |