diff options
author | Slávek Banko <[email protected]> | 2013-06-29 12:56:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:11:35 +0200 |
commit | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch) | |
tree | c8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/entry.h | |
parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip |
Initial TQt conversion
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/entry.h b/src/entry.h index 6a8633c..4a6d970 100644 --- a/src/entry.h +++ b/src/entry.h @@ -20,14 +20,14 @@ #ifndef BIBTEXBIBTEXENTRY_H #define BIBTEXBIBTEXENTRY_H -#include <qvaluelist.h> -#include <qstringlist.h> +#include <ntqvaluelist.h> +#include <ntqstringlist.h> #include <element.h> #include <entryfield.h> -class QString; -class QStringList; +class TQString; +class TQStringList; namespace BibTeX { @@ -35,7 +35,7 @@ namespace BibTeX class Entry : public Element { public: - typedef QValueList<BibTeX::EntryField*> EntryFields; + typedef TQValueList<BibTeX::EntryField*> EntryFields; enum EntryType {etArticle, etBook, etBooklet, etCollection, etElectronic, etInBook, etInCollection, etInProceedings, etManual, etMastersThesis, etMisc, etPhDThesis, etProceedings, etTechReport, etUnpublished, etUnknown}; @@ -44,29 +44,29 @@ namespace BibTeX enum MergeSemantics {msAddNew, msForceAdding}; Entry( ); - Entry( const EntryType entryType, const QString &id ); - Entry( const QString& entryTypeString, const QString& id ); + Entry( const EntryType entryType, const TQString &id ); + Entry( const TQString& entryTypeString, const TQString& id ); Entry( const Entry *other ); virtual ~Entry(); Element* clone(); bool equals( const Entry &other ); - QString text() const; + TQString text() const; void setEntryType( const EntryType elementType ); - void setEntryTypeString( const QString& elementTypeString ); + void setEntryTypeString( const TQString& elementTypeString ); EntryType entryType() const; - QString entryTypeString() const; - void setId( const QString& id ); - QString id() const; + TQString entryTypeString() const; + void setId( const TQString& id ); + TQString id() const; - bool containsPattern( const QString& pattern, EntryField::FieldType fieldType = EntryField::ftUnknown, BibTeX::Element::FilterType filterType = BibTeX::Element::ftExact, bool caseSensitive = FALSE ) const; - QStringList urls() const; + bool containsPattern( const TQString& pattern, EntryField::FieldType fieldType = EntryField::ftUnknown, BibTeX::Element::FilterType filterType = BibTeX::Element::ftExact, bool caseSensitive = FALSE ) const; + TQStringList urls() const; bool addField( EntryField *field ); BibTeX::EntryField* getField( const EntryField::FieldType fieldType ) const; - BibTeX::EntryField* getField( const QString& fieldName ) const; + BibTeX::EntryField* getField( const TQString& fieldName ) const; bool deleteField( const BibTeX::EntryField::FieldType fieldType ); - bool deleteField( const QString &fieldName ); + bool deleteField( const TQString &fieldName ); EntryFields::const_iterator begin() const; EntryFields::const_iterator end() const; @@ -76,14 +76,14 @@ namespace BibTeX void copyFrom( const BibTeX::Entry *other ); void merge( BibTeX::Entry *other, MergeSemantics mergeSemantics ); - static QString entryTypeToString( const EntryType entryType ); - static EntryType entryTypeFromString( const QString &entryTypeString ); + static TQString entryTypeToString( const EntryType entryType ); + static EntryType entryTypeFromString( const TQString &entryTypeString ); static Entry::FieldRequireStatus getRequireStatus( Entry::EntryType entryType, EntryField::FieldType fieldType ); private: EntryType m_entryType; - QString m_entryTypeString; - QString m_id; + TQString m_entryTypeString; + TQString m_id; EntryFields m_fields; }; |