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/findduplicates.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/findduplicates.h') diff --git a/src/findduplicates.h b/src/findduplicates.h index e1a2fce..c11dcf3 100644 --- a/src/findduplicates.h +++ b/src/findduplicates.h @@ -20,10 +20,10 @@ #ifndef KBIBTEXFINDDUPLICATES_H #define KBIBTEXFINDDUPLICATES_H -#include +#include class KProgressDialog; -class QWidget; +class TQWidget; namespace KBibTeX { @@ -31,12 +31,12 @@ namespace KBibTeX /** @author Thomas Fischer */ - class FindDuplicates : public QObject + class FindDuplicates : public TQObject { Q_OBJECT public: - typedef QValueList DuplicateClique; - typedef QValueList DuplicateCliqueList; + typedef TQValueList DuplicateClique; + typedef TQValueList DuplicateCliqueList; /** * Find duplicates in a given BibTeX file. The sensitivity parameter controls the distance between two elements where both elements are considered to be duplicates. The parent object is used as a progress dialog's parent. @@ -45,7 +45,7 @@ namespace KBibTeX * @param parent * @return */ - FindDuplicates( DuplicateCliqueList &result, unsigned int sensitivity, BibTeX::File *file, QWidget *parent ); + FindDuplicates( DuplicateCliqueList &result, unsigned int sensitivity, BibTeX::File *file, TQWidget *parent ); ~FindDuplicates(); @@ -55,24 +55,24 @@ namespace KBibTeX static const unsigned int maxDistance; protected: - void determineDistances( BibTeX::File *file, unsigned int *distVector, QMap &mapElementToIndex, KProgressDialog *progDlg ); - void buildClique( DuplicateCliqueList &result, BibTeX::File *file, unsigned int *distVector, QMap &mapElementToIndex, unsigned int sensitivity ); + void determineDistances( BibTeX::File *file, unsigned int *distVector, TQMap &mapElementToIndex, KProgressDialog *progDlg ); + void buildClique( DuplicateCliqueList &result, BibTeX::File *file, unsigned int *distVector, TQMap &mapElementToIndex, unsigned int sensitivity ); unsigned int entryDistance( BibTeX::Entry *entryA, BibTeX::Entry *entryB ); unsigned int macroDistance( BibTeX::Macro *macroA, BibTeX::Macro *macroB ); unsigned int preambleDistance( BibTeX::Preamble *preambleA, BibTeX::Preamble *preambleB ); - static QString extractTitle( BibTeX::Entry *entry ); - static QStringList authorsLastName( BibTeX::Entry *entry ); + static TQString extractTitle( BibTeX::Entry *entry ); + static TQStringList authorsLastName( BibTeX::Entry *entry ); static int extractYear( BibTeX::Entry *entry ); - static QString extractMacroKey( BibTeX::Macro *macro ); - static QString extractMacroValue( BibTeX::Macro *macro ); + static TQString extractMacroKey( BibTeX::Macro *macro ); + static TQString extractMacroValue( BibTeX::Macro *macro ); private: bool m_doCancel; - double levenshteinDistance( const QStringList &s, const QStringList &t ); - double levenshteinDistance( const QString &s, const QString &t ); - double levenshteinDistanceWord( const QString &s, const QString &t ); + double levenshteinDistance( const TQStringList &s, const TQStringList &t ); + double levenshteinDistance( const TQString &s, const TQString &t ); + double levenshteinDistanceWord( const TQString &s, const TQString &t ); int arrayOffset( int a, int b ); void sort( unsigned int *array, int len ); -- cgit v1.2.1