summaryrefslogtreecommitdiffstats
path: root/src/file.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-06-29 12:56:53 +0200
committerSlávek Banko <[email protected]>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/file.h
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h46
1 files changed, 23 insertions, 23 deletions
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 <qobject.h>
-#include <qvaluelist.h>
+#include <ntqobject.h>
+#include <ntqvaluelist.h>
#include <entryfield.h>
-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<Element*> ElementList;
+ typedef TQValueList<Element*> 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<QString, int> 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<TQString, int> 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;