diff options
Diffstat (limited to 'krita/core/kis_exif_value.h')
-rw-r--r-- | krita/core/kis_exif_value.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/krita/core/kis_exif_value.h b/krita/core/kis_exif_value.h index 6e37e0a3..a61e305a 100644 --- a/krita/core/kis_exif_value.h +++ b/krita/core/kis_exif_value.h @@ -20,32 +20,32 @@ #ifndef KIS_EXIF_VALUE_H #define KIS_EXIF_VALUE_H -#include <qdom.h> +#include <tqdom.h> -#include <qcstring.h> -#include <qstring.h> +#include <tqcstring.h> +#include <tqstring.h> -typedef QMemArray<Q_UINT8> UByteArray; +typedef TQMemArray<TQ_UINT8> UByteArray; struct KisExifRational { - Q_UINT32 numerator; - Q_UINT32 denominator; + TQ_UINT32 numerator; + TQ_UINT32 denominator; }; struct KisExifSRational { - Q_INT32 numerator; - Q_INT32 denominator; + TQ_INT32 numerator; + TQ_INT32 denominator; }; class ExifValue { typedef union { - Q_UINT8 m_byte; - Q_UINT16 m_short; - Q_UINT32 m_long; + TQ_UINT8 m_byte; + TQ_UINT16 m_short; + TQ_UINT32 m_long; KisExifRational m_rational; - Q_INT8 m_sbyte; - Q_INT16 m_sshort; - Q_INT32 m_slong; + TQ_INT8 m_sbyte; + TQ_INT16 m_sshort; + TQ_INT32 m_slong; KisExifSRational m_srational; float m_float; double m_double; @@ -73,8 +73,8 @@ class ExifValue { ExifValue() : m_ifd(-1), m_type(EXIF_TYPE_UNKNOW), m_components(0), m_value(0) { } ExifValue(ExifType type, unsigned char *data, unsigned int size, int ifd, uint components, ExifValue::ByteOrder order); - virtual bool load(const QDomElement& elmt); - virtual QDomElement save(QDomDocument& doc); + virtual bool load(const TQDomElement& elmt); + virtual TQDomElement save(TQDomDocument& doc); /** * Return the type of the array @@ -93,23 +93,23 @@ class ExifValue { m_components = size; } } - inline const QString asAscii() { + inline const TQString asAscii() { if(m_type == EXIF_TYPE_ASCII) - return QString(*(QString*) m_value); - return QString(); + return TQString(*(TQString*) m_value); + return TQString(); } inline void setAsAscii(char* data) { if(m_type == EXIF_TYPE_ASCII) { - QString str = QString((char*) data); - *(QString*)m_value = str; + TQString str = TQString((char*) data); + *(TQString*)m_value = str; m_components = str.length(); } } - inline void setAsAscii(QString str) + inline void setAsAscii(TQString str) { - *(QString*)m_value = str; + *(TQString*)m_value = str; m_components = str.length(); } void convertToData(unsigned char ** data, unsigned int* size, ExifValue::ByteOrder order); @@ -125,35 +125,35 @@ class ExifValue { /** * This function return the value of a the ExifValue as a string. */ - QString toString(); + TQString toString(); - inline Q_UINT8 asByte(uint i) + inline TQ_UINT8 asByte(uint i) { if(m_type == EXIF_TYPE_BYTE) return asExifNumber(i).m_byte; return 0; } - inline void setValue(uint i, Q_UINT8 v) + inline void setValue(uint i, TQ_UINT8 v) { ((ExifNumber*)m_value)[i].m_byte = v; } - inline Q_UINT8 asShort(uint i) + inline TQ_UINT8 asShort(uint i) { if(m_type == EXIF_TYPE_SHORT) return asExifNumber(i).m_short; return 0; } - inline void setValue(uint i, Q_UINT16 v) + inline void setValue(uint i, TQ_UINT16 v) { ((ExifNumber*)m_value)[i].m_short = v; } - inline Q_UINT8 asLong(uint i) + inline TQ_UINT8 asLong(uint i) { if(m_type == EXIF_TYPE_LONG) return asExifNumber(i).m_long; return 0; } - inline void setValue(uint i, Q_UINT32 v) + inline void setValue(uint i, TQ_UINT32 v) { ((ExifNumber*)m_value)[i].m_long = v; } @@ -163,7 +163,7 @@ class ExifValue { return asExifNumber(i).m_rational; return KisExifRational(); } - inline void setValue(uint i, Q_UINT32 n, Q_UINT32 d) + inline void setValue(uint i, TQ_UINT32 n, TQ_UINT32 d) { ((ExifNumber*)m_value)[i].m_rational.numerator = n; ((ExifNumber*)m_value)[i].m_rational.denominator = d; @@ -172,33 +172,33 @@ class ExifValue { { ((ExifNumber*)m_value)[i].m_rational = r; } - inline Q_INT8 asSByte(uint i) + inline TQ_INT8 asSByte(uint i) { if(m_type == EXIF_TYPE_SBYTE) return asExifNumber(i).m_sbyte; return 0; } - inline void setValue(uint i, Q_INT8 v) + inline void setValue(uint i, TQ_INT8 v) { ((ExifNumber*)m_value)[i].m_sbyte = v; } - inline Q_INT16 asSShort(uint i) + inline TQ_INT16 asSShort(uint i) { if(m_type == EXIF_TYPE_SSHORT) return asExifNumber(i).m_sshort; return 0; } - inline void setValue(uint i, Q_INT16 v) + inline void setValue(uint i, TQ_INT16 v) { ((ExifNumber*)m_value)[i].m_sshort = v; } - inline Q_INT32 asSLong(uint i) + inline TQ_INT32 asSLong(uint i) { if(m_type == EXIF_TYPE_SLONG) return asExifNumber(i).m_slong; return 0; } - inline void setValue(uint i, Q_INT32 v) + inline void setValue(uint i, TQ_INT32 v) { ((ExifNumber*)m_value)[i].m_slong = v; } @@ -212,7 +212,7 @@ class ExifValue { { ((ExifNumber*)m_value)[i].m_srational = r; } - inline void setValue(uint i, Q_INT32 n, Q_INT32 d) + inline void setValue(uint i, TQ_INT32 n, TQ_INT32 d) { ((ExifNumber*)m_value)[i].m_srational.numerator = n; ((ExifNumber*)m_value)[i].m_srational.denominator = d; @@ -241,7 +241,7 @@ class ExifValue { /** * Return the ith component as a string. */ - QString toString(uint i); + TQString toString(uint i); void setValue(const unsigned char *data, unsigned int size, ExifValue::ByteOrder order); /** * Return the ExifValue as a number. |