|
|
|
@ -219,19 +219,19 @@ void dcop_next (TQDataStream&, TQCString&);
|
|
|
|
|
{
|
|
|
|
|
TQString res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQString(res), sipType_QString, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQString(res), sipType_TQString, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQStringList")
|
|
|
|
|
{
|
|
|
|
|
TQStringList res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQStringList(res), sipType_QStringList, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQStringList(res), sipType_TQStringList, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQCString")
|
|
|
|
|
{
|
|
|
|
|
TQCString res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQCString(res), sipType_QCString, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQCString(res), sipType_TQCString, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "KURL")
|
|
|
|
|
{
|
|
|
|
@ -249,67 +249,67 @@ void dcop_next (TQDataStream&, TQCString&);
|
|
|
|
|
{
|
|
|
|
|
TQSize res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQSize(res), sipType_QSize, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQSize(res), sipType_TQSize, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQRect")
|
|
|
|
|
{
|
|
|
|
|
TQRect res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQRect(res), sipType_QRect, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQRect(res), sipType_TQRect, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQRegion")
|
|
|
|
|
{
|
|
|
|
|
TQRect res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQRegion(res), sipType_QRegion, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQRegion(res), sipType_TQRegion, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPoint")
|
|
|
|
|
{
|
|
|
|
|
TQPoint res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPoint(res), sipType_QPoint, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPoint(res), sipType_TQPoint, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQFont")
|
|
|
|
|
{
|
|
|
|
|
TQFont res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQFont(res), sipType_QFont, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQFont(res), sipType_TQFont, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQCursor")
|
|
|
|
|
{
|
|
|
|
|
TQCursor res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQCursor(res), sipType_QCursor, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQCursor(res), sipType_TQCursor, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPixmap")
|
|
|
|
|
{
|
|
|
|
|
TQPixmap res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPixmap(res), sipType_QPixmap, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPixmap(res), sipType_TQPixmap, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQColor")
|
|
|
|
|
{
|
|
|
|
|
TQColor res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQColor(res), sipType_QColor, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQColor(res), sipType_TQColor, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQColorGroup")
|
|
|
|
|
{
|
|
|
|
|
TQColorGroup res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQColorGroup(res), sipType_QColorGroup, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQColorGroup(res), sipType_TQColorGroup, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPalette")
|
|
|
|
|
{
|
|
|
|
|
TQPalette res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPalette(res), sipType_QPalette, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPalette(res), sipType_TQPalette, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQBrush")
|
|
|
|
|
{
|
|
|
|
|
TQBrush res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQBrush(res), sipType_QBrush, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQBrush(res), sipType_TQBrush, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "FocusPolicy")
|
|
|
|
|
{
|
|
|
|
@ -327,61 +327,61 @@ void dcop_next (TQDataStream&, TQCString&);
|
|
|
|
|
{
|
|
|
|
|
TQVariant res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQVariant(res), sipType_QVariant, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQVariant(res), sipType_TQVariant, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQDate")
|
|
|
|
|
{
|
|
|
|
|
TQDate res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQDate(res), sipType_QDate, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQDate(res), sipType_TQDate, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQTime")
|
|
|
|
|
{
|
|
|
|
|
TQTime res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQTime(res), sipType_QTime, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQTime(res), sipType_TQTime, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQDateTime")
|
|
|
|
|
{
|
|
|
|
|
TQDateTime res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQDateTime(res), sipType_QDateTime, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQDateTime(res), sipType_TQDateTime, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQImage")
|
|
|
|
|
{
|
|
|
|
|
TQImage res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQImage(res), sipType_QImage, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQImage(res), sipType_TQImage, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQKeySequence")
|
|
|
|
|
{
|
|
|
|
|
TQKeySequence res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQKeySequence(res), sipType_QKeySequence, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQKeySequence(res), sipType_TQKeySequence, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPen")
|
|
|
|
|
{
|
|
|
|
|
TQPen res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPen(res), sipType_QPen, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPen(res), sipType_TQPen, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPicture")
|
|
|
|
|
{
|
|
|
|
|
TQPicture res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPicture(res), sipType_QPicture, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPicture(res), sipType_TQPicture, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQPointArray")
|
|
|
|
|
{
|
|
|
|
|
TQPointArray res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQPointArray(res), sipType_QPointArray, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQPointArray(res), sipType_TQPointArray, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQByteArray")
|
|
|
|
|
{
|
|
|
|
|
TQByteArray res;
|
|
|
|
|
*a0 >> res;
|
|
|
|
|
return sipConvertFromNewType(new TQByteArray(res), sipType_QByteArray, NULL);
|
|
|
|
|
return sipConvertFromNewType(new TQByteArray(res), sipType_TQByteArray, NULL);
|
|
|
|
|
}
|
|
|
|
|
else if (*a1 == "TQMap<TQCString,DCOPRef>")
|
|
|
|
|
{
|
|
|
|
@ -645,7 +645,7 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
DCOPRef bcpp = it.data ();
|
|
|
|
|
PyObject *ainst;
|
|
|
|
|
PyObject *binst = NULL;
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQCString(acpp), sipType_QCString, NULL)) == NULL)
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQCString(acpp), sipType_TQCString, NULL)) == NULL)
|
|
|
|
|
|| ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL)
|
|
|
|
|
|| (PyDict_SetItem (dict, ainst, binst) < 0))
|
|
|
|
|
{
|
|
|
|
@ -677,7 +677,7 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
{
|
|
|
|
|
int iserr = 0;
|
|
|
|
|
|
|
|
|
|
acpp = (TQCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
|
|
|
|
|
acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, 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)
|
|
|
|
@ -728,7 +728,7 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
DCOPRef bcpp = it.data ();
|
|
|
|
|
PyObject *ainst;
|
|
|
|
|
PyObject *binst = NULL;
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL)
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_TQString, sipTransferObj)) == NULL)
|
|
|
|
|
|| ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL)
|
|
|
|
|
|| (PyDict_SetItem (dict, ainst, binst) < 0))
|
|
|
|
|
{
|
|
|
|
@ -760,13 +760,13 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
{
|
|
|
|
|
int iserr = 0, acpp_state;
|
|
|
|
|
|
|
|
|
|
acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
|
|
|
|
|
acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
|
|
|
|
|
bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
|
|
|
|
|
|
|
|
|
|
if (iserr)
|
|
|
|
|
{
|
|
|
|
|
if (acpp)
|
|
|
|
|
sipReleaseType(acpp, sipType_QString, acpp_state);
|
|
|
|
|
sipReleaseType(acpp, sipType_TQString, acpp_state);
|
|
|
|
|
|
|
|
|
|
*sipIsErr = 1;
|
|
|
|
|
delete cppmap;
|
|
|
|
@ -775,7 +775,7 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
|
|
|
|
|
cppmap->insert (*acpp, *bcpp);
|
|
|
|
|
|
|
|
|
|
sipReleaseType(acpp, sipType_QString, acpp_state);
|
|
|
|
|
sipReleaseType(acpp, sipType_TQString, acpp_state);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*sipCppPtr = cppmap;
|
|
|
|
@ -819,8 +819,8 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
TQByteArray bcpp = it.data ();
|
|
|
|
|
PyObject *ainst;
|
|
|
|
|
PyObject *binst = NULL;
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL)
|
|
|
|
|
|| ((binst = sipConvertFromNewType(new TQByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL)
|
|
|
|
|
if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_TQString, sipTransferObj)) == NULL)
|
|
|
|
|
|| ((binst = sipConvertFromNewType(new TQByteArray(bcpp), sipType_TQByteArray, sipTransferObj)) == NULL)
|
|
|
|
|
|| (PyDict_SetItem (dict, ainst, binst) < 0))
|
|
|
|
|
{
|
|
|
|
|
Py_XDECREF (ainst);
|
|
|
|
@ -851,13 +851,13 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
{
|
|
|
|
|
int iserr = 0, acpp_state, bcpp_state;
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
|
|
|
|
|
bcpp = (TQByteArray *)sipForceConvertToType(belem, sipType_TQByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr);
|
|
|
|
|
|
|
|
|
|
if (iserr)
|
|
|
|
|
{
|
|
|
|
|
if (acpp)
|
|
|
|
|
sipReleaseType(acpp, sipType_QString, acpp_state);
|
|
|
|
|
sipReleaseType(acpp, sipType_TQString, acpp_state);
|
|
|
|
|
|
|
|
|
|
*sipIsErr = 1;
|
|
|
|
|
delete cppmap;
|
|
|
|
@ -866,8 +866,8 @@ void dcop_add (TQDataStream& s, TQByteArray value)
|
|
|
|
|
|
|
|
|
|
cppmap->insert (*acpp, *bcpp);
|
|
|
|
|
|
|
|
|
|
sipReleaseType(acpp, sipType_QString, acpp_state);
|
|
|
|
|
sipReleaseType(bcpp, sipType_QByteArray, bcpp_state);
|
|
|
|
|
sipReleaseType(acpp, sipType_TQString, acpp_state);
|
|
|
|
|
sipReleaseType(bcpp, sipType_TQByteArray, bcpp_state);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*sipCppPtr = cppmap;
|
|
|
|
|