diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /sip/tdecore | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/tdecore')
75 files changed, 1595 insertions, 1595 deletions
diff --git a/sip/tdecore/bytearray.sip b/sip/tdecore/bytearray.sip index aae4780..20cd872 100644 --- a/sip/tdecore/bytearray.sip +++ b/sip/tdecore/bytearray.sip @@ -26,40 +26,40 @@ %End -void dcop_add (QDataStream&, QWidget::FocusPolicy /Constrained/); -void dcop_add (QDataStream&, int /Constrained/, const QCString& = "int"); -//void dcop_add (QDataStream&, longlong); -//void dcop_add (QDataStream&, ulonglong); -void dcop_add (QDataStream&, double, const QCString& = "double"); -void dcop_add (QDataStream&, QString); -void dcop_add (QDataStream&, QStringList); -void dcop_add (QDataStream&, QCString); -void dcop_add (QDataStream&, KURL); -void dcop_add (QDataStream&, KURL::List); -void dcop_add (QDataStream&, QSize); -void dcop_add (QDataStream&, QRect); -void dcop_add (QDataStream&, QRegion); -void dcop_add (QDataStream&, QPoint); -void dcop_add (QDataStream&, QFont); -void dcop_add (QDataStream&, QCursor); -void dcop_add (QDataStream&, QPixmap); -void dcop_add (QDataStream&, QColor); -void dcop_add (QDataStream&, QColorGroup); -void dcop_add (QDataStream&, QPalette); -void dcop_add (QDataStream&, QBrush); -void dcop_add (QDataStream&, DCOPRef); -void dcop_add (QDataStream&, QVariant); -void dcop_add (QDataStream&, QDate); -void dcop_add (QDataStream&, QTime); -void dcop_add (QDataStream&, QDateTime); -void dcop_add (QDataStream&, QImage); -void dcop_add (QDataStream&, QKeySequence); -void dcop_add (QDataStream&, QPen); -void dcop_add (QDataStream&, QPicture); -void dcop_add (QDataStream&, QPointArray); -void dcop_add (QDataStream&, QByteArray); - -void dcop_add (QDataStream&, SIP_PYDICT, QCString); +void dcop_add (TQDataStream&, TQWidget::FocusPolicy /Constrained/); +void dcop_add (TQDataStream&, int /Constrained/, const TQCString& = "int"); +//void dcop_add (TQDataStream&, longlong); +//void dcop_add (TQDataStream&, ulonglong); +void dcop_add (TQDataStream&, double, const TQCString& = "double"); +void dcop_add (TQDataStream&, TQString); +void dcop_add (TQDataStream&, TQStringList); +void dcop_add (TQDataStream&, TQCString); +void dcop_add (TQDataStream&, KURL); +void dcop_add (TQDataStream&, KURL::List); +void dcop_add (TQDataStream&, TQSize); +void dcop_add (TQDataStream&, TQRect); +void dcop_add (TQDataStream&, TQRegion); +void dcop_add (TQDataStream&, TQPoint); +void dcop_add (TQDataStream&, TQFont); +void dcop_add (TQDataStream&, TQCursor); +void dcop_add (TQDataStream&, TQPixmap); +void dcop_add (TQDataStream&, TQColor); +void dcop_add (TQDataStream&, TQColorGroup); +void dcop_add (TQDataStream&, TQPalette); +void dcop_add (TQDataStream&, TQBrush); +void dcop_add (TQDataStream&, DCOPRef); +void dcop_add (TQDataStream&, TQVariant); +void dcop_add (TQDataStream&, TQDate); +void dcop_add (TQDataStream&, TQTime); +void dcop_add (TQDataStream&, TQDateTime); +void dcop_add (TQDataStream&, TQImage); +void dcop_add (TQDataStream&, TQKeySequence); +void dcop_add (TQDataStream&, TQPen); +void dcop_add (TQDataStream&, TQPicture); +void dcop_add (TQDataStream&, TQPointArray); +void dcop_add (TQDataStream&, TQByteArray); + +void dcop_add (TQDataStream&, SIP_PYDICT, TQCString); %MethodCode const sipTypeDef *map_td = sipFindType(*a2); @@ -75,27 +75,27 @@ void dcop_add (QDataStream&, SIP_PYDICT, QCString); { sipIsErr = 1; } - else if (*a2 == "QMap<QCString,DCOPRef>") + else if (*a2 == "TQMap<TQCString,DCOPRef>") { - QMap<QCString,DCOPRef> *map = (QMap<QCString,DCOPRef> *)map_v; + TQMap<TQCString,DCOPRef> *map = (TQMap<TQCString,DCOPRef> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,DCOPRef>") + else if (*a2 == "TQMap<TQString,DCOPRef>") { - QMap<QString,DCOPRef> *map = (QMap<QString,DCOPRef> *)map_v; + TQMap<TQString,DCOPRef> *map = (TQMap<TQString,DCOPRef> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,QString>") + else if (*a2 == "TQMap<TQString,TQString>") { - QMap<QString,QString> *map = (QMap<QString,QString> *)map_v; + TQMap<TQString,TQString> *map = (TQMap<TQString,TQString> *)map_v; *a0 << *map; } - else if (*a2 == "QMap<QString,QByteArray>") + else if (*a2 == "TQMap<TQString,TQByteArray>") { - QMap<QString,QByteArray> *map = (QMap<QString,QByteArray> *)map_v; + TQMap<TQString,TQByteArray> *map = (TQMap<TQString,TQByteArray> *)map_v; *a0 << *map; } @@ -103,7 +103,7 @@ void dcop_add (QDataStream&, SIP_PYDICT, QCString); %End -void dcop_add (QDataStream&, SIP_PYLIST, QCString); +void dcop_add (TQDataStream&, SIP_PYLIST, TQCString); %MethodCode const sipTypeDef *list_td = sipFindType(*a2); @@ -119,15 +119,15 @@ void dcop_add (QDataStream&, SIP_PYLIST, QCString); { sipIsErr = 1; } - else if (*a2 == "QValueList<QCString>") + else if (*a2 == "TQValueList<TQCString>") { - QValueList<QCString> *list = (QValueList<QCString> *)list_v; + TQValueList<TQCString> *list = (TQValueList<TQCString> *)list_v; *a0 << *list; } - else if (*a2 == "QValueList<DCOPRef>") + else if (*a2 == "TQValueList<DCOPRef>") { - QValueList<DCOPRef> *list = (QValueList<DCOPRef> *)list_v; + TQValueList<DCOPRef> *list = (TQValueList<DCOPRef> *)list_v; *a0 << *list; } @@ -135,7 +135,7 @@ void dcop_add (QDataStream&, SIP_PYLIST, QCString); %End -void dcop_next (QDataStream&, QCString&); +void dcop_next (TQDataStream&, TQCString&); %MethodCode if (*a1 == "char") { @@ -215,23 +215,23 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return PyFloat_FromDouble (res); } - else if (*a1 == "QString") + else if (*a1 == "TQString") { - QString res; + TQString res; *a0 >> res; - return sipConvertFromNewType(new QString(res), sipType_QString, NULL); + return sipConvertFromNewType(new TQString(res), sipType_QString, NULL); } - else if (*a1 == "QStringList") + else if (*a1 == "TQStringList") { - QStringList res; + TQStringList res; *a0 >> res; - return sipConvertFromNewType(new QStringList(res), sipType_QStringList, NULL); + return sipConvertFromNewType(new TQStringList(res), sipType_QStringList, NULL); } - else if (*a1 == "QCString") + else if (*a1 == "TQCString") { - QCString res; + TQCString res; *a0 >> res; - return sipConvertFromNewType(new QCString(res), sipType_QCString, NULL); + return sipConvertFromNewType(new TQCString(res), sipType_QCString, NULL); } else if (*a1 == "KURL") { @@ -245,71 +245,71 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return sipConvertFromNewType(new KURL::List(res), sipType_KURL_List, NULL); } - else if (*a1 == "QSize") + else if (*a1 == "TQSize") { - QSize res; + TQSize res; *a0 >> res; - return sipConvertFromNewType(new QSize(res), sipType_QSize, NULL); + return sipConvertFromNewType(new TQSize(res), sipType_QSize, NULL); } - else if (*a1 == "QRect") + else if (*a1 == "TQRect") { - QRect res; + TQRect res; *a0 >> res; - return sipConvertFromNewType(new QRect(res), sipType_QRect, NULL); + return sipConvertFromNewType(new TQRect(res), sipType_QRect, NULL); } - else if (*a1 == "QRegion") + else if (*a1 == "TQRegion") { - QRect res; + TQRect res; *a0 >> res; - return sipConvertFromNewType(new QRegion(res), sipType_QRegion, NULL); + return sipConvertFromNewType(new TQRegion(res), sipType_QRegion, NULL); } - else if (*a1 == "QPoint") + else if (*a1 == "TQPoint") { - QPoint res; + TQPoint res; *a0 >> res; - return sipConvertFromNewType(new QPoint(res), sipType_QPoint, NULL); + return sipConvertFromNewType(new TQPoint(res), sipType_QPoint, NULL); } - else if (*a1 == "QFont") + else if (*a1 == "TQFont") { - QFont res; + TQFont res; *a0 >> res; - return sipConvertFromNewType(new QFont(res), sipType_QFont, NULL); + return sipConvertFromNewType(new TQFont(res), sipType_QFont, NULL); } - else if (*a1 == "QCursor") + else if (*a1 == "TQCursor") { - QCursor res; + TQCursor res; *a0 >> res; - return sipConvertFromNewType(new QCursor(res), sipType_QCursor, NULL); + return sipConvertFromNewType(new TQCursor(res), sipType_QCursor, NULL); } - else if (*a1 == "QPixmap") + else if (*a1 == "TQPixmap") { - QPixmap res; + TQPixmap res; *a0 >> res; - return sipConvertFromNewType(new QPixmap(res), sipType_QPixmap, NULL); + return sipConvertFromNewType(new TQPixmap(res), sipType_QPixmap, NULL); } - else if (*a1 == "QColor") + else if (*a1 == "TQColor") { - QColor res; + TQColor res; *a0 >> res; - return sipConvertFromNewType(new QColor(res), sipType_QColor, NULL); + return sipConvertFromNewType(new TQColor(res), sipType_QColor, NULL); } - else if (*a1 == "QColorGroup") + else if (*a1 == "TQColorGroup") { - QColorGroup res; + TQColorGroup res; *a0 >> res; - return sipConvertFromNewType(new QColorGroup(res), sipType_QColorGroup, NULL); + return sipConvertFromNewType(new TQColorGroup(res), sipType_QColorGroup, NULL); } - else if (*a1 == "QPalette") + else if (*a1 == "TQPalette") { - QPalette res; + TQPalette res; *a0 >> res; - return sipConvertFromNewType(new QPalette(res), sipType_QPalette, NULL); + return sipConvertFromNewType(new TQPalette(res), sipType_QPalette, NULL); } - else if (*a1 == "QBrush") + else if (*a1 == "TQBrush") { - QBrush res; + TQBrush res; *a0 >> res; - return sipConvertFromNewType(new QBrush(res), sipType_QBrush, NULL); + return sipConvertFromNewType(new TQBrush(res), sipType_QBrush, NULL); } else if (*a1 == "FocusPolicy") { @@ -323,99 +323,99 @@ void dcop_next (QDataStream&, QCString&); *a0 >> res; return sipConvertFromNewType(new DCOPRef(res), sipType_DCOPRef, NULL); } - else if (*a1 == "QVariant") + else if (*a1 == "TQVariant") { - QVariant res; + TQVariant res; *a0 >> res; - return sipConvertFromNewType(new QVariant(res), sipType_QVariant, NULL); + return sipConvertFromNewType(new TQVariant(res), sipType_QVariant, NULL); } - else if (*a1 == "QDate") + else if (*a1 == "TQDate") { - QDate res; + TQDate res; *a0 >> res; - return sipConvertFromNewType(new QDate(res), sipType_QDate, NULL); + return sipConvertFromNewType(new TQDate(res), sipType_QDate, NULL); } - else if (*a1 == "QTime") + else if (*a1 == "TQTime") { - QTime res; + TQTime res; *a0 >> res; - return sipConvertFromNewType(new QTime(res), sipType_QTime, NULL); + return sipConvertFromNewType(new TQTime(res), sipType_QTime, NULL); } - else if (*a1 == "QDateTime") + else if (*a1 == "TQDateTime") { - QDateTime res; + TQDateTime res; *a0 >> res; - return sipConvertFromNewType(new QDateTime(res), sipType_QDateTime, NULL); + return sipConvertFromNewType(new TQDateTime(res), sipType_QDateTime, NULL); } - else if (*a1 == "QImage") + else if (*a1 == "TQImage") { - QImage res; + TQImage res; *a0 >> res; - return sipConvertFromNewType(new QImage(res), sipType_QImage, NULL); + return sipConvertFromNewType(new TQImage(res), sipType_QImage, NULL); } - else if (*a1 == "QKeySequence") + else if (*a1 == "TQKeySequence") { - QKeySequence res; + TQKeySequence res; *a0 >> res; - return sipConvertFromNewType(new QKeySequence(res), sipType_QKeySequence, NULL); + return sipConvertFromNewType(new TQKeySequence(res), sipType_QKeySequence, NULL); } - else if (*a1 == "QPen") + else if (*a1 == "TQPen") { - QPen res; + TQPen res; *a0 >> res; - return sipConvertFromNewType(new QPen(res), sipType_QPen, NULL); + return sipConvertFromNewType(new TQPen(res), sipType_QPen, NULL); } - else if (*a1 == "QPicture") + else if (*a1 == "TQPicture") { - QPicture res; + TQPicture res; *a0 >> res; - return sipConvertFromNewType(new QPicture(res), sipType_QPicture, NULL); + return sipConvertFromNewType(new TQPicture(res), sipType_QPicture, NULL); } - else if (*a1 == "QPointArray") + else if (*a1 == "TQPointArray") { - QPointArray res; + TQPointArray res; *a0 >> res; - return sipConvertFromNewType(new QPointArray(res), sipType_QPointArray, NULL); + return sipConvertFromNewType(new TQPointArray(res), sipType_QPointArray, NULL); } - else if (*a1 == "QByteArray") + else if (*a1 == "TQByteArray") { - QByteArray res; + TQByteArray res; *a0 >> res; - return sipConvertFromNewType(new QByteArray(res), sipType_QByteArray, NULL); + return sipConvertFromNewType(new TQByteArray(res), sipType_QByteArray, NULL); } - else if (*a1 == "QMap<QCString,DCOPRef>") + else if (*a1 == "TQMap<TQCString,DCOPRef>") { - QMap<QCString, DCOPRef> res; + TQMap<TQCString, DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,DCOPRef>") + else if (*a1 == "TQMap<TQString,DCOPRef>") { - QMap<QString, DCOPRef> res; + TQMap<TQString, DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,QString>") + else if (*a1 == "TQMap<TQString,TQString>") { - QMap<QString, QString> res; + TQMap<TQString, TQString> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QMap<QString,QByteArray>") + else if (*a1 == "TQMap<TQString,TQByteArray>") { - QMap<QString, QByteArray> res; + TQMap<TQString, TQByteArray> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QValueList<QCString>") + else if (*a1 == "TQValueList<TQCString>") { - QValueList<QCString> res; + TQValueList<TQCString> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } - else if (*a1 == "QValueList<DCOPRef>" || *a1 == "QCStringList") + else if (*a1 == "TQValueList<DCOPRef>" || *a1 == "TQCStringList") { - QValueList<DCOPRef> res; + TQValueList<DCOPRef> res; *a0 >> res; return sipConvertFromType(&res, sipFindType(*a1), NULL); } @@ -430,7 +430,7 @@ void dcop_next (QDataStream&, QCString&); %ModuleCode -void dcop_add (QDataStream& s, int value, const QCString& type_) +void dcop_add (TQDataStream& s, int value, const TQCString& type_) { if (type_ == "char") s << (Q_INT8)value; @@ -452,17 +452,17 @@ void dcop_add (QDataStream& s, int value, const QCString& type_) s << (long)value; } -/*void dcop_add (QDataStream& s, longlong value) +/*void dcop_add (TQDataStream& s, longlong value) { s << value; } -void dcop_add (QDataStream& s, ulonglong value) +void dcop_add (TQDataStream& s, ulonglong value) { s << value; }*/ -void dcop_add (QDataStream& s, double value, const QCString& type_) +void dcop_add (TQDataStream& s, double value, const TQCString& type_) { if (type_ == "double") s << value; @@ -470,142 +470,142 @@ void dcop_add (QDataStream& s, double value, const QCString& type_) s << (float)value; } -void dcop_add (QDataStream& s, QString value) +void dcop_add (TQDataStream& s, TQString value) { s << value; } -void dcop_add (QDataStream& s, QStringList value) +void dcop_add (TQDataStream& s, TQStringList value) { s << value; } -void dcop_add (QDataStream& s, QCString value) +void dcop_add (TQDataStream& s, TQCString value) { s << value; } -void dcop_add (QDataStream& s, KURL value) +void dcop_add (TQDataStream& s, KURL value) { s << value; } -void dcop_add (QDataStream& s, KURL::List value) +void dcop_add (TQDataStream& s, KURL::List value) { s << value; } -void dcop_add (QDataStream& s, QSize value) +void dcop_add (TQDataStream& s, TQSize value) { s << value; } -void dcop_add (QDataStream& s, QRect value) +void dcop_add (TQDataStream& s, TQRect value) { s << value; } -void dcop_add (QDataStream& s, QRegion value) +void dcop_add (TQDataStream& s, TQRegion value) { s << value; } -void dcop_add (QDataStream& s, QPoint value) +void dcop_add (TQDataStream& s, TQPoint value) { s << value; } -void dcop_add (QDataStream& s, QFont value) +void dcop_add (TQDataStream& s, TQFont value) { s << value; } -void dcop_add (QDataStream& s, QCursor value) +void dcop_add (TQDataStream& s, TQCursor value) { s << value; } -void dcop_add (QDataStream& s, QPixmap value) +void dcop_add (TQDataStream& s, TQPixmap value) { s << value; } -void dcop_add (QDataStream& s, QColor value) +void dcop_add (TQDataStream& s, TQColor value) { s << value; } -void dcop_add (QDataStream& s, QColorGroup value) +void dcop_add (TQDataStream& s, TQColorGroup value) { s << value; } -void dcop_add (QDataStream& s, QPalette value) +void dcop_add (TQDataStream& s, TQPalette value) { s << value; } -void dcop_add (QDataStream& s, QBrush value) +void dcop_add (TQDataStream& s, TQBrush value) { s << value; } -void dcop_add (QDataStream& s, QWidget::FocusPolicy value) +void dcop_add (TQDataStream& s, TQWidget::FocusPolicy value) { s << value; } -void dcop_add (QDataStream& s, DCOPRef value) +void dcop_add (TQDataStream& s, DCOPRef value) { s << value; } -void dcop_add (QDataStream& s, QVariant value) +void dcop_add (TQDataStream& s, TQVariant value) { s << value; } -void dcop_add (QDataStream& s, QDate value) +void dcop_add (TQDataStream& s, TQDate value) { s << value; } -void dcop_add (QDataStream& s, QTime value) +void dcop_add (TQDataStream& s, TQTime value) { s << value; } -void dcop_add (QDataStream& s, QDateTime value) +void dcop_add (TQDataStream& s, TQDateTime value) { s << value; } -void dcop_add (QDataStream& s, QImage value) +void dcop_add (TQDataStream& s, TQImage value) { s << value; } -void dcop_add (QDataStream& s, QKeySequence value) +void dcop_add (TQDataStream& s, TQKeySequence value) { s << value; } -void dcop_add (QDataStream& s, QPen value) +void dcop_add (TQDataStream& s, TQPen value) { s << value; } -void dcop_add (QDataStream& s, QPicture value) +void dcop_add (TQDataStream& s, TQPicture value) { s << value; } -void dcop_add (QDataStream& s, QPointArray value) +void dcop_add (TQDataStream& s, TQPointArray value) { s << value; } -void dcop_add (QDataStream& s, QByteArray value) +void dcop_add (TQDataStream& s, TQByteArray value) { s << value; } @@ -613,12 +613,12 @@ void dcop_add (QDataStream& s, QByteArray value) %End -%MappedType QMap<QCString,DCOPRef> -//converts a Python dict of QCString:DCOPRef +%MappedType TQMap<TQCString,DCOPRef> +//converts a Python dict of TQCString:DCOPRef { %TypeHeaderCode #include <qmap.h> -//typedef QMap<QCString,DCOPRef> DCOPRefMap; +//typedef TQMap<TQCString,DCOPRef> DCOPRefMap; %End %ConvertFromTypeCode @@ -636,16 +636,16 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QCString,DCOPRef> cppmap = *sipCpp; - QMap<QCString,DCOPRef>::ConstIterator it; + const TQMap<TQCString,DCOPRef> cppmap = *sipCpp; + TQMap<TQCString,DCOPRef>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QCString acpp = it.key (); + TQCString acpp = it.key (); DCOPRef bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QCString(acpp), sipType_QCString, NULL)) == NULL) + if (((ainst = sipConvertFromNewType(new TQCString(acpp), sipType_QCString, NULL)) == NULL) || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -661,23 +661,23 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QCString,DCOPRef> *cppmap = new QMap<QCString,DCOPRef>; + TQMap<TQCString,DCOPRef> *cppmap = new TQMap<TQCString,DCOPRef>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QCString *acpp; + TQCString *acpp; DCOPRef *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0; - acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + acpp = (TQCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) @@ -696,12 +696,12 @@ void dcop_add (QDataStream& s, QByteArray value) %End }; -%MappedType QMap<QString,DCOPRef> -//converts a Python dict of QString:DCOPRef +%MappedType TQMap<TQString,DCOPRef> +//converts a Python dict of TQString:DCOPRef { %TypeHeaderCode #include <qmap.h> -//typedef QMap<QString,DCOPRef> DCOPRefMap; +//typedef TQMap<TQString,DCOPRef> DCOPRefMap; %End %ConvertFromTypeCode @@ -719,16 +719,16 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QString,DCOPRef> cppmap = *sipCpp; - QMap<QString,DCOPRef>::ConstIterator it; + const TQMap<TQString,DCOPRef> cppmap = *sipCpp; + TQMap<TQString,DCOPRef>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); + TQString acpp = it.key (); DCOPRef bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -744,23 +744,23 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,DCOPRef> *cppmap = new QMap<QString,DCOPRef>; + TQMap<TQString,DCOPRef> *cppmap = new TQMap<TQString,DCOPRef>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; + TQString *acpp; DCOPRef *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) @@ -785,11 +785,11 @@ void dcop_add (QDataStream& s, QByteArray value) }; -//%MappedType QMap<QString,QString> is available in tdecore/kconfig.sip +//%MappedType TQMap<TQString,TQString> is available in tdecore/kconfig.sip -%MappedType QMap<QString,QByteArray> -//converts a Python dict of QString:QByteArray +%MappedType TQMap<TQString,TQByteArray> +//converts a Python dict of TQString:TQByteArray { %TypeHeaderCode #include <qmap.h> @@ -810,17 +810,17 @@ void dcop_add (QDataStream& s, QByteArray value) // Get it. - const QMap<QString,QByteArray> cppmap = *sipCpp; - QMap<QString,QByteArray>::ConstIterator it; + const TQMap<TQString,TQByteArray> cppmap = *sipCpp; + TQMap<TQString,TQByteArray>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); - QByteArray bcpp = it.data (); + TQString acpp = it.key (); + TQByteArray bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -835,24 +835,24 @@ void dcop_add (QDataStream& s, QByteArray value) %ConvertToTypeCode - // Convert a Python dictionary to a QMap<QString,QByteArray> on the heap. + // Convert a Python dictionary to a TQMap<TQString,TQByteArray> on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,QByteArray> *cppmap = new QMap<QString,QByteArray>; + TQMap<TQString,TQByteArray> *cppmap = new TQMap<TQString,TQByteArray>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QByteArray *bcpp; + TQString *acpp; + TQByteArray *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state, bcpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); if (iserr) { @@ -878,7 +878,7 @@ void dcop_add (QDataStream& s, QByteArray value) -%MappedType QValueList<DCOPRef> +%MappedType TQValueList<DCOPRef> //converts a Python list of DCOPRef { %TypeHeaderCode @@ -894,11 +894,11 @@ void dcop_add (QDataStream& s, QByteArray value) if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<DCOPRef> *cpplist = (QValueList<DCOPRef> *)sipCpp; + TQValueList<DCOPRef> *cpplist = (TQValueList<DCOPRef> *)sipCpp; PyObject *inst; // Get it. - QValueList<DCOPRef>::Iterator it; + TQValueList<DCOPRef>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new DCOPRef(*it), sipType_DCOPRef, NULL)) == NULL) @@ -917,7 +917,7 @@ void dcop_add (QDataStream& s, QByteArray value) if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<DCOPRef> *cpplist = new QValueList<DCOPRef>; + TQValueList<DCOPRef> *cpplist = new TQValueList<DCOPRef>; PyObject *elem; DCOPRef *cpp; diff --git a/sip/tdecore/kaboutdata.sip b/sip/tdecore/kaboutdata.sip index 1117cda..e712c37 100644 --- a/sip/tdecore/kaboutdata.sip +++ b/sip/tdecore/kaboutdata.sip @@ -34,10 +34,10 @@ class KAboutPerson public: KAboutPerson (const char*, const char*, const char*, const char*); KAboutPerson (); - QString name () const; - QString task () const; - QString emailAddress () const; - QString webAddress () const; + TQString name () const; + TQString task () const; + TQString emailAddress () const; + TQString webAddress () const; }; // class KAboutPerson @@ -50,9 +50,9 @@ class KAboutTranslator public: - KAboutTranslator (const QString& = QString ::null , const QString& = QString ::null ); - QString name () const; - QString emailAddress () const; + KAboutTranslator (const TQString& = TQString ::null , const TQString& = TQString ::null ); + TQString name () const; + TQString emailAddress () const; }; // class KAboutTranslator @@ -88,14 +88,14 @@ public: void addCredit (const char*, const char* = 0, const char* = 0, const char* = 0); void setTranslator (const char*, const char*); void setLicenseText (const char*); - void setLicenseTextFile (const QString&); + void setLicenseTextFile (const TQString&); %If ( KDE_3_3_0 - ) void setAppName (const char*); void setProgramName (const char*); %If ( KDE_3_4_0 - ) - void setProgramLogo (const QImage&); + void setProgramLogo (const TQImage&); %End void setVersion (const char*); @@ -118,7 +118,7 @@ public: const char* productName () const; %End - QString programName () const; + TQString programName () const; %If ( KDE_3_5_1 - ) const char* internalProgramName () const; @@ -127,36 +127,36 @@ public: %If ( KDE_3_4_0 - ) - QImage programLogo () const; + TQImage programLogo () const; %End - QString version () const; + TQString version () const; %If ( KDE_3_5_1 - ) const char* internalVersion () const; %End - QString shortDescription () const; - QString homepage () const; - QString bugAddress () const; + TQString shortDescription () const; + TQString homepage () const; + TQString bugAddress () const; %If ( KDE_3_5_1 - ) const char* internalBugAddress () const; %End - const QValueList<KAboutPerson> authors () const; - const QValueList<KAboutPerson> credits () const; - const QValueList<KAboutTranslator> translators () const; - static QString aboutTranslationTeam (); - QString otherText () const; - QString license () const; - QString copyrightStatement () const; + const TQValueList<KAboutPerson> authors () const; + const TQValueList<KAboutPerson> credits () const; + const TQValueList<KAboutTranslator> translators () const; + static TQString aboutTranslationTeam (); + TQString otherText () const; + TQString license () const; + TQString copyrightStatement () const; %If ( KDE_3_5_0 - ) - QString customAuthorPlainText () const; - QString customAuthorRichText () const; + TQString customAuthorPlainText () const; + TQString customAuthorRichText () const; bool customAuthorTextEnabled () const; - void setCustomAuthorText (const QString&, const QString&); + void setCustomAuthorText (const TQString&, const TQString&); void unsetCustomAuthorText (); %End @@ -165,7 +165,7 @@ public: -%MappedType QValueList<KAboutPerson> +%MappedType TQValueList<KAboutPerson> //converts a Python list of KAboutPerson { %TypeHeaderCode @@ -181,11 +181,11 @@ public: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KAboutPerson> *cpplist = (QValueList<KAboutPerson> *)sipCpp; + TQValueList<KAboutPerson> *cpplist = (TQValueList<KAboutPerson> *)sipCpp; PyObject *inst; // Get it. - QValueList<KAboutPerson>::Iterator it; + TQValueList<KAboutPerson>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KAboutPerson(*it), sipType_KAboutPerson, NULL)) == NULL) @@ -204,7 +204,7 @@ public: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KAboutPerson> *cpplist = new QValueList<KAboutPerson>; + TQValueList<KAboutPerson> *cpplist = new TQValueList<KAboutPerson>; PyObject *elem; KAboutPerson *cpp; @@ -232,7 +232,7 @@ public: }; -%MappedType QValueList<KAboutTranslator> +%MappedType TQValueList<KAboutTranslator> //converts a Python list of KAboutTranslator { %TypeHeaderCode @@ -248,11 +248,11 @@ public: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KAboutTranslator> *cpplist = (QValueList<KAboutTranslator> *)sipCpp; + TQValueList<KAboutTranslator> *cpplist = (TQValueList<KAboutTranslator> *)sipCpp; PyObject *inst; // Get it. - QValueList<KAboutTranslator>::Iterator it; + TQValueList<KAboutTranslator>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KAboutTranslator(*it), sipType_KAboutTranslator, NULL)) == NULL) @@ -271,7 +271,7 @@ public: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KAboutTranslator> *cpplist = new QValueList<KAboutTranslator>; + TQValueList<KAboutTranslator> *cpplist = new TQValueList<KAboutTranslator>; PyObject *elem; KAboutTranslator *cpp; diff --git a/sip/tdecore/kaccel.sip b/sip/tdecore/kaccel.sip index 7b34881..2222223 100644 --- a/sip/tdecore/kaccel.sip +++ b/sip/tdecore/kaccel.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KAccel : QAccel +class KAccel : TQAccel { %TypeHeaderCode #include <kaccel.h> @@ -32,32 +32,32 @@ class KAccel : QAccel public: - KAccel (QWidget* /TransferThis/, const char* = 0); - KAccel (QWidget*, QObject* /TransferThis/, const char* = 0); + KAccel (TQWidget* /TransferThis/, const char* = 0); + KAccel (TQWidget*, TQObject* /TransferThis/, const char* = 0); KAccelActions& actions (); bool isEnabled () const; void setEnabled (bool); bool setAutoUpdate (bool); %If ( KDE_3_1_4 - ) - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); KAccelAction* insert (const char*, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); KAccelAction* insert (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); %End - bool remove (const QString&); + bool remove (const TQString&); bool updateConnections (); - const KShortcut& shortcut (const QString&) const; - bool setShortcut (const QString&, const KShortcut&); + const KShortcut& shortcut (const TQString&) const; + bool setShortcut (const TQString&, const KShortcut&); %If ( KDE_3_1_4 - ) - bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); + bool setSlot (const TQString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); %End - bool setEnabled (const QString&, bool); - const QString& configGroup () const; - void setConfigGroup (const QString&); + bool setEnabled (const TQString&, bool); + const TQString& configGroup () const; + void setConfigGroup (const TQString&); bool readSettings (KConfigBase* = 0); bool writeSettings (KConfigBase* = 0) const; void emitKeycodeChanged (); @@ -66,22 +66,22 @@ signals: void keycodeChanged (); public: - bool insertItem (const QString&, const QString&, const char*, int = 0, QPopupMenu* = 0, bool = 1); - bool insertItem (const QString&, const QString&, int, int, QPopupMenu*, bool = 1); - bool insertStdItem (KStdAccel::StdAccel, const QString& = QString ::null ); + bool insertItem (const TQString&, const TQString&, const char*, int = 0, TQPopupMenu* = 0, bool = 1); + bool insertItem (const TQString&, const TQString&, int, int, TQPopupMenu*, bool = 1); + bool insertStdItem (KStdAccel::StdAccel, const TQString& = TQString ::null ); %If ( KDE_3_1_4 - ) - bool connectItem (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1); + bool connectItem (const TQString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1); bool connectItem (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON ()); %End - bool removeItem (const QString&); - bool setItemEnabled (const QString&, bool); - void changeMenuAccel (QPopupMenu*, int, const QString&); - void changeMenuAccel (QPopupMenu*, int, KStdAccel::StdAccel); - static int stringToKey (const QString&); - int currentKey (const QString&) const; - QString findKey (int) const; + bool removeItem (const TQString&); + bool setItemEnabled (const TQString&, bool); + void changeMenuAccel (TQPopupMenu*, int, const TQString&); + void changeMenuAccel (TQPopupMenu*, int, KStdAccel::StdAccel); + static int stringToKey (const TQString&); + int currentKey (const TQString&) const; + TQString findKey (int) const; protected: //igx virtual void virtual_hook (int, void*); @@ -90,26 +90,26 @@ public: %If ( - KDE_3_2_0 ) //ig bool getAutoUpdate (); -//ig KAccelAction* insert (const QString&, const QString&); +//ig KAccelAction* insert (const TQString&, const TQString&); %End public: %If ( - KDE_3_1_4 ) - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (const char*, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (KStdAccel::StdAccel, const QObject*, const char*, bool = 1, bool = 1); - bool setSlot (const QString&, const QObject*, const char*); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const char*, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (KStdAccel::StdAccel, const TQObject*, const char*, bool = 1, bool = 1); + bool setSlot (const TQString&, const TQObject*, const char*); %End public: %If ( - KDE_3_1_4 ) - bool connectItem (const QString&, const QObject*, const char*, bool = 1); - bool connectItem (KStdAccel::StdAccel, const QObject*, const char*); + bool connectItem (const TQString&, const TQObject*, const char*, bool = 1); + bool connectItem (KStdAccel::StdAccel, const TQObject*, const char*); //force %ConvertToSubClassCode @@ -157,8 +157,8 @@ public: -%MappedType QMap<int,QString> -//converts a Python dict of int:QString +%MappedType TQMap<int,TQString> +//converts a Python dict of int:TQString { %TypeHeaderCode #include <kaccel.h> @@ -178,13 +178,13 @@ public: // Get it. - const QMap<int,QString> map = *sipCpp; - QMap<int,QString>::ConstIterator it; + const TQMap<int,TQString> map = *sipCpp; + TQMap<int,TQString>::ConstIterator it; for (it = map.begin (); it != map.end (); ++it) { PyObject *iKey = PyInt_FromLong (((long) it.key ())); - PyObject *sData = PyString_FromString ((char *)((QString *)&it.data ())); + PyObject *sData = PyString_FromString ((char *)((TQString *)&it.data ())); if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0)) { @@ -205,19 +205,19 @@ public: if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<int,QString> *map = new QMap<int,QString>; + TQMap<int,TQString> *map = new TQMap<int,TQString>; PyObject *key, *value; SIP_SSIZE_T pos = 0; int iKey; - QString *sData; + TQString *sData; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, sData_state; iKey = PyInt_AS_LONG (key); - sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + sData = (TQString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); if (iserr) { diff --git a/sip/tdecore/kaccelaction.sip b/sip/tdecore/kaccelaction.sip index 20947b6..2c88eb9 100644 --- a/sip/tdecore/kaccelaction.sip +++ b/sip/tdecore/kaccelaction.sip @@ -34,25 +34,25 @@ class KAccelAction public: KAccelAction (); KAccelAction (const KAccelAction&); - KAccelAction (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); + KAccelAction (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject*, const char*, bool, bool); void clear (); - bool init (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); - const QString& name () const; - const QString& label () const; - const QString& whatsThis () const; + bool init (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject*, const char*, bool, bool); + const TQString& name () const; + const TQString& label () const; + const TQString& whatsThis () const; const KShortcut& shortcut () const; const KShortcut& shortcutDefault () const; const KShortcut& shortcutDefault3 () const; const KShortcut& shortcutDefault4 () const; - const QObject* objSlotPtr () const; + const TQObject* objSlotPtr () const; const char* methodSlotPtr () const; bool isConfigurable () const; bool isEnabled () const; - void setName (const QString&); - void setLabel (const QString&); - void setWhatsThis (const QString&); + void setName (const TQString&); + void setLabel (const TQString&); + void setWhatsThis (const TQString&); bool setShortcut (const KShortcut&); - void setSlot (const QObject*, const char*); + void setSlot (const TQObject*, const char*); void setConfigurable (bool); void setEnabled (bool); int getID () const; @@ -61,8 +61,8 @@ public: bool setKeySequence (uint, const KKeySequence&); void clearShortcut (); bool contains (const KKeySequence&); - QString toString () const; - QString toStringInternal () const; + TQString toString () const; + TQString toStringInternal () const; static bool useFourModifierKeys (); static void useFourModifierKeys (bool); @@ -85,11 +85,11 @@ public: KAccelActions (const KAccelActions&); void clear (); bool init (const KAccelActions&); - bool init (KConfigBase&, const QString&); + bool init (KConfigBase&, const TQString&); void updateShortcuts (KAccelActions&); - int actionIndex (const QString&) const; + int actionIndex (const TQString&) const; KAccelAction* actionPtr (uint); - KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (const TQString&); KAccelAction* actionPtr (KKeySequence); %If ( KDE_3_1_4 - ) @@ -102,11 +102,11 @@ public: %End - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject* = 0, const char* = 0, bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&); - bool remove (const QString&); - bool readActions (const QString& = "Shortcuts", KConfigBase* = 0); - bool writeActions (const QString& = "Shortcuts", KConfigBase* = 0, bool = 0, bool = 0) const; + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject* = 0, const char* = 0, bool = 1, bool = 1); + KAccelAction* insert (const TQString&, const TQString&); + bool remove (const TQString&); + bool readActions (const TQString& = "Shortcuts", KConfigBase* = 0); + bool writeActions (const TQString& = "Shortcuts", KConfigBase* = 0, bool = 0, bool = 0) const; void emitKeycodeChanged (); uint count () const; diff --git a/sip/tdecore/kaccelbase.sip b/sip/tdecore/kaccelbase.sip index 334c6d8..55080e7 100644 --- a/sip/tdecore/kaccelbase.sip +++ b/sip/tdecore/kaccelbase.sip @@ -49,29 +49,29 @@ public: uint actionCount () const; KAccelActions& actions (); bool isEnabled () const; - KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (const TQString&); KAccelAction* actionPtr (const KKey&); KAccelAction* actionPtr (const KKeyServer::Key&); - const QString& configGroup () const; - void setConfigGroup (const QString&); + const TQString& configGroup () const; + void setConfigGroup (const TQString&); void setConfigGlobal (bool); virtual void setEnabled (bool) = 0; bool getAutoUpdate (); bool setAutoUpdate (bool); - KAccelAction* insert (const QString&, const QString&); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - bool remove (const QString&); - bool setActionSlot (const QString&, const QObject*, const char*); + KAccelAction* insert (const TQString&, const TQString&); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1); + bool remove (const TQString&); + bool setActionSlot (const TQString&, const TQObject*, const char*); bool updateConnections (); - bool setShortcut (const QString&, const KShortcut&); - bool setActionEnabled (const QString&, bool); + bool setShortcut (const TQString&, const KShortcut&); + bool setActionEnabled (const TQString&, bool); void readSettings (KConfigBase* = 0); void writeSettings (KConfigBase* = 0) const; - QPopupMenu* createPopupMenu (QWidget*, const KKeySequence&); + TQPopupMenu* createPopupMenu (TQWidget*, const KKeySequence&); protected: void slotRemoveAction (KAccelAction*); -//ig void createKeyList (QValueVector<structX>&); +//ig void createKeyList (TQValueVector<structX>&); bool insertConnection (KAccelAction*); bool removeConnection (KAccelAction*); virtual bool emitSignal (KAccelBase::Signal) = 0; @@ -89,7 +89,7 @@ protected: //ig class ActionInfo; -//ig typedef QMap<KKeyServer::Key,KAccelBase::ActionInfo> KKeyToActionMap; +//ig typedef TQMap<KKeyServer::Key,KAccelBase::ActionInfo> KKeyToActionMap; protected: diff --git a/sip/tdecore/kallocator.sip b/sip/tdecore/kallocator.sip index 7272123..73eb316 100644 --- a/sip/tdecore/kallocator.sip +++ b/sip/tdecore/kallocator.sip @@ -38,7 +38,7 @@ public: void free_since (void*); protected: -//ig typedef QValueList<KZoneAllocator::MemBlock*> MemList; +//ig typedef TQValueList<KZoneAllocator::MemBlock*> MemList; //ig void addBlock (KZoneAllocator::MemBlock*); //ig void delBlock (KZoneAllocator::MemBlock*); //ig void insertHash (KZoneAllocator::MemBlock*); diff --git a/sip/tdecore/kapplication.sip b/sip/tdecore/kapplication.sip index e91de01..e7ab9e1 100644 --- a/sip/tdecore/kapplication.sip +++ b/sip/tdecore/kapplication.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KApplication : QApplication, KInstance +class KApplication : TQApplication, KInstance { %TypeHeaderCode #include <kapplication.h> @@ -46,11 +46,11 @@ public: KApplication (bool = 1, bool = 1); %If ( KDE_3_3_0 - ) -//ig KApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1); +//ig KApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1); %End -//ig KApplication (Display*, int&, char**, const QCString&, bool = 1, bool = 1); - KApplication (SIP_PYLIST, QCString&, bool = 1, bool = 1) [(int&, char**, const QCString&, bool = 1, bool = 1)]; +//ig KApplication (Display*, int&, char**, const TQCString&, bool = 1, bool = 1); + KApplication (SIP_PYLIST, TQCString&, bool = 1, bool = 1) [(int&, char**, const TQCString&, bool = 1, bool = 1)]; %MethodCode //takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1) @@ -122,8 +122,8 @@ public: bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault ); void propagateSessionManager (); - void commitData (QSessionManager&); - void saveState (QSessionManager&); + void commitData (TQSessionManager&); + void saveState (TQSessionManager&); %If ( KDE_3_1_1 - ) bool sessionSaving () const; @@ -131,49 +131,49 @@ public: static DCOPClient* dcopClient (); static void disableAutoDcopRegistration (); - QPixmap icon () const; - QString iconName () const; - QPixmap miniIcon () const; - QString miniIconName () const; - void setTopWidget (QWidget*); + TQPixmap icon () const; + TQString iconName () const; + TQPixmap miniIcon () const; + TQString miniIconName () const; + void setTopWidget (TQWidget*); %If ( KDE_3_2_0 - ) - void invokeHelp (const QString&, const QString&, const QCString&) const; + void invokeHelp (const TQString&, const TQString&, const TQCString&) const; %End - void invokeHelp (const QString& = QString ::null , const QString& = QString ::null ) const; - void invokeHTMLHelp (const QString&, const QString& = QString ::null ) const; + void invokeHelp (const TQString& = TQString ::null , const TQString& = TQString ::null ) const; + void invokeHTMLHelp (const TQString&, const TQString& = TQString ::null ) const; %If ( KDE_3_2_0 - ) - void invokeMailer (const QString&, const QString&, const QCString&); + void invokeMailer (const TQString&, const TQString&, const TQCString&); %End - void invokeMailer (const QString&, const QString&); + void invokeMailer (const TQString&, const TQString&); %If ( KDE_3_3_0 - ) - void invokeMailer (const KURL&, const QCString&, bool); + void invokeMailer (const KURL&, const TQCString&, bool); %End %If ( KDE_3_2_0 - ) - void invokeMailer (const KURL&, const QCString&); + void invokeMailer (const KURL&, const TQCString&); %End void invokeMailer (const KURL&); %If ( KDE_3_2_0 - ) - void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QStringList&, const QCString&); + void invokeMailer (const TQString&, const TQString&, const TQString&, const TQString&, const TQString&, const TQString&, const TQStringList&, const TQCString&); %End - void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString& = QString ::null , const QStringList& = QStringList ()); + void invokeMailer (const TQString&, const TQString&, const TQString&, const TQString&, const TQString&, const TQString& = TQString ::null , const TQStringList& = TQStringList ()); public slots: %If ( KDE_3_2_0 - ) - void invokeBrowser (const QString&, const QCString&); + void invokeBrowser (const TQString&, const TQCString&); %End - void invokeBrowser (const QString&); + void invokeBrowser (const TQString&); %If ( KDE_3_2_0 - ) void cut (); @@ -185,45 +185,45 @@ public slots: public: - static QCString launcher (); - static int startServiceByName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopPath (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopPath (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static TQCString launcher (); + static int startServiceByName (const TQString&, const TQString&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); + static int startServiceByName (const TQString&, const TQStringList&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); + static int startServiceByDesktopPath (const TQString&, const TQString&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); + static int startServiceByDesktopPath (const TQString&, const TQStringList&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); + static int startServiceByDesktopName (const TQString&, const TQString&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); + static int startServiceByDesktopName (const TQString&, const TQStringList&, TQString* /Out/, TQCString* /Out/, int*, const TQCString& = TQCString ("" ), bool = 0); %If ( KDE_3_2_0 - ) - static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*, QCString&); + static int tdeinitExec (const TQString&, const TQStringList&, TQString* /Out/, int*, TQCString&); %End - static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*); + static int tdeinitExec (const TQString&, const TQStringList&, TQString* /Out/, int*); %If ( KDE_3_2_0 - ) - static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*, QCString&); + static int tdeinitExecWait (const TQString&, const TQStringList&, TQString* /Out/, int*, TQCString&); %End - static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*); - QString caption () const; + static int tdeinitExecWait (const TQString&, const TQStringList&, TQString* /Out/, int*); + TQString caption () const; //ig KStyle* kstyle () const; - QString makeStdCaption (const QString&, bool = 1, bool = 0) const; - QString tempSaveName (const QString&) const; - QString checkRecoverFile (const QString&, bool&) const; + TQString makeStdCaption (const TQString&, bool = 1, bool = 0) const; + TQString tempSaveName (const TQString&) const; + TQString checkRecoverFile (const TQString&, bool&) const; Display* getDisplay (); void enableStyles (); void disableStyles (); - void installX11EventFilter (QWidget*); + void installX11EventFilter (TQWidget*); %If ( KDE_3_2_0 - ) - void removeX11EventFilter (const QWidget*); + void removeX11EventFilter (const TQWidget*); %End static int random (); - static QString randomString (int); + static TQString randomString (int); void addKipcEventMask (int); void removeKipcEventMask (int); - QCString startupId () const; - void setStartupId (const QCString&); + TQCString startupId () const; + void setStartupId (const TQCString&); %If ( KDE_3_2_0 - ) void updateUserTimestamp (ulong = 0); @@ -232,25 +232,25 @@ public: ulong userTimestamp () const; %If ( KDE_3_3_0 - ) - void updateRemoteUserTimestamp (const QCString&, ulong = 0); + void updateRemoteUserTimestamp (const TQCString&, ulong = 0); %End %End %End - QString geometryArgument () const; + TQString geometryArgument () const; void installKDEPropertyMap (); - bool authorize (const QString&); + bool authorize (const TQString&); bool authorizeKAction (const char*); %If ( KDE_3_1_0 - ) - bool authorizeURLAction (const QString&, const KURL&, const KURL&); + bool authorizeURLAction (const TQString&, const KURL&, const KURL&); %If ( KDE_3_2_0 - ) - void allowURLAction (const QString&, const KURL&, const KURL&); - bool authorizeControlModule (const QString&); - QStringList authorizeControlModules (const QStringList&); + void allowURLAction (const TQString&, const KURL&, const KURL&); + bool authorizeControlModule (const TQString&); + TQStringList authorizeControlModules (const TQStringList&); %If ( KDE_3_4_0 - ) static ButtonState keyboardMouseState (); @@ -294,7 +294,7 @@ protected: KApplication (bool, bool, KInstance*); %If ( KDE_3_3_0 - ) -//ig KApplication (Display*, Qt::HANDLE, Qt::HANDLE, bool, KInstance*); +//ig KApplication (Display*, TQt::HANDLE, TQt::HANDLE, bool, KInstance*); %End //ig bool x11EventFilter (XEvent*); @@ -305,7 +305,7 @@ protected: public: - bool notify (QObject*, QEvent*); + bool notify (TQObject*, TQEvent*); %If ( KDE_3_2_0 - ) //ig int xErrhandler (Display*, void*); @@ -332,8 +332,8 @@ public: %If ( KDE_3_1_0 - ) - static QPalette createApplicationPalette (); - static QPalette createApplicationPalette (KConfig*, int); + static TQPalette createApplicationPalette (); + static TQPalette createApplicationPalette (KConfig*, int); %If ( KDE_3_2_0 - ) static void installSigpipeHandler (); @@ -381,8 +381,8 @@ class KSessionManaged public: KSessionManaged (); - virtual bool saveState (QSessionManager&); - virtual bool commitData (QSessionManager&); + virtual bool saveState (TQSessionManager&); + virtual bool commitData (TQSessionManager&); protected: //igx virtual void virtual_hook (int, void*); @@ -391,7 +391,7 @@ protected: typedef ulong Atom; //ig typedef void Display; -//ig bool checkAccess (const QString&, int); +//ig bool checkAccess (const TQString&, int); %ModuleCode diff --git a/sip/tdecore/kasyncio.sip b/sip/tdecore/kasyncio.sip index 3c716df..05804d5 100644 --- a/sip/tdecore/kasyncio.sip +++ b/sip/tdecore/kasyncio.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KAsyncIO : QObject, QIODevice +class KAsyncIO : TQObject, TQIODevice { %TypeHeaderCode #include <kasyncio.h> diff --git a/sip/tdecore/kaudioplayer.sip b/sip/tdecore/kaudioplayer.sip index e211058..167adf8 100644 --- a/sip/tdecore/kaudioplayer.sip +++ b/sip/tdecore/kaudioplayer.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KAudioPlayer : QObject +class KAudioPlayer : TQObject { %TypeHeaderCode #include <kaudioplayer.h> @@ -32,8 +32,8 @@ class KAudioPlayer : QObject public: - KAudioPlayer (const QString&, QObject* /TransferThis/ = 0, const char* = 0); - static void play (const QString&); + KAudioPlayer (const TQString&, TQObject* /TransferThis/ = 0, const char* = 0); + static void play (const TQString&); public slots: void play (); diff --git a/sip/tdecore/kcalendarsystem.sip b/sip/tdecore/kcalendarsystem.sip index 0cd4023..7839dc1 100644 --- a/sip/tdecore/kcalendarsystem.sip +++ b/sip/tdecore/kcalendarsystem.sip @@ -35,36 +35,36 @@ class KCalendarSystem public: KCalendarSystem (const KLocale* = 0); - virtual int year (const QDate&) const = 0; - virtual QString yearString (const QDate&, bool) const; - virtual int yearStringToInteger (const QString&, int& /Out/) const; - virtual int month (const QDate&) const = 0; - virtual QString monthString (const QDate&, bool) const; - virtual int monthStringToInteger (const QString&, int& /Out/) const; - virtual int day (const QDate&) const = 0; - virtual QString dayString (const QDate&, bool) const; - virtual int dayStringToInteger (const QString&, int& /Out/) const; - virtual int dayOfWeek (const QDate&) const = 0; - virtual int dayOfYear (const QDate&) const = 0; - virtual bool setYMD (QDate&, int, int, int) const = 0; - virtual QDate addYears (const QDate&, int) const = 0; - virtual QDate addMonths (const QDate&, int) const = 0; - virtual QDate addDays (const QDate&, int) const = 0; - virtual int monthsInYear (const QDate&) const = 0; - virtual int daysInYear (const QDate&) const = 0; - virtual int daysInMonth (const QDate&) const = 0; + virtual int year (const TQDate&) const = 0; + virtual TQString yearString (const TQDate&, bool) const; + virtual int yearStringToInteger (const TQString&, int& /Out/) const; + virtual int month (const TQDate&) const = 0; + virtual TQString monthString (const TQDate&, bool) const; + virtual int monthStringToInteger (const TQString&, int& /Out/) const; + virtual int day (const TQDate&) const = 0; + virtual TQString dayString (const TQDate&, bool) const; + virtual int dayStringToInteger (const TQString&, int& /Out/) const; + virtual int dayOfWeek (const TQDate&) const = 0; + virtual int dayOfYear (const TQDate&) const = 0; + virtual bool setYMD (TQDate&, int, int, int) const = 0; + virtual TQDate addYears (const TQDate&, int) const = 0; + virtual TQDate addMonths (const TQDate&, int) const = 0; + virtual TQDate addDays (const TQDate&, int) const = 0; + virtual int monthsInYear (const TQDate&) const = 0; + virtual int daysInYear (const TQDate&) const = 0; + virtual int daysInMonth (const TQDate&) const = 0; virtual int weeksInYear (int) const = 0; - virtual int weekNumber (const QDate&, int* = 0) const = 0; - virtual QString monthName (int, int, bool = 0) const = 0; - virtual QString monthName (const QDate&, bool = 0) const = 0; - virtual QString monthNamePossessive (int, int, bool = 0) const = 0; - virtual QString monthNamePossessive (const QDate&, bool = 0) const = 0; - virtual QString weekDayName (int, bool = 0) const = 0; - virtual QString weekDayName (const QDate&, bool = 0) const = 0; + virtual int weekNumber (const TQDate&, int* = 0) const = 0; + virtual TQString monthName (int, int, bool = 0) const = 0; + virtual TQString monthName (const TQDate&, bool = 0) const = 0; + virtual TQString monthNamePossessive (int, int, bool = 0) const = 0; + virtual TQString monthNamePossessive (const TQDate&, bool = 0) const = 0; + virtual TQString weekDayName (int, bool = 0) const = 0; + virtual TQString weekDayName (const TQDate&, bool = 0) const = 0; virtual int minValidYear () const = 0; virtual int maxValidYear () const = 0; virtual int weekDayOfPray () const = 0; - virtual QString calendarName () const = 0; + virtual TQString calendarName () const = 0; virtual bool isLunar () const = 0; virtual bool isLunisolar () const = 0; virtual bool isSolar () const = 0; diff --git a/sip/tdecore/kcalendarsystemfactory.sip b/sip/tdecore/kcalendarsystemfactory.sip index 20c4f35..3774c0e 100644 --- a/sip/tdecore/kcalendarsystemfactory.sip +++ b/sip/tdecore/kcalendarsystemfactory.sip @@ -35,8 +35,8 @@ class KCalendarSystemFactory public: KCalendarSystemFactory (); - static KCalendarSystem* create (const QString& = QString ::fromLatin1 ("gregorian" ), const KLocale* = 0); - static QStringList calendarSystems (); + static KCalendarSystem* create (const TQString& = TQString ::fromLatin1 ("gregorian" ), const KLocale* = 0); + static TQStringList calendarSystems (); }; // class KCalendarSystemFactory diff --git a/sip/tdecore/kcatalogue.sip b/sip/tdecore/kcatalogue.sip index 3469af8..d8f2a88 100644 --- a/sip/tdecore/kcatalogue.sip +++ b/sip/tdecore/kcatalogue.sip @@ -34,14 +34,14 @@ class KCatalogue public: %If ( KDE_3_3_0 - ) - KCatalogue (const QString& = QString ::null , const QString& = QString ::null ); + KCatalogue (const TQString& = TQString ::null , const TQString& = TQString ::null ); %End KCatalogue (const KCatalogue&); - QString name () const; + TQString name () const; %If ( KDE_3_3_0 - ) - QString language () const; + TQString language () const; int pluralType () const; void setPluralType (int); %End @@ -53,8 +53,8 @@ public: %If ( - KDE_3_3_0 ) %If ( D_MANDRAKE ) - KCatalogue (const QString& = QString ::null ); - void setFileName (const QString&); + KCatalogue (const TQString& = TQString ::null ); + void setFileName (const TQString&); %End %End diff --git a/sip/tdecore/kcharsets.sip b/sip/tdecore/kcharsets.sip index 9be4386..fca3432 100644 --- a/sip/tdecore/kcharsets.sip +++ b/sip/tdecore/kcharsets.sip @@ -35,26 +35,26 @@ protected: KCharsets (); public: - QTextCodec* codecForName (const QString&) const; - QTextCodec* codecForName (const QString&, bool& /Out/) const /PyName=codecForName2/; - QChar fromEntity (const QString&) const; - QChar fromEntity (const QString&, int& /Out/) const /PyName=fromEntity2/; - QString toEntity (const QChar&) const; + TQTextCodec* codecForName (const TQString&) const; + TQTextCodec* codecForName (const TQString&, bool& /Out/) const /PyName=codecForName2/; + TQChar fromEntity (const TQString&) const; + TQChar fromEntity (const TQString&, int& /Out/) const /PyName=fromEntity2/; + TQString toEntity (const TQChar&) const; %If ( KDE_3_1_0 - ) - static QString resolveEntities (const QString&); + static TQString resolveEntities (const TQString&); %End - QStringList availableEncodingNames (); - QStringList descriptiveEncodingNames (); - QString languageForEncoding (const QString&); - QString encodingForName (const QString&); + TQStringList availableEncodingNames (); + TQStringList descriptiveEncodingNames (); + TQString languageForEncoding (const TQString&); + TQString encodingForName (const TQString&); public: %If ( - KDE_3_2_0 ) -//ig QStringList languages (); -//ig QStringList encodingsForLanguage (const QString&); +//ig TQStringList languages (); +//ig TQStringList encodingsForLanguage (const TQString&); %End diff --git a/sip/tdecore/kclipboard.sip b/sip/tdecore/kclipboard.sip index 4abc45a..895cc90 100644 --- a/sip/tdecore/kclipboard.sip +++ b/sip/tdecore/kclipboard.sip @@ -26,7 +26,7 @@ %If ( KDE_3_1_0 - ) -class KClipboardSynchronizer : QObject +class KClipboardSynchronizer : TQObject { %TypeHeaderCode #include <kclipboard.h> @@ -44,7 +44,7 @@ protected: ~KClipboardSynchronizer (); private: - KClipboardSynchronizer (QObject* /TransferThis/ = 0, const char* = 0); + KClipboardSynchronizer (TQObject* /TransferThis/ = 0, const char* = 0); }; // class KClipboardSynchronizer diff --git a/sip/tdecore/kcmdlineargs.sip b/sip/tdecore/kcmdlineargs.sip index c9831f6..afb4cef 100644 --- a/sip/tdecore/kcmdlineargs.sip +++ b/sip/tdecore/kcmdlineargs.sip @@ -139,7 +139,7 @@ public: //doc // A Pytbon list of tuples (name, description, default) is the first parameter // instead of a KCmdLineOptions object (KCmdLineOptions is not used); -// NULL (or None) parameters to mark the end of the list are not required +// NULL (or None) parameters to mark the end of the list are not retquired //end int n; @@ -218,15 +218,15 @@ errorExit: %End static KCmdLineArgs* parsedArgs (const char* = 0); - static QString cwd (); + static TQString cwd (); static const char* appName (); static void usage (const char* = 0); - static void usage (const QString&); + static void usage (const TQString&); static void enable_i18n (); - QCString getOption (const char*); + TQCString getOption (const char*); %If ( KDE_3_1_4 - ) - QCStringList getOptionList (const char*) const; + TQCStringList getOptionList (const char*) const; %End bool isSet (const char*); @@ -239,7 +239,7 @@ errorExit: %If ( KDE_3_2_0 - ) static void reset (); - static void loadAppArgs (QDataStream&); + static void loadAppArgs (TQDataStream&); %If ( KDE_3_4_0 - ) static void addTempFileOption (); @@ -256,7 +256,7 @@ protected: public: %If ( - KDE_3_1_3 ) - QValueList<QCString> getOptionList (const char*); + TQValueList<TQCString> getOptionList (const char*); %End diff --git a/sip/tdecore/kcompletion.sip b/sip/tdecore/kcompletion.sip index 268480d..4967a6d 100644 --- a/sip/tdecore/kcompletion.sip +++ b/sip/tdecore/kcompletion.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KCompletion : QObject +class KCompletion : TQObject { %TypeHeaderCode #include <kcompletion.h> @@ -41,12 +41,12 @@ public: }; KCompletion (); - virtual QString makeCompletion (const QString&); - QStringList substringCompletion (const QString&) const; - QString previousMatch (); - QString nextMatch (); - virtual const QString& lastMatch () const; - QStringList items () const; + virtual TQString makeCompletion (const TQString&); + TQStringList substringCompletion (const TQString&) const; + TQString previousMatch (); + TQString nextMatch (); + virtual const TQString& lastMatch () const; + TQStringList items () const; %If ( KDE_3_3_0 - ) bool isEmpty () const; @@ -58,10 +58,10 @@ public: CompOrder order () const; virtual void setIgnoreCase (bool); bool ignoreCase () const; - QStringList allMatches (); - QStringList allMatches (const QString&); + TQStringList allMatches (); + TQStringList allMatches (const TQString&); //ig KCompletionMatches allWeightedMatches (); -//ig KCompletionMatches allWeightedMatches (const QString&); +//ig KCompletionMatches allWeightedMatches (const TQString&); virtual void setEnableSounds (bool); bool isSoundsEnabled () const; bool hasMultipleMatches () const; @@ -69,24 +69,24 @@ public: void disableSounds (); public slots: - void slotMakeCompletion (const QString&); + void slotMakeCompletion (const TQString&); void slotPreviousMatch (); void slotNextMatch (); - void insertItems (const QStringList&); - virtual void setItems (const QStringList&); - void addItem (const QString&); - void addItem (const QString&, uint); - void removeItem (const QString&); + void insertItems (const TQStringList&); + virtual void setItems (const TQStringList&); + void addItem (const TQString&); + void addItem (const TQString&, uint); + void removeItem (const TQString&); virtual void clear (); signals: - void match (const QString&); - void matches (const QStringList&); + void match (const TQString&); + void matches (const TQStringList&); void multipleMatches (); protected: - virtual void postProcessMatch (QString*); - virtual void postProcessMatches (QStringList*); + virtual void postProcessMatch (TQString*); + virtual void postProcessMatches (TQStringList*); //ig virtual void postProcessMatches (KCompletionMatches*) const; protected: @@ -115,7 +115,7 @@ public: SubstringCompletion }; - typedef QMap<KCompletionBase::KeyBindingType,KShortcut> KeyBindingMap; + typedef TQMap<KCompletionBase::KeyBindingType,KShortcut> KeyBindingMap; KCompletionBase (); KCompletion* completionObject (bool = 1); virtual void setCompletionObject (KCompletion*, bool = 1); @@ -130,8 +130,8 @@ public: bool setKeyBinding (KCompletionBase::KeyBindingType, const KShortcut&); const KShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; void useGlobalKeyBindings (); - virtual void setCompletedText (const QString&) = 0; - virtual void setCompletedItems (const QStringList&) = 0; + virtual void setCompletedText (const TQString&) = 0; + virtual void setCompletedItems (const TQStringList&) = 0; KCompletion* compObj () const; protected: @@ -144,7 +144,7 @@ protected: }; // class KCompletionBase -//ig typedef KSortableValueList<QString> KCompletionMatchesList; +//ig typedef KSortableValueList<TQString> KCompletionMatchesList; %MappedType KCompletionBase::KeyBindingMap @@ -167,8 +167,8 @@ protected: // Get it. - const QMap<KCompletionBase::KeyBindingType,KShortcut> map = *sipCpp; - QMap<KCompletionBase::KeyBindingType,KShortcut>::ConstIterator it; + const TQMap<KCompletionBase::KeyBindingType,KShortcut> map = *sipCpp; + TQMap<KCompletionBase::KeyBindingType,KShortcut>::ConstIterator it; PyObject *key; PyObject *value; @@ -197,7 +197,7 @@ protected: if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new QMap<KCompletionBase::KeyBindingType,KShortcut>; + TQMap<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new TQMap<KCompletionBase::KeyBindingType,KShortcut>; PyObject *key, *value; SIP_SSIZE_T pos = 0; diff --git a/sip/tdecore/kconfig.sip b/sip/tdecore/kconfig.sip index ed09152..1458aa6 100644 --- a/sip/tdecore/kconfig.sip +++ b/sip/tdecore/kconfig.sip @@ -32,25 +32,25 @@ class KConfig : KConfigBase public: - KConfig (const QString& = QString ::null , bool = 0, bool = 1, const char* = "config"); + KConfig (const TQString& = TQString ::null , bool = 0, bool = 1, const char* = "config"); %If ( KDE_3_2_0 - ) KConfig (KConfigBackEnd*, bool = 0); %End virtual void rollback (bool = 1); - virtual QStringList groupList () const; - virtual QMap<QString,QString> entryMap (const QString&) const; + virtual TQStringList groupList () const; + virtual TQMap<TQString,TQString> entryMap (const TQString&) const; virtual void reparseConfiguration (); void setFileWriteMode (int); void setForceGlobal (bool); bool forceGlobal () const; %If ( KDE_3_1_0 - ) - void checkUpdate (const QString&, const QString&); + void checkUpdate (const TQString&, const TQString&); %If ( KDE_3_2_0 - ) - KConfig* copyTo (const QString&, KConfig* = 0) const; + KConfig* copyTo (const TQString&, KConfig* = 0) const; %If ( KDE_3_3_0 - ) KLockFile::Ptr lockFile (bool = 0); @@ -62,8 +62,8 @@ public: protected: - virtual bool internalHasGroup (const QCString&) const; - virtual KEntryMap internalEntryMap (const QString&) const; + virtual bool internalHasGroup (const TQCString&) const; + virtual KEntryMap internalEntryMap (const TQString&) const; virtual KEntryMap internalEntryMap () const; virtual void putData (const KEntryKey&, const KEntry&, bool = 1); virtual KEntry lookupData (const KEntryKey&) const; @@ -90,10 +90,10 @@ public: //ig typedef KSharedPtr<KSharedConfig> Ptr; public: - static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); + static KSharedConfig::Ptr openConfig (const TQString&, bool = 0, bool = 1); private: - KSharedConfig (const QString&, bool, bool); + KSharedConfig (const TQString&, bool, bool); ~KSharedConfig (); }; // class KSharedConfig @@ -102,8 +102,8 @@ private: -%MappedType QMap<QString,QString> -//converts a Python dict of QString:QString +%MappedType TQMap<TQString,TQString> +//converts a Python dict of TQString:TQString { %TypeHeaderCode #include <qmap.h> @@ -124,17 +124,17 @@ private: // Get it. - const QMap<QString,QString> cppmap = *sipCpp; - QMap<QString,QString>::ConstIterator it; + const TQMap<TQString,TQString> cppmap = *sipCpp; + TQMap<TQString,TQString>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); - QString bcpp = it.data (); + TQString acpp = it.key (); + TQString bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQString(bcpp), sipType_QString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -149,24 +149,24 @@ private: %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,QString> *cppmap = new QMap<QString,QString>; + TQMap<TQString,TQString> *cppmap = new TQMap<TQString,TQString>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QString *bcpp; + TQString *acpp; + TQString *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state, bcpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); if (iserr) { diff --git a/sip/tdecore/kconfigbackend.sip b/sip/tdecore/kconfigbackend.sip index ca10d9e..f7569cb 100644 --- a/sip/tdecore/kconfigbackend.sip +++ b/sip/tdecore/kconfigbackend.sip @@ -32,14 +32,14 @@ class KConfigBackEnd public: - KConfigBackEnd (KConfigBase*, const QString&, const char*, bool); + KConfigBackEnd (KConfigBase*, const TQString&, const char*, bool); virtual bool parseConfigFiles () = 0; virtual void sync (bool = 1) = 0; - void changeFileName (const QString&, const char*, bool); + void changeFileName (const TQString&, const char*, bool); virtual KConfigBase::ConfigState getConfigState () const; - QString fileName () const; + TQString fileName () const; const char* resource () const; - void setLocaleString (const QCString&); + void setLocaleString (const TQCString&); void setFileWriteMode (int); %If ( KDE_3_2_0 - ) @@ -51,7 +51,7 @@ public: %End - QString filename () const; + TQString filename () const; protected: @@ -72,16 +72,16 @@ class KConfigINIBackEnd : KConfigBackEnd public: - KConfigINIBackEnd (KConfigBase*, const QString&, const char*, bool = 1); + KConfigINIBackEnd (KConfigBase*, const TQString&, const char*, bool = 1); bool parseConfigFiles (); virtual void sync (bool = 1); protected: - void parseSingleConfigFile (QFile&, KEntryMap* = 0, bool = 0, bool = 0); - bool writeConfigFile (QString, bool = 0, bool = 1); + void parseSingleConfigFile (TQFile&, KEntryMap* = 0, bool = 0, bool = 0); + bool writeConfigFile (TQString, bool = 0, bool = 1); %If ( KDE_3_2_0 - ) - bool getEntryMap (KEntryMap&, bool, QFile*); + bool getEntryMap (KEntryMap&, bool, TQFile*); //ig void writeEntries (FILE*, const KEntryMap&); %End diff --git a/sip/tdecore/kconfigbase.sip b/sip/tdecore/kconfigbase.sip index cde14d9..5508ddf 100644 --- a/sip/tdecore/kconfigbase.sip +++ b/sip/tdecore/kconfigbase.sip @@ -30,7 +30,7 @@ typedef unsigned long long ulonglong; %End -class KConfigBase : QObject +class KConfigBase : TQObject { %TypeHeaderCode #include <kconfigbase.h> @@ -39,118 +39,118 @@ class KConfigBase : QObject public: KConfigBase (); - void setGroup (const QString&); + void setGroup (const TQString&); void setDesktopGroup (); - QString group () const; - bool hasGroup (const QString&) const; - virtual QStringList groupList () const = 0; - QString locale () const; - QString readEntry (const QString&, const QString& = QString ::null ) const; - QString readEntry (const char*, const QString& = QString ::null ) const; - QVariant readPropertyEntry (const QString&, QVariant::Type) const; - QVariant readPropertyEntry (const char*, QVariant::Type) const; - QVariant readPropertyEntry (const QString&, const QVariant&) const; - QVariant readPropertyEntry (const char*, const QVariant&) const; - int readListEntry (const QString&, QStrList&, char = ',') const; - int readListEntry (const char*, QStrList&, char = ',') const; - QStringList readListEntry (const QString&, char = ',') const; - QStringList readListEntry (const char*, char = ',') const; + TQString group () const; + bool hasGroup (const TQString&) const; + virtual TQStringList groupList () const = 0; + TQString locale () const; + TQString readEntry (const TQString&, const TQString& = TQString ::null ) const; + TQString readEntry (const char*, const TQString& = TQString ::null ) const; + TQVariant readPropertyEntry (const TQString&, TQVariant::Type) const; + TQVariant readPropertyEntry (const char*, TQVariant::Type) const; + TQVariant readPropertyEntry (const TQString&, const TQVariant&) const; + TQVariant readPropertyEntry (const char*, const TQVariant&) const; + int readListEntry (const TQString&, TQStrList&, char = ',') const; + int readListEntry (const char*, TQStrList&, char = ',') const; + TQStringList readListEntry (const TQString&, char = ',') const; + TQStringList readListEntry (const char*, char = ',') const; %If ( KDE_3_3_0 - ) - QStringList readListEntry (const char*, const QStringList&, char = ',') const; + TQStringList readListEntry (const char*, const TQStringList&, char = ',') const; %End - QValueList<int> readIntListEntry (const QString&) const; - QValueList<int> readIntListEntry (const char*) const; - QString readPathEntry (const QString&, const QString& = QString ::null ) const; - QString readPathEntry (const char*, const QString& = QString ::null ) const; + TQValueList<int> readIntListEntry (const TQString&) const; + TQValueList<int> readIntListEntry (const char*) const; + TQString readPathEntry (const TQString&, const TQString& = TQString ::null ) const; + TQString readPathEntry (const char*, const TQString& = TQString ::null ) const; %If ( KDE_3_1_3 - ) - QStringList readPathListEntry (const QString&, char = ',') const; - QStringList readPathListEntry (const char*, char = ',') const; + TQStringList readPathListEntry (const TQString&, char = ',') const; + TQStringList readPathListEntry (const char*, char = ',') const; %End - int readNumEntry (const QString&, int = 0) const; + int readNumEntry (const TQString&, int = 0) const; int readNumEntry (const char*, int = 0) const; - uint readUnsignedNumEntry (const QString&, uint = 0) const; + uint readUnsignedNumEntry (const TQString&, uint = 0) const; uint readUnsignedNumEntry (const char*, uint = 0) const; - long readLongNumEntry (const QString&, long = 0) const; + long readLongNumEntry (const TQString&, long = 0) const; long readLongNumEntry (const char*, long = 0) const; - ulong readUnsignedLongNumEntry (const QString&, ulong = 0) const; + ulong readUnsignedLongNumEntry (const TQString&, ulong = 0) const; ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; %If ( KDE_3_2_0 - ) - longlong readNum64Entry (const QString&, longlong = 0) const; + longlong readNum64Entry (const TQString&, longlong = 0) const; longlong readNum64Entry (const char*, longlong = 0) const; - ulonglong readUnsignedNum64Entry (const QString&, ulonglong = 0) const; + ulonglong readUnsignedNum64Entry (const TQString&, ulonglong = 0) const; ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; %End - double readDoubleNumEntry (const QString&, double = 0.0) const; + double readDoubleNumEntry (const TQString&, double = 0.0) const; double readDoubleNumEntry (const char*, double = 0.0) const; - QFont readFontEntry (const QString&, const QFont* = 0) const; - QFont readFontEntry (const char*, const QFont* = 0) const; - bool readBoolEntry (const QString&, const bool = 0) const; + TQFont readFontEntry (const TQString&, const TQFont* = 0) const; + TQFont readFontEntry (const char*, const TQFont* = 0) const; + bool readBoolEntry (const TQString&, const bool = 0) const; bool readBoolEntry (const char*, const bool = 0) const; - QRect readRectEntry (const QString&, const QRect* = 0) const; - QRect readRectEntry (const char*, const QRect* = 0) const; - QPoint readPointEntry (const QString&, const QPoint* = 0) const; - QPoint readPointEntry (const char*, const QPoint* = 0) const; - QSize readSizeEntry (const QString&, const QSize* = 0) const; - QSize readSizeEntry (const char*, const QSize* = 0) const; - QColor readColorEntry (const QString&, const QColor* = 0) const; - QColor readColorEntry (const char*, const QColor* = 0) const; - QDateTime readDateTimeEntry (const QString&, const QDateTime* = 0) const; - QDateTime readDateTimeEntry (const char*, const QDateTime* = 0) const; - QString readEntryUntranslated (const QString&, const QString& = QString ::null ) const; - QString readEntryUntranslated (const char*, const QString& = QString ::null ) const; - void writeEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QValueList<int>&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QValueList<int>&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const char*, bool = 1, bool = 0, bool = 0); + TQRect readRectEntry (const TQString&, const TQRect* = 0) const; + TQRect readRectEntry (const char*, const TQRect* = 0) const; + TQPoint readPointEntry (const TQString&, const TQPoint* = 0) const; + TQPoint readPointEntry (const char*, const TQPoint* = 0) const; + TQSize readSizeEntry (const TQString&, const TQSize* = 0) const; + TQSize readSizeEntry (const char*, const TQSize* = 0) const; + TQColor readColorEntry (const TQString&, const TQColor* = 0) const; + TQColor readColorEntry (const char*, const TQColor* = 0) const; + TQDateTime readDateTimeEntry (const TQString&, const TQDateTime* = 0) const; + TQDateTime readDateTimeEntry (const char*, const TQDateTime* = 0) const; + TQString readEntryUntranslated (const TQString&, const TQString& = TQString ::null ) const; + TQString readEntryUntranslated (const char*, const TQString& = TQString ::null ) const; + void writeEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQValueList<int>&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQValueList<int>&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const char*, bool = 1, bool = 0, bool = 0); void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, int, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, int, bool = 1, bool = 0, bool = 0); void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); %If ( KDE_3_2_0 - ) - void writeEntry (const QString&, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, longlong, bool = 1, bool = 0, bool = 0); void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, ulonglong, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, ulonglong, bool = 1, bool = 0, bool = 0); void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); %End -//ig void writeEntry (const QString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); +//ig void writeEntry (const TQString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); //ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); - void writeEntry (const QString&, const QFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QSize&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QSize&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQSize&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQSize&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); %If ( KDE_3_1_3 - ) - void writePathEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writePathEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); %End - void deleteEntry (const QString&, bool = 0, bool = 0); + void deleteEntry (const TQString&, bool = 0, bool = 0); void deleteEntry (const char*, bool = 0, bool = 0); - bool deleteGroup (const QString&, bool = 1, bool = 0); + bool deleteGroup (const TQString&, bool = 1, bool = 0); void setDollarExpansion (bool = 1); bool isDollarExpansion () const; virtual void rollback (bool = 1); @@ -158,12 +158,12 @@ public: bool isDirty () const; virtual void setReadOnly (bool); bool isReadOnly () const; - bool hasKey (const QString&) const; - virtual QMap<QString,QString> entryMap (const QString&) const = 0; + bool hasKey (const TQString&) const; + virtual TQMap<TQString,TQString> entryMap (const TQString&) const = 0; virtual void reparseConfiguration () = 0; bool isImmutable () const; - bool groupIsImmutable (const QString&) const; - bool entryIsImmutable (const QString&) const; + bool groupIsImmutable (const TQString&) const; + bool entryIsImmutable (const TQString&) const; enum ConfigState { @@ -178,8 +178,8 @@ public: bool checkConfigFilesWritable (bool); void setReadDefaults (bool); bool readDefaults () const; - void revertToDefault (const QString&); - bool hasDefault (const QString&) const; + void revertToDefault (const TQString&); + bool hasDefault (const TQString&) const; %End @@ -187,21 +187,21 @@ protected: void setLocale (); virtual void setDirty (bool = 1); virtual void parseConfigFiles (); - virtual KEntryMap internalEntryMap (const QString&) const = 0; + virtual KEntryMap internalEntryMap (const TQString&) const = 0; virtual KEntryMap internalEntryMap () const = 0; virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; virtual KEntry lookupData (const KEntryKey&) const = 0; - virtual bool internalHasGroup (const QCString&) const = 0; + virtual bool internalHasGroup (const TQCString&) const = 0; public: - void setGroup (const QCString&); + void setGroup (const TQCString&); void setGroup (const char*); - bool hasGroup (const QCString&) const; + bool hasGroup (const TQCString&) const; bool hasGroup (const char*) const; bool hasKey (const char*) const; protected: - QCString readEntryUtf8 (const char*) const; + TQCString readEntryUtf8 (const char*) const; protected: //igx virtual void virtual_hook (int, void*); @@ -217,9 +217,9 @@ class KConfigGroupSaver public: - KConfigGroupSaver (KConfigBase*, QString); + KConfigGroupSaver (KConfigBase*, TQString); KConfigGroupSaver (KConfigBase*, const char*); - KConfigGroupSaver (KConfigBase*, const QCString&); + KConfigGroupSaver (KConfigBase*, const TQCString&); KConfigBase* config (); private: @@ -236,8 +236,8 @@ class KConfigGroup : KConfigBase public: - KConfigGroup (KConfigBase*, const QCString&); - KConfigGroup (KConfigBase*, const QString&); + KConfigGroup (KConfigBase*, const TQCString&); + KConfigGroup (KConfigBase*, const TQString&); KConfigGroup (KConfigBase*, const char*); void deleteGroup (bool = 0); diff --git a/sip/tdecore/kconfigdata.sip b/sip/tdecore/kconfigdata.sip index b22ef03..c15d495 100644 --- a/sip/tdecore/kconfigdata.sip +++ b/sip/tdecore/kconfigdata.sip @@ -33,7 +33,7 @@ class KEntry public: KEntry (); - QCString mValue; + TQCString mValue; bool bDirty; bool bNLS; bool bGlobal; @@ -56,22 +56,22 @@ class KEntryKey public: - KEntryKey (const QCString& = QCString ("" ), const QCString& = QCString ("" )); - QCString mGroup; - QCString mKey; + KEntryKey (const TQCString& = TQCString ("" ), const TQCString& = TQCString ("" )); + TQCString mGroup; + TQCString mKey; bool bLocal; bool bDefault; const char* c_key; }; // class KEntryKey -//ig typedef QMap<KEntryKey,KEntry>::Iterator KEntryMapIterator; -//ig typedef QMap<KEntryKey,KEntry>::ConstIterator KEntryMapConstIterator; +//ig typedef TQMap<KEntryKey,KEntry>::Iterator KEntryMapIterator; +//ig typedef TQMap<KEntryKey,KEntry>::ConstIterator KEntryMapConstIterator; //force KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; %MethodCode //takes dict | (KEntryMap) -//returns (QMap<KEntryKey,KEntry) +//returns (TQMap<KEntryKey,KEntry) int isErr = 0; KEntryMap *map = (KEntryMap *)sipForceConvertToType(a0, sipType_KEntryMap, NULL, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &isErr); @@ -133,7 +133,7 @@ KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); diff --git a/sip/tdecore/kconfigdialogmanager.sip b/sip/tdecore/kconfigdialogmanager.sip index 5c97582..5d4575c 100644 --- a/sip/tdecore/kconfigdialogmanager.sip +++ b/sip/tdecore/kconfigdialogmanager.sip @@ -26,7 +26,7 @@ %If ( KDE_3_2_0 - ) -class KConfigDialogManager : QObject +class KConfigDialogManager : TQObject { %TypeHeaderCode #include <kconfigdialogmanager.h> @@ -35,12 +35,12 @@ class KConfigDialogManager : QObject signals: void settingsChanged (); - void settingsChanged (QWidget*); + void settingsChanged (TQWidget*); void widgetModified (); public: - KConfigDialogManager (QWidget* /TransferThis/, KConfigSkeleton*, const char* = 0); - void addWidget (QWidget*); + KConfigDialogManager (TQWidget* /TransferThis/, KConfigSkeleton*, const char* = 0); + void addWidget (TQWidget*); bool hasChanged (); bool isDefault (); @@ -51,10 +51,10 @@ public slots: protected: void init (bool); - bool parseChildren (const QWidget*, bool); - void setProperty (QWidget*, const QVariant&); - QVariant property (QWidget*); - void setupWidget (QWidget*, KConfigSkeletonItem*); + bool parseChildren (const TQWidget*, bool); + void setProperty (TQWidget*, const TQVariant&); + TQVariant property (TQWidget*); + void setupWidget (TQWidget*, KConfigSkeletonItem*); protected: diff --git a/sip/tdecore/kconfigskeleton.sip b/sip/tdecore/kconfigskeleton.sip index 638f5f5..4891755 100644 --- a/sip/tdecore/kconfigskeleton.sip +++ b/sip/tdecore/kconfigskeleton.sip @@ -35,27 +35,27 @@ class KConfigSkeletonItem public: - typedef QValueList<KConfigSkeletonItem*> List; -//ig typedef QDict<KConfigSkeletonItem> Dict; -//ig typedef QDictIterator<KConfigSkeletonItem> DictIterator; - KConfigSkeletonItem (const QString&, const QString&); - void setGroup (const QString&); - QString group () const; - void setKey (const QString&); - QString key () const; - void setName (const QString&); - QString name () const; - void setLabel (const QString&); - QString label () const; - void setWhatsThis (const QString&); - QString whatsThis () const; + typedef TQValueList<KConfigSkeletonItem*> List; +//ig typedef TQDict<KConfigSkeletonItem> Dict; +//ig typedef TQDictIterator<KConfigSkeletonItem> DictIterator; + KConfigSkeletonItem (const TQString&, const TQString&); + void setGroup (const TQString&); + TQString group () const; + void setKey (const TQString&); + TQString key () const; + void setName (const TQString&); + TQString name () const; + void setLabel (const TQString&); + TQString label () const; + void setWhatsThis (const TQString&); + TQString whatsThis () const; virtual void readConfig (KConfig*) = 0; virtual void writeConfig (KConfig*) = 0; virtual void readDefault (KConfig*) = 0; - virtual void setProperty (const QVariant&) = 0; - virtual QVariant property () const = 0; - virtual QVariant minValue () const; - virtual QVariant maxValue () const; + virtual void setProperty (const TQVariant&) = 0; + virtual TQVariant property () const = 0; + virtual TQVariant minValue () const; + virtual TQVariant maxValue () const; virtual void setDefault () = 0; virtual void swapDefault () = 0; bool isImmutable () const; @@ -123,7 +123,7 @@ class KConfigSkeleton { %TypeHeaderCode #include <kconfigskeleton.h> -typedef QValueList<int> IntList; +typedef TQValueList<int> IntList; %End @@ -133,7 +133,7 @@ public: { public: - ItemPassword (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" )); + ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" )); }; // class ItemPassword @@ -144,7 +144,7 @@ public: { public: - ItemPath (const QString&, const QString&, QString&, const QString& = QString ::null ); + ItemPath (const TQString&, const TQString&, TQString&, const TQString& = TQString ::null ); }; // class ItemPath @@ -160,22 +160,22 @@ public: { public: - QString name; - QString label; - QString whatsThis; + TQString name; + TQString label; + TQString whatsThis; }; // class Choice public: - ItemEnum (const QString&, const QString&, int, const QValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const QString&, const QString&, int&, const QValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0)]; + ItemEnum (const TQString&, const TQString&, int, const TQValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (int) | choices | (QValueList<KConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1) +//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList<KConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1) class PyItemEnum : public KConfigSkeleton::ItemEnum { public: - PyItemEnum (const QString& group, const QString& key, int& val, const QValueList<KConfigSkeleton::ItemEnum::Choice>& choices, int defaultValue = 0) : + PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList<KConfigSkeleton::ItemEnum::Choice>& choices, int defaultValue = 0) : KConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) { value = val; @@ -190,7 +190,7 @@ public: Py_END_ALLOW_THREADS %End - QValueList<KConfigSkeleton::ItemEnum::Choice> choices () const; + TQValueList<KConfigSkeleton::ItemEnum::Choice> choices () const; void readConfig (KConfig*); void writeConfig (KConfig*); @@ -214,7 +214,7 @@ public: { public: - ItemPathList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); + ItemPathList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); void readConfig (KConfig*); void writeConfig (KConfig*); @@ -226,26 +226,26 @@ public: public: - KConfigSkeleton (const QString& = QString ::null ); + KConfigSkeleton (const TQString& = TQString ::null ); KConfigSkeleton (KSharedConfig::Ptr); void setDefaults (); void readConfig (); void writeConfig (); - void setCurrentGroup (const QString&); - QString currentGroup (); - void addItem (KConfigSkeletonItem*, const QString& = QString ::null ); - ItemString* addItemString (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); - ItemBool* addItemBool (const QString&, bool&, bool = 0, const QString& = QString ::null ); + void setCurrentGroup (const TQString&); + TQString currentGroup (); + void addItem (KConfigSkeletonItem*, const TQString& = TQString ::null ); + ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + KConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + KConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null ); + ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (bool) | defaultValue | (bool) | key | (QString = QString::null) +//takes name | (TQString) | value | (bool) | defaultValue | (bool) | key | (TQString = TQString::null) class PyItemBool : public KConfigSkeleton::ItemBool { public: - PyItemBool (const QString &group, const QString &key, bool val, bool defaultValue = 0) : + PyItemBool (const TQString &group, const TQString &key, bool val, bool defaultValue = 0) : KConfigSkeleton::ItemBool (group, key, this->value, defaultValue) { value = val; @@ -261,14 +261,14 @@ public: Py_END_ALLOW_THREADS %End - ItemInt* addItemInt (const QString&, int&, int = 0, const QString& = QString ::null ); + ItemInt* addItemInt (const TQString&, int&, int = 0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (int) | defaultValue | (int) | key | (QString = QString::null) +//takes name | (TQString) | value | (int) | defaultValue | (int) | key | (TQString = TQString::null) class PyItemInt : public KConfigSkeleton::ItemInt { public: - PyItemInt(const QString &group, const QString &key, int val, int defaultValue=0) : + PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue=0) : KConfigSkeleton::ItemInt (group, key, this->value, defaultValue) { value = val; @@ -284,14 +284,14 @@ public: Py_END_ALLOW_THREADS %End - ItemUInt* addItemUInt (const QString&, uint&, uint = 0, const QString& = QString ::null ); + ItemUInt* addItemUInt (const TQString&, uint&, uint = 0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (uint) | defaultValue | (uint) | key | (QString = QString::null) +//takes name | (TQString) | value | (uint) | defaultValue | (uint) | key | (TQString = TQString::null) class PyItemUInt : public KConfigSkeleton::ItemUInt { public: - PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : KConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) { value = val; @@ -307,14 +307,14 @@ public: Py_END_ALLOW_THREADS %End - ItemLong* addItemLong (const QString&, long&, long = 0, const QString& = QString ::null ); + ItemLong* addItemLong (const TQString&, long&, long = 0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (long) | defaultValue | (long) | key | (QString = QString::null) +//takes name | (TQString) | value | (long) | defaultValue | (long) | key | (TQString = TQString::null) class PyItemLong : public KConfigSkeleton::ItemLong { public: - PyItemLong(const QString &group, const QString &key, long val, long defaultValue=0) : + PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue=0) : KConfigSkeleton::ItemLong (group, key, this->value, defaultValue) { value = val; @@ -330,14 +330,14 @@ public: Py_END_ALLOW_THREADS %End - ItemULong* addItemULong (const QString&, ulong&, ulong = 0, const QString& = QString ::null ); + ItemULong* addItemULong (const TQString&, ulong&, ulong = 0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (ulong) | defaultValue | (ulong) | key | (QString = QString::null) +//takes name | (TQString) | value | (ulong) | defaultValue | (ulong) | key | (TQString = TQString::null) class PyItemULong : public KConfigSkeleton::ItemULong { public: - PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : KConfigSkeleton::ItemULong (group, key, this->value, defaultValue) { value = val; @@ -353,16 +353,16 @@ public: Py_END_ALLOW_THREADS %End - KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong&, longlong = 0, const QString& = QString ::null ); - KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null ); - ItemDouble* addItemDouble (const QString&, double&, double = 0.0, const QString& = QString ::null ); + KConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null ); + KConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null ); + ItemDouble* addItemDouble (const TQString&, double&, double = 0.0, const TQString& = TQString ::null ); %MethodCode -//takes name | (QString) | value | (double) | defaultValue | (double) | key | (QString = QString::null) +//takes name | (TQString) | value | (double) | defaultValue | (double) | key | (TQString = TQString::null) class PyItemDouble : public KConfigSkeleton::ItemDouble { public: - PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) { value = val; @@ -378,18 +378,18 @@ public: Py_END_ALLOW_THREADS %End - ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); - ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); - ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); - ItemPoint* addItemPoint (const QString&, QPoint&, const QPoint& = QPoint (), const QString& = QString ::null ); - ItemSize* addItemSize (const QString&, QSize&, const QSize& = QSize (), const QString& = QString ::null ); - ItemDateTime* addItemDateTime (const QString&, QDateTime&, const QDateTime& = QDateTime (), const QString& = QString ::null ); - KConfigSkeleton::ItemStringList* addItemStringList (const QString&, QStringList&, const QStringList& = QStringList (), const QString& = QString ::null ); - KConfigSkeleton::ItemIntList* addItemIntList (const QString&, QValueList<int>&, const QValueList<int>& = IntList (), const QString& = QString ::null ); + ItemColor* addItemColor (const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 ), const TQString& = TQString ::null ); + ItemFont* addItemFont (const TQString&, TQFont&, const TQFont& = KGlobalSettings ::generalFont (), const TQString& = TQString ::null ); + ItemRect* addItemRect (const TQString&, TQRect&, const TQRect& = TQRect (), const TQString& = TQString ::null ); + ItemPoint* addItemPoint (const TQString&, TQPoint&, const TQPoint& = TQPoint (), const TQString& = TQString ::null ); + ItemSize* addItemSize (const TQString&, TQSize&, const TQSize& = TQSize (), const TQString& = TQString ::null ); + ItemDateTime* addItemDateTime (const TQString&, TQDateTime&, const TQDateTime& = TQDateTime (), const TQString& = TQString ::null ); + KConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null ); + KConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList (), const TQString& = TQString ::null ); %MethodCode //returns a Python list of int -//takes name | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (QString = QString::null) - if (a2 == NULL) *(QValueList<int> *)a2 = QValueList<int>(); +//takes name | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (TQString = TQString::null) + if (a2 == NULL) *(TQValueList<int> *)a2 = TQValueList<int>(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); Py_END_ALLOW_THREADS @@ -412,8 +412,8 @@ public: PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_KConfigSkeletonItem, NULL)); %End - bool isImmutable (const QString&); - KConfigSkeletonItem* findItem (const QString&); + bool isImmutable (const TQString&); + KConfigSkeletonItem* findItem (const TQString&); bool useDefaults (bool); protected: @@ -437,16 +437,16 @@ public: Path }; - ItemString (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal ); - void setValue (const QString&); - QString& value (); - virtual void setDefaultValue (const QString&); + ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal ); + void setValue (const TQString&); + TQString& value (); + virtual void setDefaultValue (const TQString&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemString @@ -461,23 +461,23 @@ public: { public: - ItemProperty (const QString&, const QString&, QVariant, QVariant = 0) [(const QString&, const QString&, QVariant&, QVariant = 0)]; + ItemProperty (const TQString&, const TQString&, TQVariant, TQVariant = 0) [(const TQString&, const TQString&, TQVariant&, TQVariant = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (QVariant) | defaultValue | (QVariant = 0) +//takes group | (TQString) | key | (TQString) | reference | (TQVariant) | defaultValue | (TQVariant = 0) Py_BEGIN_ALLOW_THREADS sipCpp = (sipKConfigSkeleton_ItemProperty *) new KConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); Py_END_ALLOW_THREADS %End - void setValue (const QVariant&); - QVariant& value (); - virtual void setDefaultValue (const QVariant&); + void setValue (const TQVariant&); + TQVariant& value (); + virtual void setDefaultValue (const TQVariant&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemProperty @@ -492,14 +492,14 @@ public: { public: - ItemBool (const QString&, const QString&, bool, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; + ItemBool (const TQString&, const TQString&, bool, bool = 1) [(const TQString&, const TQString&, bool&, bool = 1)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (bool) | defaultValue | (bool = 1) +//takes group | (TQString) | key | (TQString) | reference | (bool) | defaultValue | (bool = 1) class PyItemBool : public KConfigSkeleton::ItemBool { public: - PyItemBool(const QString &group, const QString &key, bool val, bool defaultValue = false) : + PyItemBool(const TQString &group, const TQString &key, bool val, bool defaultValue = false) : KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) { value = val; @@ -521,8 +521,8 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemBool @@ -537,14 +537,14 @@ public: { public: - ItemInt (const QString&, const QString&, int, int = 1) [(const QString&, const QString&, int&, int = 1)]; + ItemInt (const TQString&, const TQString&, int, int = 1) [(const TQString&, const TQString&, int&, int = 1)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (int) | defaultValue | (int = 1) +//takes group | (TQString) | key | (TQString) | reference | (int) | defaultValue | (int = 1) class PyItemInt : public KConfigSkeleton::ItemInt { public: - PyItemInt(const QString &group, const QString &key, int val, int defaultValue = 0) : + PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue = 0) : KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) { value = val; @@ -566,10 +566,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (int); void setMaxValue (int); @@ -586,14 +586,14 @@ public: { public: - ItemInt64 (const QString&, const QString&, longlong&, longlong = 0); + ItemInt64 (const TQString&, const TQString&, longlong&, longlong = 0); %MethodCode -//takes group | (QString) | key | (QString) | reference | (longlong) | defaultValue | (longlong = 0) +//takes group | (TQString) | key | (TQString) | reference | (longlong) | defaultValue | (longlong = 0) class PyItemInt64 : public KConfigSkeleton::ItemInt64 { public: - PyItemInt64(const QString &group, const QString &key, Q_INT64 val, Q_INT64 defaultValue=0) : + PyItemInt64(const TQString &group, const TQString &key, Q_INT64 val, Q_INT64 defaultValue=0) : KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) { value = val; @@ -615,10 +615,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (longlong); void setMaxValue (longlong); @@ -635,14 +635,14 @@ public: { public: - ItemUInt (const QString&, const QString&, uint, uint = 0) [(const QString&, const QString&, uint&, uint = 0)]; + ItemUInt (const TQString&, const TQString&, uint, uint = 0) [(const TQString&, const TQString&, uint&, uint = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (uint) | defaultValue | (uint = 1) +//takes group | (TQString) | key | (TQString) | reference | (uint) | defaultValue | (uint = 1) class PyItemUInt : public KConfigSkeleton::ItemUInt { public: - PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) { value = val; @@ -664,10 +664,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (uint); void setMaxValue (uint); @@ -682,14 +682,14 @@ public: { public: - ItemLong (const QString&, const QString&, long&, long = 0) [(const QString&, const QString&, long&, long = 0)]; + ItemLong (const TQString&, const TQString&, long&, long = 0) [(const TQString&, const TQString&, long&, long = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (long) | defaultValue | (long = 1) +//takes group | (TQString) | key | (TQString) | reference | (long) | defaultValue | (long = 1) class PyItemLong : public KConfigSkeleton::ItemLong { public: - PyItemLong(const QString &group, const QString &key, long val, long defaultValue = 0) : + PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue = 0) : KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) { value = val; @@ -711,10 +711,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (long); void setMaxValue (long); @@ -731,14 +731,14 @@ public: { public: - ItemULong (const QString&, const QString&, ulong, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; + ItemULong (const TQString&, const TQString&, ulong, ulong = 0) [(const TQString&, const TQString&, ulong&, ulong = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (ulong) | defaultValue | (ulong = 1) +//takes group | (TQString) | key | (TQString) | reference | (ulong) | defaultValue | (ulong = 1) class PyItemULong : public KConfigSkeleton::ItemULong { public: - PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) { value = val; @@ -760,10 +760,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (ulong); void setMaxValue (ulong); @@ -780,14 +780,14 @@ public: { public: - ItemUInt64 (const QString&, const QString&, ulonglong&, ulonglong = 0); + ItemUInt64 (const TQString&, const TQString&, ulonglong&, ulonglong = 0); %MethodCode -//takes group | (QString) | key | (QString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) +//takes group | (TQString) | key | (TQString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 { public: - PyItemUInt64(const QString &group, const QString &key, Q_UINT64 val, Q_UINT64 defaultValue = 0) : + PyItemUInt64(const TQString &group, const TQString &key, Q_UINT64 val, Q_UINT64 defaultValue = 0) : KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) { value = val; @@ -809,10 +809,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (ulonglong); void setMaxValue (ulonglong); @@ -829,13 +829,13 @@ public: { public: - ItemDouble (const QString&, const QString&, double, double = 0) [(const QString&, const QString&, double&, double = 0)]; + ItemDouble (const TQString&, const TQString&, double, double = 0) [(const TQString&, const TQString&, double&, double = 0)]; %MethodCode -//takes group | (QString) | key | (QString) | reference | (double) | defaultValue | (double = 0) +//takes group | (TQString) | key | (TQString) | reference | (double) | defaultValue | (double = 0) class PyItemDouble : public KConfigSkeleton::ItemDouble { public: - PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) { value = val; @@ -857,10 +857,10 @@ public: void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; void setMinValue (double); void setMaxValue (double); @@ -877,16 +877,16 @@ public: { public: - ItemColor (const QString&, const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 )); - void setValue (const QColor&); - QColor& value (); - virtual void setDefaultValue (const QColor&); + ItemColor (const TQString&, const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 )); + void setValue (const TQColor&); + TQColor& value (); + virtual void setDefaultValue (const TQColor&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemColor @@ -901,16 +901,16 @@ public: { public: - ItemFont (const QString&, const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont ()); - void setValue (const QFont&); - QFont& value (); - virtual void setDefaultValue (const QFont&); + ItemFont (const TQString&, const TQString&, TQFont&, const TQFont& = KGlobalSettings ::generalFont ()); + void setValue (const TQFont&); + TQFont& value (); + virtual void setDefaultValue (const TQFont&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemFont @@ -925,16 +925,16 @@ public: { public: - ItemRect (const QString&, const QString&, QRect&, const QRect& = QRect ()); - void setValue (const QRect&); - QRect& value (); - virtual void setDefaultValue (const QRect&); + ItemRect (const TQString&, const TQString&, TQRect&, const TQRect& = TQRect ()); + void setValue (const TQRect&); + TQRect& value (); + virtual void setDefaultValue (const TQRect&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemRect @@ -949,16 +949,16 @@ public: { public: - ItemPoint (const QString&, const QString&, QPoint&, const QPoint& = QPoint ()); - void setValue (const QPoint&); - QPoint& value (); - virtual void setDefaultValue (const QPoint&); + ItemPoint (const TQString&, const TQString&, TQPoint&, const TQPoint& = TQPoint ()); + void setValue (const TQPoint&); + TQPoint& value (); + virtual void setDefaultValue (const TQPoint&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemPoint @@ -973,16 +973,16 @@ public: { public: - ItemSize (const QString&, const QString&, QSize&, const QSize& = QSize ()); - void setValue (const QSize&); - QSize& value (); - virtual void setDefaultValue (const QSize&); + ItemSize (const TQString&, const TQString&, TQSize&, const TQSize& = TQSize ()); + void setValue (const TQSize&); + TQSize& value (); + virtual void setDefaultValue (const TQSize&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemSize @@ -997,16 +997,16 @@ public: { public: - ItemDateTime (const QString&, const QString&, QDateTime&, const QDateTime& = QDateTime ()); - void setValue (const QDateTime&); - QDateTime& value (); - virtual void setDefaultValue (const QDateTime&); + ItemDateTime (const TQString&, const TQString&, TQDateTime&, const TQDateTime& = TQDateTime ()); + void setValue (const TQDateTime&); + TQDateTime& value (); + virtual void setDefaultValue (const TQDateTime&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemDateTime @@ -1021,16 +1021,16 @@ public: { public: - ItemStringList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); - void setValue (const QStringList&); - QStringList& value (); - virtual void setDefaultValue (const QStringList&); + ItemStringList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); + void setValue (const TQStringList&); + TQStringList& value (); + virtual void setDefaultValue (const TQStringList&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemStringList @@ -1045,24 +1045,24 @@ public: { public: - ItemIntList (const QString&, const QString&, QValueList<int>&, const QValueList<int>& = IntList ()); + ItemIntList (const TQString&, const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList ()); %MethodCode -//takes group | (QString) | key | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) - if (a3 == NULL) *(QValueList<int> *)a3 = QValueList<int>(); +//takes group | (TQString) | key | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) + if (a3 == NULL) *(TQValueList<int> *)a3 = TQValueList<int>(); Py_BEGIN_ALLOW_THREADS sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); Py_END_ALLOW_THREADS %End - void setValue (const QValueList<int>&); - QValueList<int>& value (); - virtual void setDefaultValue (const QValueList<int>&); + void setValue (const TQValueList<int>&); + TQValueList<int>& value (); + virtual void setDefaultValue (const TQValueList<int>&); virtual void setDefault (); void swapDefault (); void writeConfig (KConfig*); void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; + void setProperty (const TQVariant&); + TQVariant property () const; }; // class ItemIntList @@ -1077,7 +1077,7 @@ public: %If (KDE_3_2_0 - ) -%MappedType QValueList<KConfigSkeleton::ItemEnum::Choice> +%MappedType TQValueList<KConfigSkeleton::ItemEnum::Choice> { %TypeHeaderCode #include <kconfigskeleton.h> @@ -1092,11 +1092,11 @@ public: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = (QValueList<KConfigSkeleton::ItemEnum::Choice> *)sipCpp; + TQValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = (TQValueList<KConfigSkeleton::ItemEnum::Choice> *)sipCpp; PyObject *inst; // Get it. - QValueList<KConfigSkeleton::ItemEnum::Choice>::Iterator it; + TQValueList<KConfigSkeleton::ItemEnum::Choice>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KConfigSkeleton::ItemEnum::Choice(*it), sipType_KConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) @@ -1115,7 +1115,7 @@ public: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = new QValueList<KConfigSkeleton::ItemEnum::Choice>; + TQValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = new TQValueList<KConfigSkeleton::ItemEnum::Choice>; PyObject *elem; KConfigSkeleton::ItemEnum::Choice *cpp; diff --git a/sip/tdecore/kcrash.sip b/sip/tdecore/kcrash.sip index ebf2252..3055166 100644 --- a/sip/tdecore/kcrash.sip +++ b/sip/tdecore/kcrash.sip @@ -42,8 +42,8 @@ public: static void setSafer (bool); %End - static void setApplicationPath (QString); - static void setApplicationName (QString); + static void setApplicationPath (TQString); + static void setApplicationName (TQString); protected: diff --git a/sip/tdecore/kdcoppropertyproxy.sip b/sip/tdecore/kdcoppropertyproxy.sip index b6da6be..393f7e2 100644 --- a/sip/tdecore/kdcoppropertyproxy.sip +++ b/sip/tdecore/kdcoppropertyproxy.sip @@ -32,13 +32,13 @@ class KDCOPPropertyProxy public: - KDCOPPropertyProxy (QObject*); - bool isPropertyRequest (const QCString&); - bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&); - QValueList<QCString> functions (); - static QValueList<QCString> functions (QObject*); - static bool isPropertyRequest (const QCString&, QObject*); - static bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&, QObject*); + KDCOPPropertyProxy (TQObject*); + bool isPropertyRequest (const TQCString&); + bool processPropertyRequest (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); + TQValueList<TQCString> functions (); + static TQValueList<TQCString> functions (TQObject*); + static bool isPropertyRequest (const TQCString&, TQObject*); + static bool processPropertyRequest (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&, TQObject*); }; // class KDCOPPropertyProxy diff --git a/sip/tdecore/kdesktopfile.sip b/sip/tdecore/kdesktopfile.sip index 47e83fd..42eff4c 100644 --- a/sip/tdecore/kdesktopfile.sip +++ b/sip/tdecore/kdesktopfile.sip @@ -32,48 +32,48 @@ class KDesktopFile : KConfig public: - KDesktopFile (const QString&, bool = 0, const char* = "apps"); - static bool isDesktopFile (const QString&); + KDesktopFile (const TQString&, bool = 0, const char* = "apps"); + static bool isDesktopFile (const TQString&); %If ( KDE_3_1_0 - ) - static bool isAuthorizedDesktopFile (const QString&); + static bool isAuthorizedDesktopFile (const TQString&); %If ( KDE_3_2_0 - ) - static QString locateLocal (const QString&); + static TQString locateLocal (const TQString&); %End %End - QString readType () const; - QString readIcon () const; - QString readName () const; - QString readComment () const; - QString readGenericName () const; - QString readPath () const; - QString readDevice () const; - QString readURL () const; - QStringList readActions () const; - void setActionGroup (const QString&); - bool hasActionGroup (const QString&) const; + TQString readType () const; + TQString readIcon () const; + TQString readName () const; + TQString readComment () const; + TQString readGenericName () const; + TQString readPath () const; + TQString readDevice () const; + TQString readURL () const; + TQStringList readActions () const; + void setActionGroup (const TQString&); + bool hasActionGroup (const TQString&) const; bool hasLinkType () const; bool hasApplicationType () const; bool hasMimeTypeType () const; bool hasDeviceType () const; bool tryExec () const; - QString fileName () const; - QString resource () const; + TQString fileName () const; + TQString resource () const; %If ( KDE_3_1_0 - ) - QString readDocPath () const; + TQString readDocPath () const; %End - QStringList sortOrder () const; + TQStringList sortOrder () const; %If ( KDE_3_2_0 - ) - KDesktopFile* copyTo (const QString&) const; + KDesktopFile* copyTo (const TQString&) const; %End - QString filename () const; + TQString filename () const; private: KDesktopFile (const KDesktopFile&); diff --git a/sip/tdecore/kdesktopwidget.sip b/sip/tdecore/kdesktopwidget.sip index cf97c1e..e1c3c14 100644 --- a/sip/tdecore/kdesktopwidget.sip +++ b/sip/tdecore/kdesktopwidget.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KDesktopWidget : QWidget +class KDesktopWidget : TQWidget { %TypeHeaderCode #include <kdesktopwidget.h> @@ -36,10 +36,10 @@ public: bool isVirtualDesktop () const; int numScreens () const; int primaryScreen () const; - int screenNumber (QWidget* = 0) const; - int screenNumber (const QPoint&) const; - QWidget* screen (int = -1); - const QRect& screenGeometry (int = -1) const; + int screenNumber (TQWidget* = 0) const; + int screenNumber (const TQPoint&) const; + TQWidget* screen (int = -1); + const TQRect& screenGeometry (int = -1) const; }; // class KDesktopWidget diff --git a/sip/tdecore/kdestyle.sip b/sip/tdecore/kdestyle.sip index 2456913..520818c 100644 --- a/sip/tdecore/kdestyle.sip +++ b/sip/tdecore/kdestyle.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KDEAniMenu : QObject +class KDEAniMenu : TQObject { %TypeHeaderCode #include <kdestyle.h> @@ -32,7 +32,7 @@ class KDEAniMenu : QObject public: - KDEAniMenu (QPopupMenu*); + KDEAniMenu (TQPopupMenu*); protected: void scrollIn (); @@ -53,56 +53,56 @@ class KDEStyle : KStyle public: KDEStyle (); - virtual void polish (QWidget*); - virtual void unPolish (QWidget*); - virtual void polish (QPalette&); - void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - void drawButtonMask (QPainter*, int, int, int, int); - void drawComboButtonMask (QPainter*, int, int, int, int); - QRect buttonRect (int, int, int, int); - void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - void drawPushButton (QPushButton*, QPainter*); - virtual void drawPushButtonLabel (QPushButton*, QPainter*); - void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); - QStyle::ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); - void scrollBarMetrics (const QScrollBar*, int&/Out/, int&/Out/, int&/Out/, int&/Out/); - QSize indicatorSize () const; - void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); - void drawIndicatorMask (QPainter*, int, int, int, int, int); - QSize exclusiveIndicatorSize () const; - void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); - void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); - void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); - QRect comboButtonRect (int, int, int, int); - QRect comboButtonFocusRect (int, int, int, int); + virtual void polish (TQWidget*); + virtual void unPolish (TQWidget*); + virtual void polish (TQPalette&); + void drawButton (TQPainter*, int, int, int, int, const TQColorGroup&, bool = 0, const TQBrush* = 0); + void drawButtonMask (TQPainter*, int, int, int, int); + void drawComboButtonMask (TQPainter*, int, int, int, int); + TQRect buttonRect (int, int, int, int); + void drawBevelButton (TQPainter*, int, int, int, int, const TQColorGroup&, bool = 0, const TQBrush* = 0); + void drawPushButton (TQPushButton*, TQPainter*); + virtual void drawPushButtonLabel (TQPushButton*, TQPainter*); + void drawScrollBarControls (TQPainter*, const TQScrollBar*, int, uint, uint); + TQStyle::ScrollControl scrollBarPointOver (const TQScrollBar*, int, const TQPoint&); + void scrollBarMetrics (const TQScrollBar*, int&/Out/, int&/Out/, int&/Out/, int&/Out/); + TQSize indicatorSize () const; + void drawIndicator (TQPainter*, int, int, int, int, const TQColorGroup&, int, bool = 0, bool = 1); + void drawIndicatorMask (TQPainter*, int, int, int, int, int); + TQSize exclusiveIndicatorSize () const; + void drawExclusiveIndicator (TQPainter*, int, int, int, int, const TQColorGroup&, bool, bool = 0, bool = 1); + void drawExclusiveIndicatorMask (TQPainter*, int, int, int, int, bool); + void drawComboButton (TQPainter*, int, int, int, int, const TQColorGroup&, bool = 0, bool = 0, bool = 1, const TQBrush* = 0); + TQRect comboButtonRect (int, int, int, int); + TQRect comboButtonFocusRect (int, int, int, int); int sliderLength () const; - void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); - void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); - void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); - void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); - void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); -//ig void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); -//ig void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); -//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); - void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); - void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor*, bool); + void drawArrow (TQPainter*, TQt::ArrowType, bool, int, int, int, int, const TQColorGroup&, bool = 1, const TQBrush* = 0); + void drawSlider (TQPainter*, int, int, int, int, const TQColorGroup&, Orientation, bool, bool); + void drawSliderMask (TQPainter*, int, int, int, int, Orientation, bool, bool); + void drawKToolBar (TQPainter*, int, int, int, int, const TQColorGroup&, KToolBarPos, TQBrush* = 0); + void drawKBarHandle (TQPainter*, int, int, int, int, const TQColorGroup&, KToolBarPos, TQBrush* = 0); + void drawKMenuBar (TQPainter*, int, int, int, int, const TQColorGroup&, bool, TQBrush* = 0); + void drawKToolBarButton (TQPainter*, int, int, int, int, const TQColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const TQString& = TQString::null, const TQPixmap* = 0, TQFont* = 0, TQWidget* = 0); +//ig void drawKMenuItem (TQPainter*, int, int, int, int, const TQColorGroup&, bool, TQMenuItem*, TQBrush* = 0); +//ig void drawPopupMenuItem (TQPainter*, bool, int, int, TQMenuItem*, const TQPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, TQMenuItem*, const TQFontMetrics&); + void drawKProgressBlock (TQPainter*, int, int, int, int, const TQColorGroup&, TQBrush*); + void drawFocusRect (TQPainter*, const TQRect&, const TQColorGroup&, const TQColor*, bool); int defaultFrameWidth () const; - void polishPopupMenu (QPopupMenu*); - void drawTab (QPainter*, const QTabBar*, QTab*, bool); - void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); - void tabbarMetrics (const QTabBar*, int&/Out/, int&/Out/, int&/Out/); - void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + void polishPopupMenu (TQPopupMenu*); + void drawTab (TQPainter*, const TQTabBar*, TQTab*, bool); + void drawTabMask (TQPainter*, const TQTabBar*, TQTab*, bool); + void tabbarMetrics (const TQTabBar*, int&/Out/, int&/Out/, int&/Out/); + void drawSplitter (TQPainter*, int, int, int, int, const TQColorGroup&, Orientation); int splitterWidth () const; - void drawPanel (QPainter*, int, int, int, int, const QColorGroup&, bool, int, const QBrush*); - void drawKickerAppletHandle (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); - bool eventFilter (QObject*, QEvent*); + void drawPanel (TQPainter*, int, int, int, int, const TQColorGroup&, bool, int, const TQBrush*); + void drawKickerAppletHandle (TQPainter*, int, int, int, int, const TQColorGroup&, TQBrush*); + bool eventFilter (TQObject*, TQEvent*); protected: - void drawSBDeco (QPainter*, const QRect&, const QColorGroup&, bool); - void drawSBButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); - void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); + void drawSBDeco (TQPainter*, const TQRect&, const TQColorGroup&, bool); + void drawSBButton (TQPainter*, const TQRect&, const TQColorGroup&, bool = 0); + void kColorBitmaps (TQPainter*, const TQColorGroup&, int, int, TQBitmap* = 0, TQBitmap* = 0, TQBitmap* = 0, TQBitmap* = 0, TQBitmap* = 0, TQBitmap* = 0); }; // class KDEStyle diff --git a/sip/tdecore/kglobal.sip b/sip/tdecore/kglobal.sip index b8947e0..b2b2cb9 100644 --- a/sip/tdecore/kglobal.sip +++ b/sip/tdecore/kglobal.sip @@ -43,8 +43,8 @@ public: static KIconLoader* iconLoader (); static KLocale* locale (); static KCharsets* charsets (); - static const QString& staticQString (const char*); - static const QString& staticQString (const QString&); + static const TQString& staticTQString (const char*); + static const TQString& staticTQString (const TQString&); static void registerStaticDeleter (KStaticDeleterBase*); static void unregisterStaticDeleter (KStaticDeleterBase*); static void deleteStaticDeleters (); diff --git a/sip/tdecore/kglobalaccel.sip b/sip/tdecore/kglobalaccel.sip index 1e757f5..4428a3c 100644 --- a/sip/tdecore/kglobalaccel.sip +++ b/sip/tdecore/kglobalaccel.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KGlobalAccel : QObject +class KGlobalAccel : TQObject { %TypeHeaderCode #include <kglobalaccel.h> @@ -32,32 +32,32 @@ class KGlobalAccel : QObject public: - KGlobalAccel (QObject*, const char* = 0); + KGlobalAccel (TQObject*, const char* = 0); bool isEnabled () const; void setEnabled (bool); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); %If ( KDE_3_1_0 - ) - bool remove (const QString&); + bool remove (const TQString&); %End - KAccelAction* insert (const QString&, const QString&); + KAccelAction* insert (const TQString&, const TQString&); bool updateConnections (); - const KShortcut& shortcut (const QString&) const; - bool setShortcut (const QString&, const KShortcut&); - bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); + const KShortcut& shortcut (const TQString&) const; + bool setShortcut (const TQString&, const KShortcut&); + bool setSlot (const TQString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); %If ( KDE_3_4_0 - ) - bool setActionEnabled (const QString&, bool); + bool setActionEnabled (const TQString&, bool); %End %If ( KDE_3_3_0 - ) - QString label (const QString&) const; + TQString label (const TQString&) const; %End - const QString& configGroup () const; - void setConfigGroup (const QString&); + const TQString& configGroup () const; + void setConfigGroup (const TQString&); bool readSettings (KConfigBase* = 0); bool writeSettings (KConfigBase* = 0) const; @@ -79,7 +79,7 @@ protected: public: %If ( - KDE_3_2_0 ) -//ig bool setEnabled (const QString&, bool); +//ig bool setEnabled (const TQString&, bool); %End diff --git a/sip/tdecore/kglobalsettings.sip b/sip/tdecore/kglobalsettings.sip index 08386c6..58380d7 100644 --- a/sip/tdecore/kglobalsettings.sip +++ b/sip/tdecore/kglobalsettings.sip @@ -84,44 +84,44 @@ public: public: static KGlobalSettings::KMouseSettings& mouseSettings (); - static QString desktopPath (); - static QString autostartPath (); - static QString trashPath (); - static QString documentPath (); - static QColor toolBarHighlightColor (); - static QColor inactiveTitleColor (); - static QColor inactiveTextColor (); - static QColor activeTitleColor (); - static QColor activeTextColor (); + static TQString desktopPath (); + static TQString autostartPath (); + static TQString trashPath (); + static TQString documentPath (); + static TQColor toolBarHighlightColor (); + static TQColor inactiveTitleColor (); + static TQColor inactiveTextColor (); + static TQColor activeTitleColor (); + static TQColor activeTextColor (); static int contrast (); %If ( KDE_3_4_0 - ) - static QColor buttonBackground (); - static QColor buttonTextColor (); + static TQColor buttonBackground (); + static TQColor buttonTextColor (); %End - static QColor baseColor (); - static QColor textColor (); - static QColor linkColor (); - static QColor visitedLinkColor (); - static QColor highlightedTextColor (); - static QColor highlightColor (); - static QColor alternateBackgroundColor (); - static QColor calculateAlternateBackgroundColor (const QColor&); + static TQColor baseColor (); + static TQColor textColor (); + static TQColor linkColor (); + static TQColor visitedLinkColor (); + static TQColor highlightedTextColor (); + static TQColor highlightColor (); + static TQColor alternateBackgroundColor (); + static TQColor calculateAlternateBackgroundColor (const TQColor&); %If ( KDE_3_4_0 - ) static bool shadeSortColumn (); %End - static QFont generalFont (); - static QFont fixedFont (); - static QFont toolBarFont (); - static QFont menuFont (); - static QFont windowTitleFont (); - static QFont taskbarFont (); + static TQFont generalFont (); + static TQFont fixedFont (); + static TQFont toolBarFont (); + static TQFont menuFont (); + static TQFont windowTitleFont (); + static TQFont taskbarFont (); %If ( KDE_3_1_0 - ) - static QFont largeFont (const QString& = QString ::null ); + static TQFont largeFont (const TQString& = TQString ::null ); %End static bool isMultiHead (); @@ -130,9 +130,9 @@ public: static bool wheelMouseZooms (); %If ( KDE_3_2_0 - ) - static QRect splashScreenDesktopGeometry (); - static QRect desktopGeometry (const QPoint&); - static QRect desktopGeometry (QWidget*); + static TQRect splashScreenDesktopGeometry (); + static TQRect desktopGeometry (const TQPoint&); + static TQRect desktopGeometry (TQWidget*); static bool showIconsOnPushButtons (); static bool showFilePreview (const KURL&); static bool opaqueResize (); diff --git a/sip/tdecore/kiconeffect.sip b/sip/tdecore/kiconeffect.sip index a157ee4..b6982f5 100644 --- a/sip/tdecore/kiconeffect.sip +++ b/sip/tdecore/kiconeffect.sip @@ -51,35 +51,35 @@ public: void init (); bool hasEffect (int, int) const; - QString fingerprint (int, int); - QImage apply (QImage, int, int); - QImage apply (QImage, int, float, const QColor, bool); + TQString fingerprint (int, int); + TQImage apply (TQImage, int, int); + TQImage apply (TQImage, int, float, const TQColor, bool); %If ( KDE_3_4_0 - ) - QImage apply (QImage, int, float, const QColor, const QColor, bool) const; + TQImage apply (TQImage, int, float, const TQColor, const TQColor, bool) const; %End - QPixmap apply (QPixmap, int, int); - QPixmap apply (QPixmap, int, float, const QColor, bool); + TQPixmap apply (TQPixmap, int, int); + TQPixmap apply (TQPixmap, int, float, const TQColor, bool); %If ( KDE_3_4_0 - ) - QPixmap apply (QPixmap, int, float, const QColor, const QColor, bool) const; + TQPixmap apply (TQPixmap, int, float, const TQColor, const TQColor, bool) const; %End - QImage doublePixels (QImage); - static void visualActivate (QWidget*, QRect); - static void toGray (QImage&, float); - static void colorize (QImage&, const QColor&, float); + TQImage doublePixels (TQImage); + static void visualActivate (TQWidget*, TQRect); + static void toGray (TQImage&, float); + static void colorize (TQImage&, const TQColor&, float); %If ( KDE_3_4_0 - ) - static void toMonochrome (QImage&, const QColor&, const QColor&, float); + static void toMonochrome (TQImage&, const TQColor&, const TQColor&, float); %End - static void deSaturate (QImage&, float); - static void toGamma (QImage&, float); - static void semiTransparent (QImage&); - static void semiTransparent (QPixmap&); - static void overlay (QImage&, QImage&); + static void deSaturate (TQImage&, float); + static void toGamma (TQImage&, float); + static void semiTransparent (TQImage&); + static void semiTransparent (TQPixmap&); + static void overlay (TQImage&, TQImage&); public: diff --git a/sip/tdecore/kiconloader.sip b/sip/tdecore/kiconloader.sip index a4fd24d..23f4fcc 100644 --- a/sip/tdecore/kiconloader.sip +++ b/sip/tdecore/kiconloader.sip @@ -32,36 +32,36 @@ class KIconLoader public: - KIconLoader (const QString& = QString ::null , KStandardDirs* = 0); - void addAppDir (const QString&); - QPixmap loadIcon (const QString&, KIcon::Group, int = 0, int = KIcon ::DefaultState , QString* = 0, bool = 0) const; + KIconLoader (const TQString& = TQString ::null , KStandardDirs* = 0); + void addAppDir (const TQString&); + TQPixmap loadIcon (const TQString&, KIcon::Group, int = 0, int = KIcon ::DefaultState , TQString* = 0, bool = 0) const; %If ( KDE_3_5_0 - ) - QIconSet loadIconSet (const QString&, KIcon::Group, int, bool, bool); + TQIconSet loadIconSet (const TQString&, KIcon::Group, int, bool, bool); %End %If ( KDE_3_1_0 - ) - QIconSet loadIconSet (const QString&, KIcon::Group, int, bool); + TQIconSet loadIconSet (const TQString&, KIcon::Group, int, bool); %End - QIconSet loadIconSet (const QString&, KIcon::Group, int = 0); - QString iconPath (const QString&, int, bool = 0) const; - QMovie loadMovie (const QString&, KIcon::Group, int = 0) const; - QString moviePath (const QString&, KIcon::Group, int = 0) const; - QStringList loadAnimated (const QString&, KIcon::Group, int = 0) const; - QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; - QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + TQIconSet loadIconSet (const TQString&, KIcon::Group, int = 0); + TQString iconPath (const TQString&, int, bool = 0) const; + TQMovie loadMovie (const TQString&, KIcon::Group, int = 0) const; + TQString moviePath (const TQString&, KIcon::Group, int = 0) const; + TQStringList loadAnimated (const TQString&, KIcon::Group, int = 0) const; + TQStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + TQStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; %If ( KDE_3_1_0 - ) - QStringList queryIconsByDir (const QString&) const; + TQStringList queryIconsByDir (const TQString&) const; %End int currentSize (KIcon::Group) const; KIconTheme* theme (); KIconEffect* iconEffect (); - void reconfigure (const QString&, KStandardDirs*); - static QPixmap unknown (); + void reconfigure (const TQString&, KStandardDirs*); + static TQPixmap unknown (); bool alphaBlending (KIcon::Group) const; %If ( KDE_3_1_0 - ) @@ -79,19 +79,19 @@ public: #include <kiconloader.h> %End -QPixmap DesktopIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap DesktopIcon (const QString&, KInstance*); -QIconSet DesktopIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap BarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap BarIcon (const QString&, KInstance*); -QIconSet BarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap SmallIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap SmallIcon (const QString&, KInstance*); -QIconSet SmallIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap MainBarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap MainBarIcon (const QString&, KInstance*); -QIconSet MainBarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap UserIcon (const QString&, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap UserIcon (const QString&, KInstance*); -QIconSet UserIconSet (const QString&, KInstance* = KGlobal ::instance ()); +TQPixmap DesktopIcon (const TQString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +TQPixmap DesktopIcon (const TQString&, KInstance*); +TQIconSet DesktopIconSet (const TQString&, int = 0, KInstance* = KGlobal ::instance ()); +TQPixmap BarIcon (const TQString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +TQPixmap BarIcon (const TQString&, KInstance*); +TQIconSet BarIconSet (const TQString&, int = 0, KInstance* = KGlobal ::instance ()); +TQPixmap SmallIcon (const TQString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +TQPixmap SmallIcon (const TQString&, KInstance*); +TQIconSet SmallIconSet (const TQString&, int = 0, KInstance* = KGlobal ::instance ()); +TQPixmap MainBarIcon (const TQString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +TQPixmap MainBarIcon (const TQString&, KInstance*); +TQIconSet MainBarIconSet (const TQString&, int = 0, KInstance* = KGlobal ::instance ()); +TQPixmap UserIcon (const TQString&, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +TQPixmap UserIcon (const TQString&, KInstance*); +TQIconSet UserIconSet (const TQString&, KInstance* = KGlobal ::instance ()); int IconSize (KIcon::Group, KInstance* = KGlobal ::instance ()); diff --git a/sip/tdecore/kicontheme.sip b/sip/tdecore/kicontheme.sip index 269a8b0..c8f2f6a 100644 --- a/sip/tdecore/kicontheme.sip +++ b/sip/tdecore/kicontheme.sip @@ -121,7 +121,7 @@ public: Context context; Type type; int threshold; - QString path; + TQString path; public: @@ -209,21 +209,21 @@ class KIconTheme public: - KIconTheme (const QString&, const QString& = QString ::null ); - QString name () const; - QString description () const; - QString example () const; - QString screenshot () const; - QString linkOverlay () const; - QString zipOverlay () const; - QString lockOverlay () const; + KIconTheme (const TQString&, const TQString& = TQString ::null ); + TQString name () const; + TQString description () const; + TQString example () const; + TQString screenshot () const; + TQString linkOverlay () const; + TQString zipOverlay () const; + TQString lockOverlay () const; %If ( KDE_3_1_0 - ) - QString shareOverlay () const; + TQString shareOverlay () const; %End - QString dir () const; - QStringList inherits () const; + TQString dir () const; + TQStringList inherits () const; bool isValid () const; %If ( KDE_3_1_0 - ) @@ -232,16 +232,16 @@ public: int depth () const; int defaultSize (KIcon::Group) const; - QValueList<int> querySizes (KIcon::Group) const; - QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; - QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; - KIcon iconPath (const QString&, int, KIcon::MatchType) const; - static QStringList list (); - static QString current (); + TQValueList<int> querySizes (KIcon::Group) const; + TQStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + TQStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + KIcon iconPath (const TQString&, int, KIcon::MatchType) const; + static TQStringList list (); + static TQString current (); static void reconfigure (); %If ( KDE_3_1_0 - ) - static QString defaultThemeName (); + static TQString defaultThemeName (); %End diff --git a/sip/tdecore/kidna.sip b/sip/tdecore/kidna.sip index e3e0cd5..fb694f5 100644 --- a/sip/tdecore/kidna.sip +++ b/sip/tdecore/kidna.sip @@ -31,9 +31,9 @@ %If ( KDE_3_2_0 - ) namespace KIDNA { -QCString toAsciiCString (const QString&); -QString toAscii (const QString&); -QString toUnicode (const QString&); +TQCString toAsciiCString (const TQString&); +TQString toAscii (const TQString&); +TQString toUnicode (const TQString&); }; // namespace KIDNA %End diff --git a/sip/tdecore/kinstance.sip b/sip/tdecore/kinstance.sip index 82df1be..5ee05ee 100644 --- a/sip/tdecore/kinstance.sip +++ b/sip/tdecore/kinstance.sip @@ -32,7 +32,7 @@ class KInstance public: - KInstance (const QCString&); + KInstance (const TQCString&); KInstance (const KAboutData*); KInstance (KInstance*); KStandardDirs* dirs () const; @@ -45,14 +45,14 @@ public: KIconLoader* iconLoader () const; void newIconLoader () const; const KAboutData* aboutData () const; - QCString instanceName () const; + TQCString instanceName () const; KMimeSourceFactory* mimeSourceFactory () const; protected: //ig KInstance (const KInstance&); %If ( KDE_3_1_0 - ) - void setConfigName (const QString&); + void setConfigName (const TQString&); %End diff --git a/sip/tdecore/kkeynative.sip b/sip/tdecore/kkeynative.sip index 55af059..31686fb 100644 --- a/sip/tdecore/kkeynative.sip +++ b/sip/tdecore/kkeynative.sip @@ -41,7 +41,7 @@ public: //ig bool init (const XEvent*); bool init (const KKey&); bool init (const KKeyNative&); - int keyCodeQt () const; + int keyCodeTQt () const; KKey key () const; %If ( KDE_3_1_4 - ) diff --git a/sip/tdecore/kkeyserver_x11.sip b/sip/tdecore/kkeyserver_x11.sip index a50ff80..55c5849 100644 --- a/sip/tdecore/kkeyserver_x11.sip +++ b/sip/tdecore/kkeyserver_x11.sip @@ -51,13 +51,13 @@ public: uint m_sym; Sym (); Sym (uint); - Sym (const QString&); - bool initQt (int); - bool init (const QString&); + Sym (const TQString&); + bool initTQt (int); + bool init (const TQString&); int qt () const; - QString toStringInternal () const; - QString toString () const; - uint getModsRequired () const; + TQString toStringInternal () const; + TQString toString () const; + uint getModsRetquired () const; uint getSymVariation () const; %If ( KDE_3_1_4 - ) @@ -90,8 +90,8 @@ public: uint code () const; uint mod () const; uint sym () const; - int keyCodeQt () const; - void setKeycodeQt (int); + int keyCodeTQt () const; + void setKeycodeTQt (int); int compare (const KKeyServer::Key&) const; %If ( KDE_3_1_4 - ) @@ -143,28 +143,28 @@ uint modXModeSwitch (); %End uint accelModMaskX (); -//ig bool keyQtToSym (int, uint&); -//ig bool keyQtToMod (int, uint&); -//ig bool symToKeyQt (uint, int&); -//ig bool modToModQt (uint, int&); +//ig bool keyTQtToSym (int, uint&); +//ig bool keyTQtToMod (int, uint&); +//ig bool symToKeyTQt (uint, int&); +//ig bool modToModTQt (uint, int&); //ig bool modToModX (uint, uint&); -//ig bool modXToModQt (uint, int&); +//ig bool modXToModTQt (uint, int&); %If ( KDE_3_4_2 - ) -//ig int qtButtonStateToMod (Qt::ButtonState); +//ig int qtButtonStateToMod (TQt::ButtonState); %End //ig bool modXToMod (uint, uint&); //ig bool codeXToSym (uchar, uint, uint&); -//ig QString modToStringInternal (uint); -//ig QString modToStringUser (uint); +//ig TQString modToStringInternal (uint); +//ig TQString modToStringUser (uint); %If ( KDE_3_5_0 - ) -uint stringUserToMod (const QString&); +uint stringUserToMod (const TQString&); %End -//ig bool stringToSymMod (const QString&, uint&, uint&); -//ig void keyQtToKeyX (uint, uchar*, uint*, uint*); +//ig bool stringToSymMod (const TQString&, uint&, uint&); +//ig void keyTQtToKeyX (uint, uchar*, uint*, uint*); %If ( - KDE_3_2_0 ) diff --git a/sip/tdecore/klibloader.sip b/sip/tdecore/klibloader.sip index 80fa29f..27c8e72 100644 --- a/sip/tdecore/klibloader.sip +++ b/sip/tdecore/klibloader.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KLibrary : QObject +class KLibrary : TQObject { %TypeHeaderCode #include <klibloader.h> @@ -32,9 +32,9 @@ class KLibrary : QObject public: -//ig KLibrary (const QString&, const QString&, void*); - QString name () const; - QString fileName () const; +//ig KLibrary (const TQString&, const TQString&, void*); + TQString name () const; + TQString fileName () const; KLibFactory* factory (); void* symbol (const char*); @@ -47,13 +47,13 @@ public: private: ~KLibrary (); //force - KLibrary (const QString&, const QString&, void*); + KLibrary (const TQString&, const TQString&, void*); //end }; // class KLibrary -class KLibLoader : QObject +class KLibLoader : TQObject { %TypeHeaderCode #include <klibloader.h> @@ -64,14 +64,14 @@ public: KLibFactory* factory (const char*); virtual KLibrary* library (const char*); KLibrary* globalLibrary (const char*); - QString lastErrorMessage () const; + TQString lastErrorMessage () const; virtual void unloadLibrary (const char*); static KLibLoader* self (); static void cleanUp (); - static QString findLibrary (const char*, const KInstance* = KGlobal ::instance ()); + static TQString findLibrary (const char*, const KInstance* = KGlobal ::instance ()); protected: - KLibLoader (QObject* /TransferThis/ = 0, const char* = 0); + KLibLoader (TQObject* /TransferThis/ = 0, const char* = 0); protected: //igx virtual void virtual_hook (int, void*); @@ -79,7 +79,7 @@ protected: }; // class KLibLoader -class KLibFactory : QObject +class KLibFactory : TQObject { %TypeHeaderCode #include <klibloader.h> @@ -87,14 +87,14 @@ class KLibFactory : QObject public: - KLibFactory (QObject* /TransferThis/ = 0, const char* = 0); - QObject* create (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + KLibFactory (TQObject* /TransferThis/ = 0, const char* = 0); + TQObject* create (TQObject* /Transfer/ = 0, const char* = 0, const char* = "TQObject", const TQStringList& = TQStringList ()); signals: - void objectCreated (QObject*); + void objectCreated (TQObject*); protected: - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()) /Factory/; + virtual TQObject* createObject (TQObject* /Transfer/ = 0, const char* = 0, const char* = "TQObject", const TQStringList& = TQStringList ()) /Factory/; protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/tdecore/klocale.sip b/sip/tdecore/klocale.sip index ffe12a0..238c9a7 100644 --- a/sip/tdecore/klocale.sip +++ b/sip/tdecore/klocale.sip @@ -32,15 +32,15 @@ class KLocale public: - KLocale (const QString&, KConfig* = 0); + KLocale (const TQString&, KConfig* = 0); //ig KLocale (const KLocale&); - QString translate (const char*) const; - QString translate (const char*, const char*) const; - QString translate (const char*, const char*, ulong) const; + TQString translate (const char*) const; + TQString translate (const char*, const char*) const; + TQString translate (const char*, const char*, ulong) const; bool setEncoding (int); - bool setLanguage (const QString&); - bool setLanguage (const QStringList&); - bool setCountry (const QString&); + bool setLanguage (const TQString&); + bool setLanguage (const TQStringList&); + bool setCountry (const TQString&); enum SignPosition { @@ -51,29 +51,29 @@ public: AfterMoney }; - QString decimalSymbol () const; - QString thousandsSeparator () const; - QString currencySymbol () const; - QString monetaryDecimalSymbol () const; - QString monetaryThousandsSeparator () const; - QString positiveSign () const; - QString negativeSign () const; + TQString decimalSymbol () const; + TQString thousandsSeparator () const; + TQString currencySymbol () const; + TQString monetaryDecimalSymbol () const; + TQString monetaryThousandsSeparator () const; + TQString positiveSign () const; + TQString negativeSign () const; int fracDigits () const; bool positivePrefixCurrencySymbol () const; bool negativePrefixCurrencySymbol () const; SignPosition positiveMonetarySignPosition () const; SignPosition negativeMonetarySignPosition () const; - QString formatMoney (double, const QString& = QString ::null , int = -1) const; - QString formatNumber (double, int = -1) const; - QString formatNumber (const QString&) const; + TQString formatMoney (double, const TQString& = TQString ::null , int = -1) const; + TQString formatNumber (double, int = -1) const; + TQString formatNumber (const TQString&) const; %If ( KDE_3_5_0 - ) - QString formatNumber (const QString&, bool, int) const; + TQString formatNumber (const TQString&, bool, int) const; %End %If ( KDE_3_2_0 - ) - QString formatLong (long) const; + TQString formatLong (long) const; %End @@ -81,18 +81,18 @@ public: bool nounDeclension () const; %End - QString formatDate (const QDate&, bool = 0) const; + TQString formatDate (const TQDate&, bool = 0) const; %If ( KDE_3_1_0 - ) bool dateMonthNamePossessive () const; %If ( KDE_3_3_0 - ) - QString formatTime (const QTime&, bool, bool) const; + TQString formatTime (const TQTime&, bool, bool) const; %End %End - QString formatTime (const QTime&, bool = 0) const; + TQString formatTime (const TQTime&, bool = 0) const; bool use12Clock () const; bool weekStartsMonday () const; @@ -100,25 +100,25 @@ public: int weekStartDay () const; %End - QString monthName (int, bool = 0) const; + TQString monthName (int, bool = 0) const; %If ( KDE_3_1_0 - ) - QString monthNamePossessive (int, bool = 0) const; + TQString monthNamePossessive (int, bool = 0) const; %End - QString weekDayName (int, bool = 0) const; + TQString weekDayName (int, bool = 0) const; %If ( KDE_3_2_0 - ) const KCalendarSystem* calendar () const; - QString calendarType () const; - void setCalendar (const QString&); + TQString calendarType () const; + void setCalendar (const TQString&); %End - QString formatDateTime (const QDateTime&, bool, bool = 0) const; - double readMoney (const QString&, bool* = 0) const; - double readNumber (const QString&, bool* = 0) const; - QDate readDate (const QString&, bool* = 0) const; - QDate readDate (const QString&, const QString&, bool* = 0) const; + TQString formatDateTime (const TQDateTime&, bool, bool = 0) const; + double readMoney (const TQString&, bool* = 0) const; + double readNumber (const TQString&, bool* = 0) const; + TQDate readDate (const TQString&, bool* = 0) const; + TQDate readDate (const TQString&, const TQString&, bool* = 0) const; %If ( KDE_3_2_0 - ) @@ -128,10 +128,10 @@ public: ShortFormat }; - QDate readDate (const QString&, KLocale::ReadDateFlags, bool* = 0) const; + TQDate readDate (const TQString&, KLocale::ReadDateFlags, bool* = 0) const; %End - QTime readTime (const QString&, bool* = 0) const; + TQTime readTime (const TQString&, bool* = 0) const; %If ( KDE_3_2_0 - ) @@ -141,50 +141,50 @@ public: WithoutSeconds }; - QTime readTime (const QString&, KLocale::ReadTimeFlags, bool* = 0) const; + TQTime readTime (const TQString&, KLocale::ReadTimeFlags, bool* = 0) const; %End - QString language () const; - QString country () const; - QStringList languagesTwoAlpha () const; - QStringList languageList () const; + TQString language () const; + TQString country () const; + TQStringList languagesTwoAlpha () const; + TQStringList languageList () const; const char* encoding () const; int encodingMib () const; - QTextCodec* codecForEncoding () const; + TQTextCodec* codecForEncoding () const; %If ( KDE_3_2_0 - ) int fileEncodingMib () const; %End - void setDateFormat (const QString&); - void setDateFormatShort (const QString&); + void setDateFormat (const TQString&); + void setDateFormatShort (const TQString&); %If ( KDE_3_1_0 - ) void setDateMonthNamePossessive (bool); %End - void setTimeFormat (const QString&); + void setTimeFormat (const TQString&); void setWeekStartsMonday (bool); %If ( KDE_3_1_0 - ) void setWeekStartDay (int); %End - QString dateFormat () const; - QString dateFormatShort () const; - QString timeFormat () const; - void setDecimalSymbol (const QString&); - void setThousandsSeparator (const QString&); - void setPositiveSign (const QString&); - void setNegativeSign (const QString&); + TQString dateFormat () const; + TQString dateFormatShort () const; + TQString timeFormat () const; + void setDecimalSymbol (const TQString&); + void setThousandsSeparator (const TQString&); + void setPositiveSign (const TQString&); + void setNegativeSign (const TQString&); void setPositiveMonetarySignPosition (KLocale::SignPosition); void setNegativeMonetarySignPosition (KLocale::SignPosition); void setPositivePrefixCurrencySymbol (bool); void setNegativePrefixCurrencySymbol (bool); void setFracDigits (int); - void setMonetaryThousandsSeparator (const QString&); - void setMonetaryDecimalSymbol (const QString&); - void setCurrencySymbol (const QString&); + void setMonetaryThousandsSeparator (const TQString&); + void setMonetaryDecimalSymbol (const TQString&); + void setCurrencySymbol (const TQString&); int pageSize () const; void setPageSize (int); @@ -196,32 +196,32 @@ public: KLocale::MeasureSystem measureSystem () const; void setMeasureSystem (KLocale::MeasureSystem); - void insertCatalogue (const QString&); - void removeCatalogue (const QString&); - void setActiveCatalogue (const QString&); - QString translateQt (const char*, const char*, const char*) const; + void insertCatalogue (const TQString&); + void removeCatalogue (const TQString&); + void setActiveCatalogue (const TQString&); + TQString translateTQt (const char*, const char*, const char*) const; %If ( KDE_3_1_0 - ) - QStringList allLanguagesTwoAlpha () const; - QString twoAlphaToLanguageName (const QString&) const; - QStringList allCountriesTwoAlpha () const; - QString twoAlphaToCountryName (const QString&) const; + TQStringList allLanguagesTwoAlpha () const; + TQString twoAlphaToLanguageName (const TQString&) const; + TQStringList allCountriesTwoAlpha () const; + TQString twoAlphaToCountryName (const TQString&) const; %End - static void splitLocale (const QString&, QString&, QString&, QString&); + static void splitLocale (const TQString&, TQString&, TQString&, TQString&); static void setMainCatalogue (const char*); - static QString langLookup (const QString&, const char* = "html"); - static QString defaultLanguage (); - static QString defaultCountry (); + static TQString langLookup (const TQString&, const char* = "html"); + static TQString defaultLanguage (); + static TQString defaultCountry (); %If ( KDE_3_0_1 - ) - static QString _initLanguage (KConfigBase*); + static TQString _initLanguage (KConfigBase*); %End - QString formatMoney (const QString&) const; - QString languages () const; -//ig bool setCharset (const QString&); -//ig QString charset () const; + TQString formatMoney (const TQString&) const; + TQString languages () const; +//ig bool setCharset (const TQString&); +//ig TQString charset () const; protected: //ig static void initInstance (); @@ -238,6 +238,6 @@ private: #include <klocale.h> %End -QString i18n (const char*); -QString i18n (const char*, const char*); -QString i18n (const char*, const char*, ulong); +TQString i18n (const char*); +TQString i18n (const char*, const char*); +TQString i18n (const char*, const char*, ulong); diff --git a/sip/tdecore/klockfile.sip b/sip/tdecore/klockfile.sip index 0e1aeb5..984804c 100644 --- a/sip/tdecore/klockfile.sip +++ b/sip/tdecore/klockfile.sip @@ -35,7 +35,7 @@ class KLockFile : KShared public: typedef KSharedPtr<KLockFile> Ptr; - KLockFile (const QString&); + KLockFile (const TQString&); enum LockResult { @@ -57,7 +57,7 @@ public: void unlock (); int staleTime () const; void setStaleTime (int); - bool getLockInfo (int& /Out/, QString& /Out/, QString& /Out/); + bool getLockInfo (int& /Out/, TQString& /Out/, TQString& /Out/); }; // class KLockFile diff --git a/sip/tdecore/kmacroexpander.sip b/sip/tdecore/kmacroexpander.sip index 6316a9d..b70d2df 100644 --- a/sip/tdecore/kmacroexpander.sip +++ b/sip/tdecore/kmacroexpander.sip @@ -38,16 +38,16 @@ class KMacroExpanderBase public: - KMacroExpanderBase (QChar = '%'); - void expandMacros (QString&); - bool expandMacrosShellQuote (QString&, uint& /In, Out/); - bool expandMacrosShellQuote (QString&); - void setEscapeChar (QChar); - QChar escapeChar () const; + KMacroExpanderBase (TQChar = '%'); + void expandMacros (TQString&); + bool expandMacrosShellQuote (TQString&, uint& /In, Out/); + bool expandMacrosShellQuote (TQString&); + void setEscapeChar (TQChar); + TQChar escapeChar () const; protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); + virtual int expandPlainMacro (const TQString&, uint, TQStringList&); + virtual int expandEscapedMacro (const TQString&, uint, TQStringList&); }; // class KMacroExpanderBase @@ -64,12 +64,12 @@ class KWordMacroExpander : KMacroExpanderBase public: - KWordMacroExpander (QChar = '%'); + KWordMacroExpander (TQChar = '%'); protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); - virtual bool expandMacro (const QString&, QStringList&) = 0; + virtual int expandPlainMacro (const TQString&, uint, TQStringList&); + virtual int expandEscapedMacro (const TQString&, uint, TQStringList&); + virtual bool expandMacro (const TQString&, TQStringList&) = 0; }; // class KWordMacroExpander @@ -86,12 +86,12 @@ class KCharMacroExpander : KMacroExpanderBase public: - KCharMacroExpander (QChar = '%'); + KCharMacroExpander (TQChar = '%'); protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); - virtual bool expandMacro (QChar, QStringList&) = 0; + virtual int expandPlainMacro (const TQString&, uint, TQStringList&); + virtual int expandEscapedMacro (const TQString&, uint, TQStringList&); + virtual bool expandMacro (TQChar, TQStringList&) = 0; }; // class KCharMacroExpander @@ -101,22 +101,22 @@ protected: %If ( KDE_3_2_0 - ) namespace KMacroExpander { -QString expandMacros (const QString&, const QMap<QChar,QString>&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap<QChar,QString>&, QChar = '%'); -QString expandMacros (const QString&, const QMap<QString,QString>&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap<QString,QString>&, QChar = '%'); -QString expandMacros (const QString&, const QMap<QChar,QStringList>&, QChar = '%'); -QString expandMacros (const QString&, const QMap<QString,QStringList>&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap<QChar,QStringList>&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap<QString,QStringList>&, QChar = '%'); +TQString expandMacros (const TQString&, const TQMap<TQChar,TQString>&, TQChar = '%'); +TQString expandMacrosShellQuote (const TQString&, const TQMap<TQChar,TQString>&, TQChar = '%'); +TQString expandMacros (const TQString&, const TQMap<TQString,TQString>&, TQChar = '%'); +TQString expandMacrosShellQuote (const TQString&, const TQMap<TQString,TQString>&, TQChar = '%'); +TQString expandMacros (const TQString&, const TQMap<TQChar,TQStringList>&, TQChar = '%'); +TQString expandMacros (const TQString&, const TQMap<TQString,TQStringList>&, TQChar = '%'); +TQString expandMacrosShellQuote (const TQString&, const TQMap<TQChar,TQStringList>&, TQChar = '%'); +TQString expandMacrosShellQuote (const TQString&, const TQMap<TQString,TQStringList>&, TQChar = '%'); }; // namespace KMacroExpander %End -%MappedType QMap<QChar,QString> -//converts a Python dict of QChar:QString +%MappedType TQMap<TQChar,TQString> +//converts a Python dict of TQChar:TQString { %TypeHeaderCode #include <qmap.h> @@ -137,15 +137,15 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, // Get it. - const QMap<QChar,QString> map = *sipCpp; - QMap<QChar,QString>::ConstIterator it; + const TQMap<TQChar,TQString> map = *sipCpp; + TQMap<TQChar,TQString>::ConstIterator it; for (it = map.begin (); it != map.end (); ++it) { - QChar acpp = it.key (); - PyObject *binst = PyString_FromString ((char *)((QString *)&it.data ())); + TQChar acpp = it.key (); + PyObject *binst = PyString_FromString ((char *)((TQString *)&it.data ())); PyObject *ainst; - if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_QChar, sipTransferObj)) == NULL) || (binst == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -161,24 +161,24 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, %ConvertToTypeCode -// Convert a Python dictionary to a QMap<QChar, QString> +// Convert a Python dictionary to a TQMap<TQChar, TQString> if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QChar,QString> *map = new QMap<QChar,QString>; + TQMap<TQChar,TQString> *map = new TQMap<TQChar,TQString>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - QChar *cKey; - QString *sData; + TQChar *cKey; + TQString *sData; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, cKey_state, sData_state; - cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); - sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + cKey = (TQChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + sData = (TQString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); if (iserr) { @@ -203,8 +203,8 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, }; -%MappedType QMap<QString,QStringList> -//converts a Python dict of QString:QStringList +%MappedType TQMap<TQString,TQStringList> +//converts a Python dict of TQString:TQStringList { %TypeHeaderCode #include <qmap.h> @@ -226,15 +226,15 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, // Get it. - const QMap<QString, QStringList> map = *sipCpp; - QMap<QString, QStringList>::ConstIterator it; + const TQMap<TQString, TQStringList> map = *sipCpp; + TQMap<TQString, TQStringList>::ConstIterator it; for (it = map.begin (); it != map.end (); ++it) { - QStringList bcpp = it.data (); - PyObject *ainst = PyString_FromString ((char *)((QString *)&it.key ())); + TQStringList bcpp = it.data (); + PyObject *ainst = PyString_FromString ((char *)((TQString *)&it.key ())); PyObject *binst; - if (((binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) == NULL) + if (((binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_QStringList, sipTransferObj)) == NULL) || (ainst == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -250,24 +250,24 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, %ConvertToTypeCode -// Convert a Python dictionary to a QMap<QString, QStringList> on the heap. +// Convert a Python dictionary to a TQMap<TQString, TQStringList> on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + TQMap<TQString, TQStringList> *map = new TQMap<TQString, TQStringList>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - QString *sKey; - QStringList *slData; + TQString *sKey; + TQStringList *slData; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, sKey_state, slData_state; - sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); - slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + sKey = (TQString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + slData = (TQStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); if (iserr) { @@ -292,8 +292,8 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, }; -%MappedType QMap<QChar,QStringList> -//converts a Python dict of QChar:QStringList +%MappedType TQMap<TQChar,TQStringList> +//converts a Python dict of TQChar:TQStringList { %TypeHeaderCode #include <qmap.h> @@ -315,17 +315,17 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, // Get it. - const QMap<QChar,QStringList> map = *sipCpp; - QMap<QChar,QStringList>::ConstIterator it; + const TQMap<TQChar,TQStringList> map = *sipCpp; + TQMap<TQChar,TQStringList>::ConstIterator it; for (it = map.begin (); it != map.end (); ++it) { - QChar acpp = it.key (); - QStringList bcpp = it.data (); + TQChar acpp = it.key (); + TQStringList bcpp = it.data (); PyObject *binst; PyObject *ainst; - if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) - || (binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) + if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + || (binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_QStringList, sipTransferObj)) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -340,24 +340,24 @@ QString expandMacrosShellQuote (const QString&, const QMap<QString, %ConvertToTypeCode -// Convert a Python dictionary to a QMap<QChar, QStringList> on the heap. +// Convert a Python dictionary to a TQMap<TQChar, TQStringList> on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QChar,QStringList> *map = new QMap<QChar,QStringList>; + TQMap<TQChar,TQStringList> *map = new TQMap<TQChar,TQStringList>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - QChar *cKey; - QStringList *slData; + TQChar *cKey; + TQStringList *slData; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, cKey_state, slData_state; - cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); - slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + cKey = (TQChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + slData = (TQStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); if (iserr) { diff --git a/sip/tdecore/kmanagerselection.sip b/sip/tdecore/kmanagerselection.sip index a43fd2e..99e6ef1 100644 --- a/sip/tdecore/kmanagerselection.sip +++ b/sip/tdecore/kmanagerselection.sip @@ -26,7 +26,7 @@ %If ( KDE_3_2_0 - ) -class KSelectionOwner : QObject +class KSelectionOwner : TQObject { %TypeHeaderCode #include <qdockwindow.h> @@ -36,8 +36,8 @@ class KSelectionOwner : QObject public: - KSelectionOwner (Atom, int = -1, QObject* /TransferThis/ = 0); - KSelectionOwner (const char*, int = -1, QObject* /TransferThis/ = 0); + KSelectionOwner (Atom, int = -1, TQObject* /TransferThis/ = 0); + KSelectionOwner (const char*, int = -1, TQObject* /TransferThis/ = 0); bool claim (bool, bool = 1); void release (); Window ownerWindow () const; @@ -63,7 +63,7 @@ protected: %If ( KDE_3_2_0 - ) -class KSelectionWatcher : QObject +class KSelectionWatcher : TQObject { %TypeHeaderCode #include <qdockwindow.h> @@ -73,8 +73,8 @@ class KSelectionWatcher : QObject public: - KSelectionWatcher (Atom, int = -1, QObject* /TransferThis/ = 0); - KSelectionWatcher (const char*, int = -1, QObject* /TransferThis/ = 0); + KSelectionWatcher (Atom, int = -1, TQObject* /TransferThis/ = 0); + KSelectionWatcher (const char*, int = -1, TQObject* /TransferThis/ = 0); Window owner (); //ig void filterEvent (XEvent*); diff --git a/sip/tdecore/kmdcodec.sip b/sip/tdecore/kmdcodec.sip index e554fc5..f216c19 100644 --- a/sip/tdecore/kmdcodec.sip +++ b/sip/tdecore/kmdcodec.sip @@ -32,24 +32,24 @@ class KCodecs public: - static QCString quotedPrintableEncode (const QByteArray&, bool); - static QCString quotedPrintableEncode (const QCString&, bool = 1); - static void quotedPrintableEncode (const QByteArray&, QByteArray&, bool); - static QCString quotedPrintableDecode (const QByteArray&); - static QCString quotedPrintableDecode (const QCString&); - static void quotedPrintableDecode (const QByteArray&, QByteArray&); - static QCString uuencode (const QByteArray&); - static QCString uuencode (const QCString&); - static void uuencode (const QByteArray&, QByteArray&); - static QCString uudecode (const QByteArray&); - static QCString uudecode (const QCString&); - static void uudecode (const QByteArray&, QByteArray&); - static QCString base64Encode (const QByteArray&, bool); - static QCString base64Encode (const QCString&, bool); - static void base64Encode (const QByteArray&, QByteArray&, bool); - static QCString base64Decode (const QByteArray&); - static QCString base64Decode (const QCString&); - static void base64Decode (const QByteArray&, QByteArray&); + static TQCString quotedPrintableEncode (const TQByteArray&, bool); + static TQCString quotedPrintableEncode (const TQCString&, bool = 1); + static void quotedPrintableEncode (const TQByteArray&, TQByteArray&, bool); + static TQCString quotedPrintableDecode (const TQByteArray&); + static TQCString quotedPrintableDecode (const TQCString&); + static void quotedPrintableDecode (const TQByteArray&, TQByteArray&); + static TQCString uuencode (const TQByteArray&); + static TQCString uuencode (const TQCString&); + static void uuencode (const TQByteArray&, TQByteArray&); + static TQCString uudecode (const TQByteArray&); + static TQCString uudecode (const TQCString&); + static void uudecode (const TQByteArray&, TQByteArray&); + static TQCString base64Encode (const TQByteArray&, bool); + static TQCString base64Encode (const TQCString&, bool); + static void base64Encode (const TQByteArray&, TQByteArray&, bool); + static TQCString base64Decode (const TQByteArray&); + static TQCString base64Decode (const TQCString&); + static void base64Decode (const TQByteArray&, TQByteArray&); private: KCodecs (); @@ -68,21 +68,21 @@ public: //ig typedef uchar Digest[16]; KMD5 (); KMD5 (const char*, int = -1); - KMD5 (const QByteArray&); - KMD5 (const QCString&); + KMD5 (const TQByteArray&); + KMD5 (const TQCString&); void update (const char*, int = -1); //igx void update (const uchar*, int = -1); - void update (const QByteArray&); - void update (const QCString&); - bool update (QIODevice&); + void update (const TQByteArray&); + void update (const TQCString&); + bool update (TQIODevice&); void reset (); //ig const Digest& rawDigest (); //ig void rawDigest (KMD5::Digest&); - QCString hexDigest (); - void hexDigest (QCString&); - QCString base64Digest (); + TQCString hexDigest (); + void hexDigest (TQCString&); + TQCString base64Digest (); //ig bool verify (const KMD5::Digest&); - bool verify (const QCString&); + bool verify (const TQCString&); protected: @@ -127,21 +127,21 @@ public: //ig typedef uchar Digest[16]; KMD4 (); KMD4 (const char*, int = -1); - KMD4 (const QByteArray&); - KMD4 (const QCString&); + KMD4 (const TQByteArray&); + KMD4 (const TQCString&); void update (const char*, int = -1); //igx void update (const uchar*, int = -1); - void update (const QByteArray&); - void update (const QCString&); - bool update (QIODevice&); + void update (const TQByteArray&); + void update (const TQCString&); + bool update (TQIODevice&); void reset (); //ig const Digest& rawDigest (); //ig void rawDigest (KMD4::Digest&); - QCString hexDigest (); - void hexDigest (QCString&); - QCString base64Digest (); + TQCString hexDigest (); + void hexDigest (TQCString&); + TQCString base64Digest (); //ig bool verify (const KMD4::Digest&); - bool verify (const QCString&); + bool verify (const TQCString&); protected: //ig void transform (ulong, const ulong); diff --git a/sip/tdecore/kmimesourcefactory.sip b/sip/tdecore/kmimesourcefactory.sip index b15e8d3..77ff521 100644 --- a/sip/tdecore/kmimesourcefactory.sip +++ b/sip/tdecore/kmimesourcefactory.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KMimeSourceFactory : QMimeSourceFactory +class KMimeSourceFactory : TQMimeSourceFactory { %TypeHeaderCode #include <kmimesourcefactory.h> @@ -33,7 +33,7 @@ class KMimeSourceFactory : QMimeSourceFactory public: KMimeSourceFactory (KIconLoader* = KGlobal ::iconLoader ()); - virtual QString makeAbsolute (const QString&, const QString&) const; + virtual TQString makeAbsolute (const TQString&, const TQString&) const; protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/tdecore/kmountpoint.sip b/sip/tdecore/kmountpoint.sip index 13f22da..693186a 100644 --- a/sip/tdecore/kmountpoint.sip +++ b/sip/tdecore/kmountpoint.sip @@ -35,7 +35,7 @@ class KMountPoint : KShared public: //ig typedef KSharedPtr<KMountPoint> Ptr; -//ig typedef QValueList<KMountPoint::Ptr> List; +//ig typedef TQValueList<KMountPoint::Ptr> List; public: @@ -47,14 +47,14 @@ public: static KMountPoint::List possibleMountPoints (int = 0); static KMountPoint::List currentMountPoints (int = 0); - QString mountedFrom () const; - QString realDeviceName () const; - QString mountPoint () const; - QString mountType () const; - QStringList mountOptions () const; + TQString mountedFrom () const; + TQString realDeviceName () const; + TQString mountPoint () const; + TQString mountType () const; + TQStringList mountOptions () const; %If ( KDE_3_4_0 - ) - static QString devNameFromOptions (const QStringList&); + static TQString devNameFromOptions (const TQStringList&); %End diff --git a/sip/tdecore/kmultipledrag.sip b/sip/tdecore/kmultipledrag.sip index b064d01..9889afb 100644 --- a/sip/tdecore/kmultipledrag.sip +++ b/sip/tdecore/kmultipledrag.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KMultipleDrag : QDragObject +class KMultipleDrag : TQDragObject { %TypeHeaderCode #include <kmultipledrag.h> @@ -32,11 +32,11 @@ class KMultipleDrag : QDragObject public: - KMultipleDrag (QWidget* = 0, const char* = 0); - void addDragObject (QDragObject*); + KMultipleDrag (TQWidget* = 0, const char* = 0); + void addDragObject (TQDragObject*); %If ( KDE_3_5_0 - ) - virtual QByteArray encodedData (const char*) const; + virtual TQByteArray encodedData (const char*) const; virtual const char* format (int) const; %End @@ -49,7 +49,7 @@ protected: protected: %If ( - KDE_3_5_0 ) - virtual QByteArray encodedData (const char*) const; + virtual TQByteArray encodedData (const char*) const; virtual const char* format (int) const; %End diff --git a/sip/tdecore/knotifyclient.sip b/sip/tdecore/knotifyclient.sip index a5a5adf..d0aeb62 100644 --- a/sip/tdecore/knotifyclient.sip +++ b/sip/tdecore/knotifyclient.sip @@ -85,23 +85,23 @@ enum StandardEvent bool startDaemon (); %If ( KDE_3_2_0 - ) -int event (const QString&, const QString& = QString ::null ); -int event (KNotifyClient::StandardEvent, const QString& = QString ::null ); +int event (const TQString&, const TQString& = TQString ::null ); +int event (KNotifyClient::StandardEvent, const TQString& = TQString ::null ); %If ( KDE_3_2_1 - ) -int userEvent (const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +int userEvent (const TQString& = TQString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const TQString& = TQString ::null , const TQString& = TQString ::null ); %End -int event (int, const QString&, const QString& = QString ::null ); -int event (int, KNotifyClient::StandardEvent, const QString& = QString ::null ); -int userEvent (int, const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +int event (int, const TQString&, const TQString& = TQString ::null ); +int event (int, KNotifyClient::StandardEvent, const TQString& = TQString ::null ); +int userEvent (int, const TQString& = TQString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const TQString& = TQString ::null , const TQString& = TQString ::null ); %End -void beep (const QString& = QString ::null ); -int getPresentation (const QString&); -QString getFile (const QString&, int); -int getDefaultPresentation (const QString&); -QString getDefaultFile (const QString&, int); +void beep (const TQString& = TQString ::null ); +int getPresentation (const TQString&); +TQString getFile (const TQString&, int); +int getDefaultPresentation (const TQString&); +TQString getDefaultFile (const TQString&, int); KInstance* instance (); %If ( KDE_3_1_0 - KDE_3_2_0 ) diff --git a/sip/tdecore/kpalette.sip b/sip/tdecore/kpalette.sip index 8989844..d2e177c 100644 --- a/sip/tdecore/kpalette.sip +++ b/sip/tdecore/kpalette.sip @@ -32,14 +32,14 @@ class KPalette public: - static QStringList getPaletteList (); - KPalette (const QString& = QString ::null ); + static TQStringList getPaletteList (); + KPalette (const TQString& = TQString ::null ); KPalette (const KPalette&); bool save (); - QString description (); - void setDescription (const QString&); - QString name (); - void setName (const QString&); + TQString description (); + void setDescription (const TQString&); + TQString name (); + void setName (const TQString&); enum Editable { @@ -51,13 +51,13 @@ public: Editable editable (); void setEditable (KPalette::Editable); int nrColors (); - QColor color (int); - int findColor (const QColor&); - QString colorName (int); - QString colorName (const QColor&); - int addColor (const QColor&, const QString& = QString ::null ); - int changeColor (int, const QColor&, const QString& = QString ::null ); - int changeColor (const QColor&, const QColor&, const QString& = QString ::null ); + TQColor color (int); + int findColor (const TQColor&); + TQString colorName (int); + TQString colorName (const TQColor&); + int addColor (const TQColor&, const TQString& = TQString ::null ); + int changeColor (int, const TQColor&, const TQString& = TQString ::null ); + int changeColor (const TQColor&, const TQColor&, const TQString& = TQString ::null ); }; // class KPalette diff --git a/sip/tdecore/kpixmapprovider.sip b/sip/tdecore/kpixmapprovider.sip index 5909306..3b2cf8d 100644 --- a/sip/tdecore/kpixmapprovider.sip +++ b/sip/tdecore/kpixmapprovider.sip @@ -32,7 +32,7 @@ class KPixmapProvider public: - virtual QPixmap pixmapFor (const QString&, int = 0) = 0; + virtual TQPixmap pixmapFor (const TQString&, int = 0) = 0; protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/tdecore/kprocctrl.sip b/sip/tdecore/kprocctrl.sip index c437dd8..11605ce 100644 --- a/sip/tdecore/kprocctrl.sip +++ b/sip/tdecore/kprocctrl.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KProcessController : QObject +class KProcessController : TQObject { %TypeHeaderCode #include <kprocctrl.h> diff --git a/sip/tdecore/kprocess.sip b/sip/tdecore/kprocess.sip index 53ab178..c701423 100644 --- a/sip/tdecore/kprocess.sip +++ b/sip/tdecore/kprocess.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KProcess : QObject +class KProcess : TQObject { %TypeHeaderCode #include <kprocess.h> @@ -61,17 +61,17 @@ public: OwnGroup }; - KProcess (QObject* /TransferThis/, const char* = 0); + KProcess (TQObject* /TransferThis/, const char* = 0); %End KProcess (); - bool setExecutable (const QString&); + bool setExecutable (const TQString&); %If ( KDE_3_1_4 - ) - KProcess& operator << (const QString&); + KProcess& operator << (const TQString&); KProcess& operator << (const char*); - KProcess& operator << (const QCString&); - KProcess& operator << (const QStringList&); + KProcess& operator << (const TQCString&); + KProcess& operator << (const TQStringList&); %End void clearArguments (); @@ -110,15 +110,15 @@ public: void closeAll (); %End - const QValueList<QCString>& args (); + const TQValueList<TQCString>& args (); void setRunPrivileged (bool); bool runPrivileged () const; - void setEnvironment (const QString&, const QString&); - void setWorkingDirectory (const QString&); + void setEnvironment (const TQString&, const TQString&); + void setWorkingDirectory (const TQString&); %If ( KDE_3_1_0 - ) void setUseShell (bool, const char* = 0); - static QString quote (const QString&); + static TQString quote (const TQString&); %End void detach (); @@ -256,7 +256,7 @@ class KShellProcess : KProcess public: KShellProcess (const char* = 0); virtual bool start (RunMode = NotifyOnExit , Communication = NoCommunication ); - static QString quote (const QString&); + static TQString quote (const TQString&); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/tdecore/kprocio.sip b/sip/tdecore/kprocio.sip index bb99e9a..1c15c2a 100644 --- a/sip/tdecore/kprocio.sip +++ b/sip/tdecore/kprocio.sip @@ -32,20 +32,20 @@ class KProcIO : KProcess public: - KProcIO (QTextCodec* = 0); + KProcIO (TQTextCodec* = 0); %If ( KDE_3_2_0 - ) void setComm (Communication); %End bool start (RunMode = NotifyOnExit , bool = 0); - bool writeStdin (const QString&, bool = 1); - bool writeStdin (const QCString&, bool); - bool writeStdin (const QByteArray&); - bool fputs (const QString&, bool = 1); + bool writeStdin (const TQString&, bool = 1); + bool writeStdin (const TQCString&, bool); + bool writeStdin (const TQByteArray&); + bool fputs (const TQString&, bool = 1); void closeWhenDone (); - int readln (QString& /Out/, bool = 1, bool* = 0); - int fgets (QString&, bool = 0); + int readln (TQString& /Out/, bool = 1, bool* = 0); + int fgets (TQString&, bool = 0); void resetAll (); void ackRead (); void enableReadSignals (bool); diff --git a/sip/tdecore/krandomsequence.sip b/sip/tdecore/krandomsequence.sip index 34474f4..8145866 100644 --- a/sip/tdecore/krandomsequence.sip +++ b/sip/tdecore/krandomsequence.sip @@ -38,7 +38,7 @@ public: double getDouble (); ulong getLong (ulong); bool getBool (); -//ig void randomize (QGList*); +//ig void randomize (TQGList*); void modulate (int); }; // class KRandomSequence diff --git a/sip/tdecore/krfcdate.sip b/sip/tdecore/krfcdate.sip index 7628e37..3a7a1ee 100644 --- a/sip/tdecore/krfcdate.sip +++ b/sip/tdecore/krfcdate.sip @@ -32,11 +32,11 @@ class KRFCDate public: - static time_t parseDate (const QString&); - static time_t parseDateISO8601 (const QString&); + static time_t parseDate (const TQString&); + static time_t parseDateISO8601 (const TQString&); static int localUTCOffset (); - static QCString rfc2822DateString (time_t, int); - static QCString rfc2822DateString (time_t); + static TQCString rfc2822DateString (time_t, int); + static TQCString rfc2822DateString (time_t); }; // class KRFCDate diff --git a/sip/tdecore/krootprop.sip b/sip/tdecore/krootprop.sip index 66d3d72..4f5cd83 100644 --- a/sip/tdecore/krootprop.sip +++ b/sip/tdecore/krootprop.sip @@ -32,20 +32,20 @@ class KRootProp public: - KRootProp (const QString& = QString ::null ); - void setProp (const QString& = ""); - QString prop () const; + KRootProp (const TQString& = TQString ::null ); + void setProp (const TQString& = ""); + TQString prop () const; void destroy (); - QString readEntry (const QString&, const QString& = QString ::null ) const; - int readNumEntry (const QString&, int = 0) const; - QFont readFontEntry (const QString&, const QFont* = 0) const; - QColor readColorEntry (const QString&, const QColor* = 0) const; - QString writeEntry (const QString&, const QString&); - QString writeEntry (const QString&, int); - QString writeEntry (const QString&, const QFont&); - QString writeEntry (const QString&, const QColor&); - QString removeEntry (const QString&); - QStringList listEntries () const; + TQString readEntry (const TQString&, const TQString& = TQString ::null ) const; + int readNumEntry (const TQString&, int = 0) const; + TQFont readFontEntry (const TQString&, const TQFont* = 0) const; + TQColor readColorEntry (const TQString&, const TQColor* = 0) const; + TQString writeEntry (const TQString&, const TQString&); + TQString writeEntry (const TQString&, int); + TQString writeEntry (const TQString&, const TQFont&); + TQString writeEntry (const TQString&, const TQColor&); + TQString removeEntry (const TQString&); + TQStringList listEntries () const; void sync (); }; // class KRootProp diff --git a/sip/tdecore/ksavefile.sip b/sip/tdecore/ksavefile.sip index 84975c9..f9e917b 100644 --- a/sip/tdecore/ksavefile.sip +++ b/sip/tdecore/ksavefile.sip @@ -32,19 +32,19 @@ class KSaveFile public: - KSaveFile (const QString&, int = 438); + KSaveFile (const TQString&, int = 438); int status (); - QString name (); + TQString name (); int handle (); //ig FILE* fstream (); - QFile* file (); - QTextStream* textStream (); - QDataStream* dataStream (); + TQFile* file (); + TQTextStream* textStream (); + TQDataStream* dataStream (); void abort (); bool close (); %If ( KDE_3_2_0 - ) - static bool backupFile (const QString&, const QString& = QString ::null , const QString& = QString ::fromLatin1 ("~" )); + static bool backupFile (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::fromLatin1 ("~" )); %End diff --git a/sip/tdecore/kshell.sip b/sip/tdecore/kshell.sip index 3285446..befb606 100644 --- a/sip/tdecore/kshell.sip +++ b/sip/tdecore/kshell.sip @@ -48,12 +48,12 @@ enum Errors FoundMeta }; -QStringList splitArgs (const QString&, int = 0, int* = 0); -QString joinArgs (const QStringList&); -QString joinArgsDQ (const QStringList&); -QString joinArgs (SIP_PYLIST) [QString (const char**, int = -1)]; +TQStringList splitArgs (const TQString&, int = 0, int* = 0); +TQString joinArgs (const TQStringList&); +TQString joinArgsDQ (const TQStringList&); +TQString joinArgs (SIP_PYLIST) [TQString (const char**, int = -1)]; %MethodCode -//returns (QString) +//returns (TQString) //takes a0 | a Python list of strings int argc; char **argv; @@ -64,13 +64,13 @@ QString joinArgs (SIP_PYLIST) [QString (const char**, int = -1)]; return NULL; Py_BEGIN_ALLOW_THREADS - sipRes = new QString (KShell::joinArgs (argv, argc)); + sipRes = new TQString (KShell::joinArgs (argv, argc)); Py_END_ALLOW_THREADS %End -QString tildeExpand (const QString&); -QString homeDir (const QString&); +TQString tildeExpand (const TQString&); +TQString homeDir (const TQString&); }; // namespace KShell %End diff --git a/sip/tdecore/kshortcut.sip b/sip/tdecore/kshortcut.sip index bfc03c9..9e7c745 100644 --- a/sip/tdecore/kshortcut.sip +++ b/sip/tdecore/kshortcut.sip @@ -43,7 +43,7 @@ public: enum { - QtWIN + TQtWIN }; %End @@ -59,17 +59,17 @@ public: KKey (); KKey (int); - KKey (const QKeySequence&); - KKey (const QKeyEvent*); + KKey (const TQKeySequence&); + KKey (const TQKeyEvent*); KKey (const KKey&); - KKey (const QString&); + KKey (const TQString&); KKey (uint, uint); void clear (); bool init (int); - bool init (const QKeySequence&); - bool init (const QKeyEvent*); + bool init (const TQKeySequence&); + bool init (const TQKeyEvent*); bool init (const KKey&); - bool init (const QString&); + bool init (const TQString&); bool init (uint, uint); bool isNull () const; uint sym () const; @@ -82,17 +82,17 @@ public: bool operator < (const KKey&) const; %End - int keyCodeQt () const; - QString toString () const; - QString toStringInternal () const; + int keyCodeTQt () const; + TQString toString () const; + TQString toStringInternal () const; void simplify (); static KKey& null (); - static QString modFlagLabel (KKey::ModFlag); + static TQString modFlagLabel (KKey::ModFlag); public: %If ( - KDE_3_2_0 ) -//ig bool isValidQt () const; +//ig bool isValidTQt () const; //ig bool isValidNative () const; %End @@ -103,7 +103,7 @@ public: enum { - QtWIN + TQtWIN }; %End @@ -115,7 +115,7 @@ public: enum { - QtWIN + TQtWIN }; %End @@ -139,17 +139,17 @@ public: }; KKeySequence (); - KKeySequence (const QKeySequence&); + KKeySequence (const TQKeySequence&); KKeySequence (const KKey&); //ig KKeySequence (const KKeyNative&); KKeySequence (const KKeySequence&); - KKeySequence (const QString&); + KKeySequence (const TQString&); void clear (); - bool init (const QKeySequence&); + bool init (const TQKeySequence&); bool init (const KKey&); //ig bool init (const KKeyNative&); bool init (const KKeySequence&); - bool init (const QString&); + bool init (const TQString&); uint count () const; const KKey& key (uint) const; bool isTriggerOnRelease () const; @@ -164,10 +164,10 @@ public: bool operator < (const KKeySequence&) const; %End - QKeySequence qt () const; - int keyCodeQt () const; - QString toString () const; - QString toStringInternal () const; + TQKeySequence qt () const; + int keyCodeTQt () const; + TQString toString () const; + TQString toStringInternal () const; static KKeySequence& null (); protected: @@ -193,27 +193,27 @@ public: enum { - MAX_SEQUENCES + MAX_SETQUENCES }; KShortcut (); KShortcut (int); - KShortcut (const QKeySequence&); + KShortcut (const TQKeySequence&); KShortcut (const KKey&); KShortcut (const KKeySequence&); KShortcut (const KShortcut&); KShortcut (const char*); - KShortcut (const QString&); + KShortcut (const TQString&); void clear (); bool init (int); - bool init (const QKeySequence&); + bool init (const TQKeySequence&); bool init (const KKey&); bool init (const KKeySequence&); bool init (const KShortcut&); - bool init (const QString&); + bool init (const TQString&); uint count () const; const KKeySequence& seq (uint) const; - int keyCodeQt () const; + int keyCodeTQt () const; bool isNull () const; int compare (const KShortcut&) const; @@ -241,11 +241,11 @@ public: %If ( KDE_3_1_4 - ) -//ig operator QKeySequence () const; +//ig operator TQKeySequence () const; %End - QString toString () const; - QString toStringInternal (const KShortcut* = 0) const; + TQString toString () const; + TQString toStringInternal (const KShortcut* = 0) const; static KShortcut& null (); protected: diff --git a/sip/tdecore/kshortcutlist.sip b/sip/tdecore/kshortcutlist.sip index cdf22c9..ee3c6fc 100644 --- a/sip/tdecore/kshortcutlist.sip +++ b/sip/tdecore/kshortcutlist.sip @@ -36,15 +36,15 @@ class KShortcutList public: KShortcutList (); virtual uint count () const = 0; - virtual QString name (uint) const = 0; - virtual QString label (uint) const = 0; - virtual QString whatsThis (uint) const = 0; + virtual TQString name (uint) const = 0; + virtual TQString label (uint) const = 0; + virtual TQString whatsThis (uint) const = 0; virtual const KShortcut& shortcut (uint) const = 0; virtual const KShortcut& shortcutDefault (uint) const = 0; virtual bool isConfigurable (uint) const = 0; virtual bool setShortcut (uint, const KShortcut&) = 0; virtual bool isGlobal (uint) const; - virtual int index (const QString&) const; + virtual int index (const TQString&) const; virtual int index (const KKeySequence&) const; virtual const KInstance* instance () const; @@ -53,11 +53,11 @@ public: }; - virtual QVariant getOther (KShortcutList::Other, uint) const = 0; - virtual bool setOther (KShortcutList::Other, uint, QVariant) = 0; + virtual TQVariant getOther (KShortcutList::Other, uint) const = 0; + virtual bool setOther (KShortcutList::Other, uint, TQVariant) = 0; virtual bool save () const = 0; - virtual bool readSettings (const QString& = QString ::null , KConfigBase* = 0); - virtual bool writeSettings (const QString& = QString ::null , KConfigBase* = 0, bool = 0, bool = 0) const; + virtual bool readSettings (const TQString& = TQString ::null , KConfigBase* = 0); + virtual bool writeSettings (const TQString& = TQString ::null , KConfigBase* = 0, bool = 0, bool = 0) const; protected: //igx virtual void virtual_hook (int, void*); @@ -79,16 +79,16 @@ public: KAccelShortcutList (KGlobalAccel*); KAccelShortcutList (KAccelActions&, bool); virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; + virtual TQString name (uint) const; + virtual TQString label (uint) const; + virtual TQString whatsThis (uint) const; virtual const KShortcut& shortcut (uint) const; virtual const KShortcut& shortcutDefault (uint) const; virtual bool isConfigurable (uint) const; virtual bool setShortcut (uint, const KShortcut&); virtual bool isGlobal (uint) const; - virtual QVariant getOther (KShortcutList::Other, uint) const; - virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual TQVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, TQVariant); virtual bool save () const; protected: @@ -113,15 +113,15 @@ class ShortcutList : KShortcutList public: ShortcutList (); virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; + virtual TQString name (uint) const; + virtual TQString label (uint) const; + virtual TQString whatsThis (uint) const; virtual const KShortcut& shortcut (uint) const; virtual const KShortcut& shortcutDefault (uint) const; virtual bool isConfigurable (uint) const; virtual bool setShortcut (uint, const KShortcut&); - virtual QVariant getOther (KShortcutList::Other, uint) const; - virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual TQVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, TQVariant); virtual bool save () const; protected: diff --git a/sip/tdecore/ksimpleconfig.sip b/sip/tdecore/ksimpleconfig.sip index 17b70a3..20d17b9 100644 --- a/sip/tdecore/ksimpleconfig.sip +++ b/sip/tdecore/ksimpleconfig.sip @@ -32,7 +32,7 @@ class KSimpleConfig : KConfig public: - KSimpleConfig (const QString&, bool = 0); + KSimpleConfig (const TQString&, bool = 0); %If ( KDE_3_2_0 - ) KSimpleConfig (KConfigBackEnd*, bool = 0); diff --git a/sip/tdecore/ksock.sip b/sip/tdecore/ksock.sip index 5cb653e..5178dec 100644 --- a/sip/tdecore/ksock.sip +++ b/sip/tdecore/ksock.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KSocket : QObject +class KSocket : TQObject { %TypeHeaderCode #include <ksock.h> @@ -49,7 +49,7 @@ public slots: void slotRead (int); protected: - bool connect (const QString&, ushort, int = 0); + bool connect (const TQString&, ushort, int = 0); bool connect (const char*); private: @@ -58,7 +58,7 @@ private: }; // class KSocket -class KServerSocket : QObject +class KServerSocket : TQObject { %TypeHeaderCode #include <ksock.h> diff --git a/sip/tdecore/kstartupinfo.sip b/sip/tdecore/kstartupinfo.sip index 319ee2d..b4e78cc 100644 --- a/sip/tdecore/kstartupinfo.sip +++ b/sip/tdecore/kstartupinfo.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KStartupInfo : QObject +class KStartupInfo : TQObject { %TypeHeaderCode #include <kstartupinfo.h> @@ -40,12 +40,12 @@ public: static void appStarted (); %If ( KDE_3_2_0 - ) - static void appStarted (const QCString&); - static void setNewStartupId (QWidget*, const QCString&); + static void appStarted (const TQCString&); + static void setNewStartupId (TQWidget*, const TQCString&); static void silenceStartup (bool); %If ( KDE_3_3_0 - ) - static QCString createNewStartupId (); + static TQCString createNewStartupId (); %End %End @@ -62,7 +62,7 @@ public: %End - KStartupInfo (bool, QObject* /TransferThis/ = 0, const char* = 0); + KStartupInfo (bool, TQObject* /TransferThis/ = 0, const char* = 0); static bool sendStartup (const KStartupInfoId&, const KStartupInfoData&); //ig static bool sendStartupX (Display*, const KStartupInfoId&, const KStartupInfoData&); static bool sendChange (const KStartupInfoId&, const KStartupInfoData&); @@ -86,8 +86,8 @@ public: KStartupInfo::startup_t checkStartup (WId, KStartupInfoData&); KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&, KStartupInfoData&); void setTimeout (uint); - static void setWindowStartupId (WId, const QCString&); - static QCString windowStartupId (WId); + static void setWindowStartupId (WId, const TQCString&); + static TQCString windowStartupId (WId); %If ( KDE_3_2_0 - ) static void handleAutoAppStartedSending (); @@ -100,7 +100,7 @@ signals: void gotRemoveStartup (const KStartupInfoId&, const KStartupInfoData&); protected: - virtual void customEvent (QCustomEvent*); + virtual void customEvent (TQCustomEvent*); }; // class KStartupInfo @@ -120,8 +120,8 @@ public: %End bool none () const; - void initId (const QCString& = ""); - const QCString& id () const; + void initId (const TQCString& = ""); + const TQCString& id () const; %If ( KDE_3_3_0 - ) ulong timestamp () const; @@ -137,7 +137,7 @@ public: private: - KStartupInfoId (const QString&); + KStartupInfoId (const TQString&); }; // class KStartupInfoId @@ -150,31 +150,31 @@ class KStartupInfoData public: - void setBin (const QString&); - const QString& bin () const; - void setName (const QString&); - const QString& findName () const; - const QString& name () const; + void setBin (const TQString&); + const TQString& bin () const; + void setName (const TQString&); + const TQString& findName () const; + const TQString& name () const; %If ( KDE_3_2_0 - ) - void setDescription (const QString&); - const QString& findDescription () const; - const QString& description () const; + void setDescription (const TQString&); + const TQString& findDescription () const; + const TQString& description () const; %End - void setIcon (const QString&); - const QString& findIcon () const; - const QString& icon () const; + void setIcon (const TQString&); + const TQString& findIcon () const; + const TQString& icon () const; void setDesktop (int); int desktop () const; - void setWMClass (const QCString&); - const QCString findWMClass () const; - const QCString& WMClass () const; + void setWMClass (const TQCString&); + const TQCString findWMClass () const; + const TQCString& WMClass () const; void addPid (pid_t); - const QValueList<int>& pids () const; + const TQValueList<int>& pids () const; bool is_pid (pid_t) const; - void setHostname (const QCString& = QCString ()); - const QCString& hostname () const; + void setHostname (const TQCString& = TQCString ()); + const TQCString& hostname () const; %If ( KDE_3_1_1 - ) @@ -202,11 +202,11 @@ public: KStartupInfoData (const KStartupInfoData&); private: - KStartupInfoData (const QString&); + KStartupInfoData (const TQString&); }; // class KStartupInfoData -/*%MappedType QValueList<pid_t> +/*%MappedType TQValueList<pid_t> //converts a Python list of long { %TypeHeaderCode @@ -242,7 +242,7 @@ private: %End %ConvertToTypeCode - // Convert a Python list of long to a QValueList<long> on the heap. + // Convert a Python list of long to a TQValueList<long> on the heap. if (sipIsErr == NULL) return PyList_Check(sipPy); @@ -254,7 +254,7 @@ private: return 0; } - QValueList<pid_t> *qvl = new QValueList<pid_t>; + TQValueList<pid_t> *qvl = new TQValueList<pid_t>; PyErr_Clear(); diff --git a/sip/tdecore/kstdaccel.sip b/sip/tdecore/kstdaccel.sip index f0ecb36..c32d1fb 100644 --- a/sip/tdecore/kstdaccel.sip +++ b/sip/tdecore/kstdaccel.sip @@ -90,9 +90,9 @@ enum StdAccel %End const KShortcut& shortcut (KStdAccel::StdAccel); -QString name (KStdAccel::StdAccel); -QString label (KStdAccel::StdAccel); -QString whatsThis (KStdAccel::StdAccel); +TQString name (KStdAccel::StdAccel); +TQString label (KStdAccel::StdAccel); +TQString whatsThis (KStdAccel::StdAccel); KStdAccel::StdAccel findStdAccel (const KKeySequence&); KShortcut shortcutDefault (KStdAccel::StdAccel); KShortcut shortcutDefault3 (KStdAccel::StdAccel); @@ -162,11 +162,11 @@ const KShortcut& forwardWord (); %End const KShortcut& showMenubar (); -QString action (KStdAccel::StdAccel); -QString description (KStdAccel::StdAccel); +TQString action (KStdAccel::StdAccel); +TQString description (KStdAccel::StdAccel); int key (KStdAccel::StdAccel); int defaultKey (KStdAccel::StdAccel); -bool isEqual (const QKeyEvent*, int); +bool isEqual (const TQKeyEvent*, int); %If ( KDE_3_3_0 - KDE_3_4_0 ) diff --git a/sip/tdecore/kstddirs.sip b/sip/tdecore/kstddirs.sip index c83819c..72046ec 100644 --- a/sip/tdecore/kstddirs.sip +++ b/sip/tdecore/kstddirs.sip @@ -33,27 +33,27 @@ class KStandardDirs public: KStandardDirs (); - void addPrefix (const QString&); - bool addResourceType (const char*, const QString&); - bool addResourceDir (const char*, const QString&); - QString findResource (const char*, const QString&) const; - Q_UINT32 calcResourceHash (const char*, const QString&, bool) const; - QStringList findDirs (const char*, const QString&) const; - QString findResourceDir (const char*, const QString&) const; - QStringList findAllResources (const char*, const QString& = QString::null, bool = 0, bool = 0) const; - QStringList findAllResources (const char*, const QString&, bool, bool, QStringList&) const; - static QString findExe (const QString&, const QString& = QString::null, bool = 0); - static int findAllExe (QStringList&, const QString&, const QString& = QString::null, bool = 0); + void addPrefix (const TQString&); + bool addResourceType (const char*, const TQString&); + bool addResourceDir (const char*, const TQString&); + TQString findResource (const char*, const TQString&) const; + Q_UINT32 calcResourceHash (const char*, const TQString&, bool) const; + TQStringList findDirs (const char*, const TQString&) const; + TQString findResourceDir (const char*, const TQString&) const; + TQStringList findAllResources (const char*, const TQString& = TQString::null, bool = 0, bool = 0) const; + TQStringList findAllResources (const char*, const TQString&, bool, bool, TQStringList&) const; + static TQString findExe (const TQString&, const TQString& = TQString::null, bool = 0); + static int findAllExe (TQStringList&, const TQString&, const TQString& = TQString::null, bool = 0); void addKDEDefaults (); bool addCustomized (KConfig*); - QStringList resourceDirs (const char*) const; - QStringList allTypes () const; - QString saveLocation (const char*, const QString& = QString::null, bool = 1) const; - static bool makeDir (const QString&, int = 493); - static QString kde_default (const char*); - QString kfsstnd_prefixes (); - QString localkdedir () const; - static bool exists (const QString&); + TQStringList resourceDirs (const char*) const; + TQStringList allTypes () const; + TQString saveLocation (const char*, const TQString& = TQString::null, bool = 1) const; + static bool makeDir (const TQString&, int = 493); + static TQString kde_default (const char*); + TQString kfsstnd_prefixes (); + TQString localkdedir () const; + static bool exists (const TQString&); private: KStandardDirs (const KStandardDirs&); @@ -65,5 +65,5 @@ private: #include <kstddirs.h> %End -QString locate (const char*, const QString&, const KInstance* = KGlobal::instance()); -QString locateLocal (const char*, const QString&, const KInstance* = KGlobal::instance()); +TQString locate (const char*, const TQString&, const KInstance* = KGlobal::instance()); +TQString locateLocal (const char*, const TQString&, const KInstance* = KGlobal::instance()); diff --git a/sip/tdecore/kstringhandler.sip b/sip/tdecore/kstringhandler.sip index 3084b52..90cfd11 100644 --- a/sip/tdecore/kstringhandler.sip +++ b/sip/tdecore/kstringhandler.sip @@ -32,58 +32,58 @@ class KStringHandler public: - static QString word (const QString&, uint); - static QString word (const QString&, const char*); - static QString insword (const QString&, const QString&, uint); - static QString setword (const QString&, const QString&, uint); - static QString remrange (const QString&, const char*); - static QString remword (const QString&, uint); - static QString remword (const QString&, const QString&); - static QString capwords (const QString&); - static QStringList capwords (const QStringList&); - static QString reverse (const QString&); - static QStringList reverse (const QStringList&); - static QString ljust (const QString&, uint); - static QString rjust (const QString&, uint); - static QString center (const QString&, uint); - static QString lsqueeze (const QString&, uint = 40); + static TQString word (const TQString&, uint); + static TQString word (const TQString&, const char*); + static TQString insword (const TQString&, const TQString&, uint); + static TQString setword (const TQString&, const TQString&, uint); + static TQString remrange (const TQString&, const char*); + static TQString remword (const TQString&, uint); + static TQString remword (const TQString&, const TQString&); + static TQString capwords (const TQString&); + static TQStringList capwords (const TQStringList&); + static TQString reverse (const TQString&); + static TQStringList reverse (const TQStringList&); + static TQString ljust (const TQString&, uint); + static TQString rjust (const TQString&, uint); + static TQString center (const TQString&, uint); + static TQString lsqueeze (const TQString&, uint = 40); %If ( KDE_3_2_0 - ) - static QString lEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString lPixelSqueeze (const QString&, const QFontMetrics&, uint); + static TQString lEmSqueeze (const TQString&, const TQFontMetrics&, uint = 30); + static TQString lPixelSqueeze (const TQString&, const TQFontMetrics&, uint); %End - static QString csqueeze (const QString&, uint = 40); + static TQString csqueeze (const TQString&, uint = 40); %If ( KDE_3_2_0 - ) - static QString cEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString cPixelSqueeze (const QString&, const QFontMetrics&, uint); + static TQString cEmSqueeze (const TQString&, const TQFontMetrics&, uint = 30); + static TQString cPixelSqueeze (const TQString&, const TQFontMetrics&, uint); %End - static QString rsqueeze (const QString&, uint = 40); + static TQString rsqueeze (const TQString&, uint = 40); %If ( KDE_3_2_0 - ) - static QString rEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString rPixelSqueeze (const QString&, const QFontMetrics&, uint); + static TQString rEmSqueeze (const TQString&, const TQFontMetrics&, uint = 30); + static TQString rPixelSqueeze (const TQString&, const TQFontMetrics&, uint); %End - static bool matchFileName (const QString&, const QString&); -//ig static QStringList perlSplit (const QString&, const QString&, uint = 0); -//ig static QStringList perlSplit (const QChar&, const QString&, uint = 0); -//ig static QStringList perlSplit (const QRegExp&, const QString&, uint = 0); + static bool matchFileName (const TQString&, const TQString&); +//ig static TQStringList perlSplit (const TQString&, const TQString&, uint = 0); +//ig static TQStringList perlSplit (const TQChar&, const TQString&, uint = 0); +//ig static TQStringList perlSplit (const TQRegExp&, const TQString&, uint = 0); %If ( KDE_3_1_0 - ) - static QString tagURLs (const QString&); + static TQString tagURLs (const TQString&); %If ( KDE_3_2_0 - ) - static QString obscure (const QString&); + static TQString obscure (const TQString&); static bool isUtf8 (const char*); - static QString from8Bit (const char*); + static TQString from8Bit (const char*); %End %End - static bool matchFilename (const QString&, const QString&); + static bool matchFilename (const TQString&, const TQString&); }; // class KStringHandler diff --git a/sip/tdecore/ktempdir.sip b/sip/tdecore/ktempdir.sip index 26da116..c2cca3f 100644 --- a/sip/tdecore/ktempdir.sip +++ b/sip/tdecore/ktempdir.sip @@ -35,21 +35,21 @@ class KTempDir public: - KTempDir (QString = QString ::null , int = 448); + KTempDir (TQString = TQString ::null , int = 448); void setAutoDelete (bool); int status () const; - QString name () const; - QDir* qDir (); + TQString name () const; + TQDir* qDir (); void unlink (); bool existing () const; %If ( KDE_3_5_2 - ) - static bool removeDir (const QString&); + static bool removeDir (const TQString&); %End protected: - bool create (const QString&, int); + bool create (const TQString&, int); void setError (int); }; // class KTempDir diff --git a/sip/tdecore/ktempfile.sip b/sip/tdecore/ktempfile.sip index 108b292..93aba49 100644 --- a/sip/tdecore/ktempfile.sip +++ b/sip/tdecore/ktempfile.sip @@ -32,15 +32,15 @@ class KTempFile public: - KTempFile (QString = QString ::null , QString = QString ::null , int = 384); + KTempFile (TQString = TQString ::null , TQString = TQString ::null , int = 384); void setAutoDelete (bool); int status (); - QString name (); + TQString name (); int handle (); //ig FILE* fstream (); - QTextStream* textStream (); - QDataStream* dataStream (); - QFile* file (); + TQTextStream* textStream (); + TQDataStream* dataStream (); + TQFile* file (); void unlink (); %If ( KDE_3_3_0 - ) @@ -51,7 +51,7 @@ public: protected: KTempFile (bool); - bool create (const QString&, const QString&, int); + bool create (const TQString&, const TQString&, int); void setError (int); }; // class KTempFile diff --git a/sip/tdecore/ktimezones.sip b/sip/tdecore/ktimezones.sip index dc31c4f..fb92fdb 100644 --- a/sip/tdecore/ktimezones.sip +++ b/sip/tdecore/ktimezones.sip @@ -34,9 +34,9 @@ class KTimezoneSource : KShared public: - KTimezoneSource (const QString&); - virtual QString db (); - virtual bool parse (const QString&, KTimezoneDetails&) const; + KTimezoneSource (const TQString&); + virtual TQString db (); + virtual bool parse (const TQString&, KTimezoneDetails&) const; }; // class KTimezoneSource @@ -56,15 +56,15 @@ public: static const float UNKNOWN; static bool isValidLatitude (float); static bool isValidLongitude (float); - KTimezone (KSharedPtr<KTimezoneSource>, const QString&, const QString& = QString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const QString& = QString ()); - QString name () const; - QString countryCode () const; + KTimezone (KSharedPtr<KTimezoneSource>, const TQString&, const TQString& = TQString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const TQString& = TQString ()); + TQString name () const; + TQString countryCode () const; float latitude () const; float longitude () const; - int offset (Qt::TimeSpec = Qt ::UTC ) const; - int offset (const QDateTime&) const; - QDateTime convert (const KTimezone*, const QDateTime&) const; - QString comment () const; + int offset (TQt::TimeSpec = TQt ::UTC ) const; + int offset (const TQDateTime&) const; + TQDateTime convert (const KTimezone*, const TQDateTime&) const; + TQString comment () const; bool parse (KTimezoneDetails&) const; private: @@ -97,7 +97,7 @@ public: virtual void gotTransitionTime (int, uint); virtual void gotLocalTimeIndex (int, uint); virtual void gotLocalTime (int, int, bool, uint); - virtual void gotAbbreviation (int, const QString&); + virtual void gotAbbreviation (int, const TQString&); virtual void gotLeapAdjustment (int, uint, uint); virtual void gotIsStandard (int, bool); virtual void gotIsUTC (int, bool); @@ -119,8 +119,8 @@ class KTimezones public: KTimezones (); const KTimezone* local (); - const KTimezone* zone (const QString&); - typedef QMap<QString,KTimezone*> ZoneMap; + const KTimezone* zone (const TQString&); + typedef TQMap<TQString,KTimezone*> ZoneMap; const KTimezones::ZoneMap allZones (); void add (KTimezone*); @@ -180,7 +180,7 @@ private: %If (KDE_3_5_0 - ) %MappedType KTimezones::ZoneMap -//converts a Python dict of QString:KTimezone +//converts a Python dict of TQString:KTimezone { %TypeHeaderCode #include <qmap.h> @@ -203,16 +203,16 @@ private: // Get it. - const QMap<QString, KTimezone*> cppmap = *sipCpp; - QMap<QString, KTimezone*>::ConstIterator it; + const TQMap<TQString, KTimezone*> cppmap = *sipCpp; + TQMap<TQString, KTimezone*>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); + TQString acpp = it.key (); KTimezone *bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) || ((binst = sipConvertFromType(bcpp, sipType_KTimezone, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -228,23 +228,23 @@ private: %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString, KTimezone*> *cppmap = new QMap<QString, KTimezone*>; + TQMap<TQString, KTimezone*> *cppmap = new TQMap<TQString, KTimezone*>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; + TQString *acpp; KTimezone *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); bcpp = (KTimezone *)sipForceConvertToType(belem, sipType_KTimezone, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) diff --git a/sip/tdecore/kuniqueapplication.sip b/sip/tdecore/kuniqueapplication.sip index a15e8ad..0bc5476 100644 --- a/sip/tdecore/kuniqueapplication.sip +++ b/sip/tdecore/kuniqueapplication.sip @@ -35,12 +35,12 @@ public: KUniqueApplication (bool, bool, bool); %If ( KDE_3_3_0 - ) -//ig KUniqueApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1, bool = 0); +//ig KUniqueApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1, bool = 0); %End static void addCmdLineOptions (); static bool start (); - bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); virtual int newInstance (); %If ( KDE_3_3_0 - ) diff --git a/sip/tdecore/kurl.sip b/sip/tdecore/kurl.sip index 7acf594..495f3f4 100644 --- a/sip/tdecore/kurl.sip +++ b/sip/tdecore/kurl.sip @@ -54,59 +54,59 @@ public: %End KURL (); - KURL (const QString&, int = 0); + KURL (const TQString&, int = 0); KURL (const char*, int = 0); - KURL (const QCString&, int = 0); + KURL (const TQCString&, int = 0); KURL (const KURL&); - KURL (const QUrl&); - KURL (const KURL&, const QString&, int = 0); - QString protocol () const; - void setProtocol (const QString&); + KURL (const TQUrl&); + KURL (const KURL&, const TQString&, int = 0); + TQString protocol () const; + void setProtocol (const TQString&); %If ( KDE_3_2_0 - ) int uriMode () const; %End - QString user () const; - void setUser (const QString&); + TQString user () const; + void setUser (const TQString&); bool hasUser () const; - QString pass () /PyName=pass_/; - void setPass (const QString&); + TQString pass () /PyName=pass_/; + void setPass (const TQString&); bool hasPass () const; - QString host () const; - void setHost (const QString&); + TQString host () const; + void setHost (const TQString&); bool hasHost () const; ushort port () const; void setPort (ushort); - QString path () const; - QString path (int) const; - void setPath (const QString&); + TQString path () const; + TQString path (int) const; + void setPath (const TQString&); bool hasPath () const; void cleanPath (bool = 0); void adjustPath (int); - void setEncodedPathAndQuery (const QString&, int = 0); - void setEncodedPath (const QString&, int = 0); - QString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; - void setQuery (const QString&, int = 0); - QString query () const; - QString ref () const; - void setRef (const QString&); + void setEncodedPathAndQuery (const TQString&, int = 0); + void setEncodedPath (const TQString&, int = 0); + TQString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; + void setQuery (const TQString&, int = 0); + TQString query () const; + TQString ref () const; + void setRef (const TQString&); bool hasRef () const; - QString htmlRef () const; - QString encodedHtmlRef () const; - void setHTMLRef (const QString&); + TQString htmlRef () const; + TQString encodedHtmlRef () const; + void setHTMLRef (const TQString&); bool hasHTMLRef () const; bool isValid () const; bool isMalformed () const; bool isLocalFile () const; - void setFileEncoding (const QString&); - QString fileEncoding () const; + void setFileEncoding (const TQString&); + TQString fileEncoding () const; bool hasSubURL () const; - void addPath (const QString&); - QString queryItem (const QString&) const; + void addPath (const TQString&); + TQString queryItem (const TQString&) const; %If ( KDE_3_2_0 - ) - QString queryItem (const QString&, int) const; + TQString queryItem (const TQString&, int) const; %End @@ -117,36 +117,36 @@ public: CaseInsensitiveKeys }; - QMap<QString,QString> queryItems (int = 0) const; + TQMap<TQString,TQString> queryItems (int = 0) const; %If ( KDE_3_2_0 - ) - QMap<QString,QString> queryItems (int, int) const; + TQMap<TQString,TQString> queryItems (int, int) const; %End - void addQueryItem (const QString&, const QString&, int = 0); - void removeQueryItem (const QString&); + void addQueryItem (const TQString&, const TQString&, int = 0); + void removeQueryItem (const TQString&); %End - void setFileName (const QString&); - QString fileName (bool = 1) const; - QString directory (bool = 1, bool = 1) const; + void setFileName (const TQString&); + TQString fileName (bool = 1) const; + TQString directory (bool = 1, bool = 1) const; %If ( KDE_3_2_0 - ) - void setDirectory (const QString&); + void setDirectory (const TQString&); %End - bool cd (const QString&); - QString url (int = 0, int = 0) const; - QString prettyURL (int = 0) const; - QString prettyURL (int, KURL::AdjustementFlags) const; + bool cd (const TQString&); + TQString url (int = 0, int = 0) const; + TQString prettyURL (int = 0) const; + TQString prettyURL (int, KURL::AdjustementFlags) const; %If ( KDE_3_4_0 - ) - QString pathOrURL () const; + TQString pathOrURL () const; %End %If ( KDE_3_0_1 - ) - QString htmlURL () const; + TQString htmlURL () const; %End bool isEmpty () const; @@ -159,9 +159,9 @@ public: %If ( KDE_3_1_4 - ) bool operator == (const KURL&) const; - bool operator == (const QString&) const; + bool operator == (const TQString&) const; bool operator != (const KURL&) const; - bool operator != (const QString&) const; + bool operator != (const TQString&) const; %End bool cmp (const KURL&, bool = 0) const; @@ -171,37 +171,37 @@ public: %End bool isParentOf (const KURL&) const; - static KURL::List split (const QString&); + static KURL::List split (const TQString&); static KURL::List split (const KURL&); static KURL join (const KURL::List&); %If ( KDE_3_1_0 - ) - static KURL fromPathOrURL (const QString&); + static KURL fromPathOrURL (const TQString&); %End - static QString encode_string (const QString&, int = 0); - static QString encode_string_no_slash (const QString&, int = 0); - static QString decode_string (const QString&, int = 0); - static bool isRelativeURL (const QString&); + static TQString encode_string (const TQString&, int = 0); + static TQString encode_string_no_slash (const TQString&, int = 0); + static TQString decode_string (const TQString&, int = 0); + static bool isRelativeURL (const TQString&); %If ( KDE_3_2_0 - ) - static QString relativeURL (const KURL&, const KURL&, int = 0); - static QString relativePath (const QString&, const QString&, bool* = 0); - static KURL::URIMode uriModeForProtocol (const QString&); + static TQString relativeURL (const KURL&, const KURL&, int = 0); + static TQString relativePath (const TQString&, const TQString&, bool* = 0); + static KURL::URIMode uriModeForProtocol (const TQString&); %End - QString filename (bool = 1) const; + TQString filename (bool = 1) const; protected: void reset (); %If ( KDE_3_2_0 - ) - void parseURL (const QString&, int = 0); - void parseRawURI (const QString&, int = 0); - void parseMailto (const QString&, int = 0); + void parseURL (const TQString&, int = 0); + void parseRawURI (const TQString&, int = 0); + void parseMailto (const TQString&, int = 0); %End - void parse (const QString&, int = 0); + void parse (const TQString&, int = 0); public: //force @@ -211,8 +211,8 @@ public: public: List (); - List (const QStringList&); - QStringList toStringList () const; + List (const TQStringList&); + TQStringList toStringList () const; bool isEmpty () const; void append (const KURL&); void prepend (const KURL&); @@ -382,7 +382,7 @@ public: //returns (bool) //takes a0 | (KURL) - QString s = a0->url (); + TQString s = a0->url (); sipRes = 0; KURL::List::Iterator it; for (it = sipCpp->begin (); (it != sipCpp->end ()) && (sipRes == 0); it++) @@ -399,10 +399,10 @@ public: }; // class KURL -bool urlcmp (const QString&, const QString&); -bool urlcmp (const QString&, const QString&, bool, bool); +bool urlcmp (const TQString&, const TQString&); +bool urlcmp (const TQString&, const TQString&, bool, bool); %If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KURL&); -//igx QDataStream& operator >> (QDataStream&, KURL&); +//igx TQDataStream& operator << (TQDataStream&, const KURL&); +//igx TQDataStream& operator >> (TQDataStream&, KURL&); %End diff --git a/sip/tdecore/kurldrag.sip b/sip/tdecore/kurldrag.sip index 11b971e..8ff7897 100644 --- a/sip/tdecore/kurldrag.sip +++ b/sip/tdecore/kurldrag.sip @@ -26,7 +26,7 @@ %If ( KDE_3_1_4 - ) -class KURLDrag : QUriDrag +class KURLDrag : TQUriDrag { %TypeHeaderCode #include <kurldrag.h> @@ -34,39 +34,39 @@ class KURLDrag : QUriDrag public: - KURLDrag (const KURL::List&, QWidget*, const char*); - KURLDrag (const KURL::List&, const QMap<QString,QString>&, QWidget*, const char*); + KURLDrag (const KURL::List&, TQWidget*, const char*); + KURLDrag (const KURL::List&, const TQMap<TQString,TQString>&, TQWidget*, const char*); %If ( KDE_3_4_0 - ) void setExportAsText (bool); %End - static KURLDrag* newDrag (const KURL::List&, QWidget* = 0, const char* = 0); - static KURLDrag* newDrag (const KURL::List&, const QMap<QString,QString>&, QWidget* = 0, const char* = 0); - QMap<QString,QString>& metaData (); - static bool decode (const QMimeSource*, KURL::List&); - static bool decode (const QMimeSource*, KURL::List&, QMap<QString,QString>&); + static KURLDrag* newDrag (const KURL::List&, TQWidget* = 0, const char* = 0); + static KURLDrag* newDrag (const KURL::List&, const TQMap<TQString,TQString>&, TQWidget* = 0, const char* = 0); + TQMap<TQString,TQString>& metaData (); + static bool decode (const TQMimeSource*, KURL::List&); + static bool decode (const TQMimeSource*, KURL::List&, TQMap<TQString,TQString>&); %If ( KDE_3_2_0 - ) - static QString urlToString (const KURL&); - static KURL stringToUrl (const QCString&); + static TQString urlToString (const KURL&); + static KURL stringToUrl (const TQCString&); %If ( KDE_3_5_0 - ) virtual const char* format (int) const; - virtual QByteArray encodedData (const char*) const; + virtual TQByteArray encodedData (const char*) const; %End %End protected: - KURLDrag (const QStrList&, const QMap<QString,QString>&, QWidget*, const char*); + KURLDrag (const TQStrList&, const TQMap<TQString,TQString>&, TQWidget*, const char*); protected: %If ( - KDE_3_5_0 ) virtual const char* format (int) const; - virtual QByteArray encodedData (const char*) const; + virtual TQByteArray encodedData (const char*) const; %End diff --git a/sip/tdecore/kuser.sip b/sip/tdecore/kuser.sip index 1ff5db9..e16a93e 100644 --- a/sip/tdecore/kuser.sip +++ b/sip/tdecore/kuser.sip @@ -44,7 +44,7 @@ public: KUser (KUser::UIDMode = UseEffectiveUID ); KUser (long); - KUser (const QString&); + KUser (const TQString&); KUser (const char*); //ig KUser (passwd*); bool operator == (const KUser&) const; @@ -53,13 +53,13 @@ public: long uid () const; long gid () const; bool isSuperUser () const; - QString loginName () const; - QString fullName () const; - QString roomNumber () const; - QString workPhone () const; - QString homePhone () const; - QString homeDir () const; - QString shell () const; + TQString loginName () const; + TQString fullName () const; + TQString roomNumber () const; + TQString workPhone () const; + TQString homePhone () const; + TQString homeDir () const; + TQString shell () const; %If ( - KDE_3_2_1 ) diff --git a/sip/tdecore/kxmessages.sip b/sip/tdecore/kxmessages.sip index 68fa9bf..1ab38e4 100644 --- a/sip/tdecore/kxmessages.sip +++ b/sip/tdecore/kxmessages.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KXMessages : QWidget +class KXMessages : TQWidget { %TypeHeaderCode #include <qwidget.h> @@ -32,14 +32,14 @@ class KXMessages : QWidget %End public: - KXMessages (const char* = 0, QWidget*/TransferThis/ = 0); - void sendMessage (WId, const char*, const QString&); - void broadcastMessage (const char*, const QString&); -//ig static bool sendMessageX (Display*, WId, const char*, const QString&); -//ig static bool broadcastMessageX (Display*, const char*, const QString&); + KXMessages (const char* = 0, TQWidget*/TransferThis/ = 0); + void sendMessage (WId, const char*, const TQString&); + void broadcastMessage (const char*, const TQString&); +//ig static bool sendMessageX (Display*, WId, const char*, const TQString&); +//ig static bool broadcastMessageX (Display*, const char*, const TQString&); signals: - void gotMessage (const QString&); + void gotMessage (const TQString&); protected: //ig virtual bool x11Event (XEvent*); @@ -47,7 +47,7 @@ protected: protected: %If ( - KDE_3_0_1 ) -//ig static void send_message_internal (WId, const QString&, long, Display*, Atom, Window); +//ig static void send_message_internal (WId, const TQString&, long, Display*, Atom, Window); %End diff --git a/sip/tdecore/twin.sip b/sip/tdecore/twin.sip index 2e70b1e..45e6b54 100644 --- a/sip/tdecore/twin.sip +++ b/sip/tdecore/twin.sip @@ -73,26 +73,26 @@ public: NETStrut strut () const; NET::WindowType windowType (int) const; - QString visibleName () const; - QString visibleNameWithState () const; - QString name () const; - QString visibleIconName () const; - QString visibleIconNameWithState () const; - QString iconName () const; + TQString visibleName () const; + TQString visibleNameWithState () const; + TQString name () const; + TQString visibleIconName () const; + TQString visibleIconNameWithState () const; + TQString iconName () const; bool isOnCurrentDesktop () const; bool isOnDesktop (int) const; bool onAllDesktops () const; int desktop () const; - QRect geometry () const; - QRect frameGeometry () const; + TQRect geometry () const; + TQRect frameGeometry () const; WId transientFor () const; WId groupLeader () const; %If ( KDE_3_3_0 - ) - QCString windowClassClass () const; - QCString windowClassName () const; - QCString windowRole () const; - QCString clientMachine () const; + TQCString windowClassClass () const; + TQCString windowClassName () const; + TQCString windowRole () const; + TQCString clientMachine () const; %End bool actionSupported (NET::Action) const; @@ -111,7 +111,7 @@ public: static WId groupLeader (WId); %End - static QPixmap icon (WId, int = -1, int = -1, bool = 0); + static TQPixmap icon (WId, int = -1, int = -1, bool = 0); %If ( KDE_3_2_0 - ) @@ -123,10 +123,10 @@ public: XApp }; - static QPixmap icon (WId, int, int, bool, int); + static TQPixmap icon (WId, int, int, bool, int); %End - static void setIcons (WId, const QPixmap&, const QPixmap&); + static void setIcons (WId, const TQPixmap&, const TQPixmap&); static void setType (WId, NET::WindowType); static void setState (WId, ulong); static void clearState (WId, ulong); @@ -149,7 +149,7 @@ public: static void lowerWindow (WId); static bool icccmCompliantMappingState (); static bool allowedActionsSupported (); - static QString readNameProperty (WId, ulong); + static TQString readNameProperty (WId, ulong); %End @@ -168,14 +168,14 @@ public: NET::MappingState mappingState; NETStrut strut; NET::WindowType windowType; - QString visibleName; - QString name; + TQString visibleName; + TQString name; int desktop; bool onAllDesktops; pid_t pid; - QRect geometry; - QRect frameGeometry; - QString visibleNameWithState () const; + TQRect geometry; + TQRect frameGeometry; + TQString visibleNameWithState () const; }; // class Info diff --git a/sip/tdecore/twinmodule.sip b/sip/tdecore/twinmodule.sip index 4bca087..ba80592 100644 --- a/sip/tdecore/twinmodule.sip +++ b/sip/tdecore/twinmodule.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KWinModule : QObject +class KWinModule : TQObject { %TypeHeaderCode #include <twinmodule.h> @@ -42,22 +42,22 @@ public: INFO_ALL }; - KWinModule (QObject* /TransferThis/, int); + KWinModule (TQObject* /TransferThis/, int); %End - KWinModule (QObject* /TransferThis/ = 0); - const QValueList<WId>& windows () const; - const QValueList<WId>& stackingOrder () const; + KWinModule (TQObject* /TransferThis/ = 0); + const TQValueList<WId>& windows () const; + const TQValueList<WId>& stackingOrder () const; bool hasWId (WId) const; - const QValueList<WId>& systemTrayWindows () const; + const TQValueList<WId>& systemTrayWindows () const; int currentDesktop () const; int numberOfDesktops () const; WId activeWindow () const; - QRect workArea (int = -1) const; - QRect workArea (const QValueList<WId>&, int = -1) const; - QString desktopName (int) const; - void setDesktopName (int, const QString&); - void doNotManage (const QString&); + TQRect workArea (int = -1) const; + TQRect workArea (const TQValueList<WId>&, int = -1) const; + TQString desktopName (int) const; + void setDesktopName (int, const TQString&); + void doNotManage (const TQString&); signals: void currentDesktopChanged (int); @@ -90,7 +90,7 @@ protected: -%MappedType QValueList<WId> +%MappedType TQValueList<WId> //converts a Python list of WId { %TypeHeaderCode @@ -107,10 +107,10 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<WId> *cpplist = (QValueList<WId> *)sipCpp; + TQValueList<WId> *cpplist = (TQValueList<WId> *)sipCpp; // Get it. - QValueList<WId>::Iterator it; + TQValueList<WId>::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { WId cpp = *it; @@ -129,7 +129,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<WId> *cpplist = new QValueList<WId>; + TQValueList<WId> *cpplist = new TQValueList<WId>; PyObject *elem; WId cpp; |