diff options
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/value.h b/src/value.h index 3c7d876..8b1f711 100644 --- a/src/value.h +++ b/src/value.h @@ -20,9 +20,9 @@ #ifndef BIBTEXVALUE_H #define BIBTEXVALUE_H -#include <qvaluelist.h> +#include <ntqvaluelist.h> -class QStringList; +class TQStringList; namespace BibTeX { @@ -30,23 +30,23 @@ namespace BibTeX { public: ValueTextInterface( const ValueTextInterface* other ); - ValueTextInterface( const QString& text ); + ValueTextInterface( const TQString& text ); virtual ~ValueTextInterface() {}; - virtual void setText( const QString& text ); - virtual QString text() const; - QString simplifiedText() const; - virtual void replace( const QString &before, const QString &after ); - virtual bool containsPattern( const QString &pattern, bool caseSensitive ); + virtual void setText( const TQString& text ); + virtual TQString text() const; + TQString simplifiedText() const; + virtual void replace( const TQString &before, const TQString &after ); + virtual bool containsPattern( const TQString &pattern, bool caseSensitive ); private: - QString m_text; + TQString m_text; }; class ValueItem: public ValueTextInterface { public: - ValueItem( const QString& text ); + ValueItem( const TQString& text ); virtual ValueItem *clone() { @@ -58,7 +58,7 @@ namespace BibTeX { public: Keyword( Keyword *other ); - Keyword( const QString& text ); + Keyword( const TQString& text ); Keyword *clone(); }; @@ -67,55 +67,55 @@ namespace BibTeX { public: KeywordContainer(); - KeywordContainer( const QString& text ); + KeywordContainer( const TQString& text ); KeywordContainer( KeywordContainer *other ); - KeywordContainer( const QStringList& list ); + KeywordContainer( const TQStringList& list ); ValueItem *clone(); - void setList( const QStringList& list ); - void append( const QString& text ); - void remove( const QString& text ); - void setText( const QString& text ); - QString text() const; - void replace( const QString &before, const QString &after ); - - QValueList<Keyword*> keywords; + void setList( const TQStringList& list ); + void append( const TQString& text ); + void remove( const TQString& text ); + void setText( const TQString& text ); + TQString text() const; + void replace( const TQString &before, const TQString &after ); + + TQValueList<Keyword*> keywords; }; class Person: public ValueTextInterface { public: - Person( const QString& text, bool firstNameFirst = FALSE ); - Person( const QString& firstName, const QString& lastName, bool firstNameFirst = FALSE ); + Person( const TQString& text, bool firstNameFirst = FALSE ); + Person( const TQString& firstName, const TQString& lastName, bool firstNameFirst = FALSE ); Person *clone(); - void setText( const QString& text ); - QString text() const; - QString text( bool firstNameFirst ) const; + void setText( const TQString& text ); + TQString text() const; + TQString text( bool firstNameFirst ) const; - QString firstName(); - QString lastName(); + TQString firstName(); + TQString lastName(); protected: - QString m_firstName; - QString m_lastName; + TQString m_firstName; + TQString m_lastName; bool m_firstNameFirst; - bool splitName( const QString& text, QStringList& segments ); + bool splitName( const TQString& text, TQStringList& segments ); }; class PersonContainer: public ValueItem { public: PersonContainer( bool firstNameFirst = FALSE ); - PersonContainer( const QString& text, bool firstNameFirst = FALSE ); + PersonContainer( const TQString& text, bool firstNameFirst = FALSE ); ValueItem *clone(); - void setText( const QString& text ); - QString text() const; - void replace( const QString &before, const QString &after ); + void setText( const TQString& text ); + TQString text() const; + void replace( const TQString &before, const TQString &after ); - QValueList<Person*> persons; + TQValueList<Person*> persons; private: bool m_firstNameFirst; @@ -128,18 +128,18 @@ namespace BibTeX bool isValidInternal(); public: - MacroKey( const QString& text ); + MacroKey( const TQString& text ); ValueItem *clone(); - void setText( const QString& text ); + void setText( const TQString& text ); bool isValid(); }; class PlainText: public ValueItem { public: - PlainText( const QString& text ); + PlainText( const TQString& text ); ValueItem *clone(); }; @@ -149,13 +149,13 @@ namespace BibTeX public: Value(); Value( const Value *other ); - Value( const QString& text, bool isMacroKey = false ); + Value( const TQString& text, bool isMacroKey = false ); - void setText( const QString& text ); - QString text() const; - void replace( const QString &before, const QString &after ); + void setText( const TQString& text ); + TQString text() const; + void replace( const TQString &before, const TQString &after ); - QValueList<ValueItem*> items; + TQValueList<ValueItem*> items; }; } |