From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/file.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/file.h') diff --git a/src/file.h b/src/file.h index fcb797a..37c942b 100644 --- a/src/file.h +++ b/src/file.h @@ -20,18 +20,18 @@ #ifndef BIBTEXFILE_H #define BIBTEXFILE_H -#include -#include +#include +#include #include -class QDir; -class QString; -class QChar; -class QStringList; -class QWaitCondition; -class QProcess; -class QIODevice; +class TQDir; +class TQString; +class TQChar; +class TQStringList; +class TQWaitCondition; +class TQProcess; +class TQIODevice; namespace BibTeX { @@ -40,17 +40,17 @@ namespace BibTeX class String; class FileExporter; - static const QString Months[] = + static const TQString Months[] = { - QString( "January" ), QString( "February" ), QString( "March" ), QString( "April" ), QString( "May" ), QString( "June" ), QString( "July" ), QString( "August" ), QString( "September" ), QString( "October" ), QString( "November" ), QString( "December" ) + TQString( "January" ), TQString( "February" ), TQString( "March" ), TQString( "April" ), TQString( "May" ), TQString( "June" ), TQString( "July" ), TQString( "August" ), TQString( "September" ), TQString( "October" ), TQString( "November" ), TQString( "December" ) }; - static const QString MonthsTriple[] = + static const TQString MonthsTriple[] = { - QString( "jan" ), QString( "feb" ), QString( "mar" ), QString( "apr" ), QString( "may" ), QString( "jun" ), QString( "jul" ), QString( "aug" ), QString( "sep" ), QString( "oct" ), QString( "nov" ), QString( "dec" ) + TQString( "jan" ), TQString( "feb" ), TQString( "mar" ), TQString( "apr" ), TQString( "may" ), TQString( "jun" ), TQString( "jul" ), TQString( "aug" ), TQString( "sep" ), TQString( "oct" ), TQString( "nov" ), TQString( "dec" ) }; - class File : public QObject + class File : public TQObject { Q_OBJECT @@ -61,7 +61,7 @@ namespace BibTeX friend class FileParser; public: - typedef QValueList ElementList; + typedef TQValueList ElementList; enum FileFormat { formatUndefined = 0, formatBibTeX = 1, formatXML = 2, formatHTML = 3, formatPDF = 4, formatPS = 5, formatRTF = 6, formatRIS = 7, formatEndNote = 8, formatISI = 9, formatDocBook5 = 10, formatMODS = 11, formatWordBib = 12, formatAds = 13, formatEndNoteXML = 14 }; enum Encoding {encImplicit = 0, encLaTeX = 1, encUTF8 = 2}; @@ -77,23 +77,23 @@ namespace BibTeX void deleteElement( Element *element ); static Element* cloneElement( Element *element ); - Element *containsKey( const QString &key ); - const Element *containsKeyConst( const QString &key ) const; - QStringList allKeys(); - QString text(); + Element *containsKey( const TQString &key ); + const Element *containsKeyConst( const TQString &key ) const; + TQStringList allKeys(); + TQString text(); ElementList::iterator begin(); ElementList::iterator end(); ElementList::const_iterator constBegin() const; ElementList::const_iterator constEnd() const; - QStringList getAllValuesAsStringList( const EntryField::FieldType fieldType ) const; - QMap getAllValuesAsStringListWithCount( const EntryField::FieldType fieldType ) const; - void replaceValue( const QString& oldText, const QString& newText, const EntryField::FieldType fieldType ); + TQStringList getAllValuesAsStringList( const EntryField::FieldType fieldType ) const; + TQMap getAllValuesAsStringListWithCount( const EntryField::FieldType fieldType ) const; + void replaceValue( const TQString& oldText, const TQString& newText, const EntryField::FieldType fieldType ); BibTeX::Entry *completeReferencedFieldsConst( const BibTeX::Entry *entry ) const; void completeReferencedFields( BibTeX::Entry *entry ) const; - QString fileName; + TQString fileName; protected: ElementList elements; -- cgit v1.2.1