summaryrefslogtreecommitdiffstats
path: root/sip/qt/qimage.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qimage.sip')
-rw-r--r--sip/qt/qimage.sip318
1 files changed, 159 insertions, 159 deletions
diff --git a/sip/qt/qimage.sip b/sip/qt/qimage.sip
index 5c9b0bb..7431f4d 100644
--- a/sip/qt/qimage.sip
+++ b/sip/qt/qimage.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QImage, QImageIO and
-// QImageTextKeyLang.
+// This is the SIP interface definition for TQImage, TQImageIO and
+// TQImageTextKeyLang.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// This file is part of PyQt.
+// This file is part of PyTQt.
//
-// This copy of PyQt is free software; you can redistribute it and/or modify it
+// This copy of PyTQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
-// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
+// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
+// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%ExportedDoc
-<Sect2><Title>QImage</Title>
+<Sect2><Title>TQImage</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
</FuncSynopsis>
<Para>
@@ -37,18 +37,18 @@ This takes a list of strings as its parameter.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>uchar *<Parameter>data</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
<ParamDef>int <Parameter>h</Parameter></ParamDef>
<ParamDef>int <Parameter>depth</Parameter></ParamDef>
- <ParamDef>QRgb *<Parameter>colorTable</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>colorTable</Parameter></ParamDef>
<ParamDef>int <Parameter>numColors</Parameter></ParamDef>
<ParamDef>Endian <Parameter>bitOrder</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>colorTable</Literal> parameter is a list of QRgb instances or
-None. (Qt v2.1+)
+The <Literal>colorTable</Literal> parameter is a list of TQRgb instances or
+None. (TQt v2.1+)
</Para>
<FuncSynopsis>
@@ -61,7 +61,7 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QRgb *<Function>colorTable</Function></FuncDef>
+ <FuncDef>TQRgb *<Function>colorTable</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -70,9 +70,9 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QImage <Function>convertDepthWithPalette</Function></FuncDef>
+ <FuncDef>TQImage <Function>convertDepthWithPalette</Function></FuncDef>
<ParamDef>int</ParamDef>
- <ParamDef>QRgb *<Parameter>p</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>p</Parameter></ParamDef>
<ParamDef>int <Parameter>pc</Parameter></ParamDef>
<ParamDef>int <Parameter>cf</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -111,7 +111,7 @@ useful if passed to another Python module.
</Para>
</Sect2>
-<Sect2><Title>QImageIO</Title>
+<Sect2><Title>TQImageIO</Title>
<FuncSynopsis>
<FuncDef>static void <Function>defineIOHandler</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
@@ -125,15 +125,15 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QImageTextKeyLang</Title>
+<Sect2><Title>TQImageTextKeyLang</Title>
<Para>
-<Literal>QImageTextKeyLang</Literal> is fully implemented.
+<Literal>TQImageTextKeyLang</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QImage
+class TQImage
{
%TypeHeaderCode
#include <qimage.h>
@@ -146,47 +146,47 @@ public:
LittleEndian
};
- QImage();
- QImage(int,int,int,int = 0,Endian = IgnoreEndian);
- QImage(const QSize &,int,int = 0,Endian = IgnoreEndian);
-%If (- Qt_2_00)
- QImage(const char *,char * = 0);
+ TQImage();
+ TQImage(int,int,int,int = 0,Endian = IgnoreEndian);
+ TQImage(const TQSize &,int,int = 0,Endian = IgnoreEndian);
+%If (- TQt_2_00)
+ TQImage(const char *,char * = 0);
%End
-%If (Qt_2_00 -)
- QImage(const QString &,char * = 0);
+%If (TQt_2_00 -)
+ TQImage(const TQString &,char * = 0);
%End
- QImage(SIP_PYLIST) [(const char **)];
+ TQImage(SIP_PYLIST) [(const char **)];
%MethodCode
// The Python interface is a list of strings that make up the
// image.
const char **str;
- if ((str = PyQt_qt_ListToArray(a0)) == NULL)
+ if ((str = PyTQt_qt_ListToArray(a0)) == NULL)
sipIsErr = 1;
else
{
- // There is no wrapper class for QImage.
+ // There is no wrapper class for TQImage.
Py_BEGIN_ALLOW_THREADS
- sipCpp = new QImage(str);
+ sipCpp = new TQImage(str);
Py_END_ALLOW_THREADS
sipFree((ANY *)str);
}
%End
-%If (Qt_2_00 -)
- QImage(const QByteArray &);
+%If (TQt_2_00 -)
+ TQImage(const TQByteArray &);
%End
-%If (Qt_2_1_0 -)
- QImage(uchar *,int,int,int,SIP_PYLIST /AllowNone/,int,Endian) [(uchar *,int,int,int,int,QRgb *,int,Endian)];
+%If (TQt_2_1_0 -)
+ TQImage(uchar *,int,int,int,SIP_PYLIST /AllowNone/,int,Endian) [(uchar *,int,int,int,int,TQRgb *,int,Endian)];
%MethodCode
- // The Python interface takes a list of QRgb instances.
+ // The Python interface takes a list of TQRgb instances.
- QRgb *coltab;
+ TQRgb *coltab;
if (a4 == Py_None)
coltab = 0;
@@ -197,7 +197,7 @@ public:
if (a5 > len)
a5 = len;
- coltab = new QRgb[len];
+ coltab = new TQRgb[len];
PyErr_Clear();
@@ -216,14 +216,14 @@ public:
if (!sipIsErr)
{
- // There is no wrapper class for QImage.
+ // There is no wrapper class for TQImage.
Py_BEGIN_ALLOW_THREADS
- sipCpp = new QImage(a0,a1,a2,a3,0,a5,(QImage::Endian)a6);
+ sipCpp = new TQImage(a0,a1,a2,a3,0,a5,(TQImage::Endian)a6);
if (coltab)
{
- // Now set the colours using the QImage's self
+ // Now set the colours using the TQImage's self
// allocated colour table. If we had passed in
// coltab as the colour table then we couldn't
// have freed it and it would leak.
@@ -237,35 +237,35 @@ public:
%End
%End
- QImage(const QImage &);
+ TQImage(const TQImage &);
- bool operator==(const QImage &) const;
- bool operator!=(const QImage &) const;
+ bool operator==(const TQImage &) const;
+ bool operator!=(const TQImage &) const;
void detach();
- QImage copy() const;
- QImage copy(int,int,int,int,int = 0) const;
-%If (- Qt_3_0_0)
- QImage copy(QRect &) const;
+ TQImage copy() const;
+ TQImage copy(int,int,int,int,int = 0) const;
+%If (- TQt_3_0_0)
+ TQImage copy(TQRect &) const;
%End
-%If (Qt_3_0_0 -)
- QImage copy(const QRect &) const;
+%If (TQt_3_0_0 -)
+ TQImage copy(const TQRect &) const;
%End
-%If (Qt_3_1_0 -)
- static QImage fromMimeSource(const QString &);
+%If (TQt_3_1_0 -)
+ static TQImage fromMimeSource(const TQString &);
%End
bool isNull() const;
int width() const;
int height() const;
- QSize size() const;
- QRect rect() const;
+ TQSize size() const;
+ TQRect rect() const;
int depth() const;
int numColors() const;
Endian bitOrder() const;
- QRgb color(int) const;
- void setColor(int,QRgb);
+ TQRgb color(int) const;
+ void setColor(int,TQRgb);
void setNumColors(int);
bool hasAlphaBuffer() const;
@@ -280,225 +280,225 @@ public:
void *scanLine(int) const;
// Actually returns uchar **.
void *jumpTable() const;
- // Actually returns QRgb *.
+ // Actually returns TQRgb *.
void *colorTable() const;
int numBytes() const;
int bytesPerLine() const;
bool create(int,int,int,int = 0,Endian = IgnoreEndian);
- bool create(const QSize &,int,int = 0,Endian = IgnoreEndian);
+ bool create(const TQSize &,int,int = 0,Endian = IgnoreEndian);
void reset();
void fill(uint);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void invertPixels(bool = 1);
%End
- QImage convertDepth(int) const;
-// QImage convertDepthWithPalette(int,QRgb *,int,int = 0) const;
- QImage convertDepth(int,int) const;
- QImage convertBitOrder(Endian) const;
+ TQImage convertDepth(int) const;
+// TQImage convertDepthWithPalette(int,TQRgb *,int,int = 0) const;
+ TQImage convertDepth(int,int) const;
+ TQImage convertBitOrder(Endian) const;
-%If (- Qt_3_0_0)
- QImage smoothScale(int,int) const;
+%If (- TQt_3_0_0)
+ TQImage smoothScale(int,int) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum ScaleMode {
ScaleFree,
ScaleMin,
ScaleMax
};
- QImage smoothScale(int,int,ScaleMode = ScaleFree) const;
- QImage smoothScale(const QSize &,ScaleMode = ScaleFree) const;
- QImage scale(int,int,ScaleMode = ScaleFree) const;
- QImage scale(const QSize &,ScaleMode = ScaleFree) const;
- QImage scaleWidth(int) const;
- QImage scaleHeight(int) const;
- QImage xForm(const QWMatrix &) const;
+ TQImage smoothScale(int,int,ScaleMode = ScaleFree) const;
+ TQImage smoothScale(const TQSize &,ScaleMode = ScaleFree) const;
+ TQImage scale(int,int,ScaleMode = ScaleFree) const;
+ TQImage scale(const TQSize &,ScaleMode = ScaleFree) const;
+ TQImage scaleWidth(int) const;
+ TQImage scaleHeight(int) const;
+ TQImage xForm(const TQWMatrix &) const;
%End
-%If (- Qt_2_00)
- QImage createAlphaMask(bool = 0) const;
- QImage createAlphaMask(int) const;
+%If (- TQt_2_00)
+ TQImage createAlphaMask(bool = 0) const;
+ TQImage createAlphaMask(int) const;
%End
-%If (Qt_2_00 -)
- QImage createAlphaMask(int = 0) const;
+%If (TQt_2_00 -)
+ TQImage createAlphaMask(int = 0) const;
%End
- QImage createHeuristicMask(bool = 1) const;
-%If (Qt_2_00 -)
- QImage mirror() const;
+ TQImage createHeuristicMask(bool = 1) const;
+%If (TQt_2_00 -)
+ TQImage mirror() const;
%End
-%If (Qt_2_1_0 -)
- QImage mirror(bool,bool) const;
+%If (TQt_2_1_0 -)
+ TQImage mirror(bool,bool) const;
%End
-%If (Qt_2_00 -)
- QImage swapRGB() const;
+%If (TQt_2_00 -)
+ TQImage swapRGB() const;
%End
static Endian systemBitOrder();
static Endian systemByteOrder();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static const char *imageFormat(const char *);
%End
-%If (Qt_2_00 -)
- static const char *imageFormat(const QString &);
+%If (TQt_2_00 -)
+ static const char *imageFormat(const TQString &);
%End
- static QStrList inputFormats();
- static QStrList outputFormats();
-%If (Qt_2_1_0 -)
- static QStringList inputFormatList();
- static QStringList outputFormatList();
+ static TQStrList inputFormats();
+ static TQStrList outputFormats();
+%If (TQt_2_1_0 -)
+ static TQStringList inputFormatList();
+ static TQStringList outputFormatList();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool load(const char *,const char * = 0);
%End
-%If (Qt_2_00 -)
- bool load(const QString &,const char * = 0);
+%If (TQt_2_00 -)
+ bool load(const TQString &,const char * = 0);
%End
bool loadFromData(const uchar * /Array/,uint /ArraySize/,
const char * = 0);
- bool loadFromData(QByteArray,char * = 0);
-%If (- Qt_2_00)
+ bool loadFromData(TQByteArray,char * = 0);
+%If (- TQt_2_00)
bool save(const char *,const char *) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- bool save(const QString &,const char *) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ bool save(const TQString &,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- bool save(const QString &,const char *,int) const;
+%If (TQt_2_2_0 - TQt_3_0_0)
+ bool save(const TQString &,const char *,int) const;
%End
-%If (Qt_3_0_0 -)
- bool save(const QString &,const char *,int = -1) const;
+%If (TQt_3_0_0 -)
+ bool save(const TQString &,const char *,int = -1) const;
%End
-%If (Qt_3_2_0 -)
- bool save(QIODevice *,const char *,int = -1) const;
+%If (TQt_3_2_0 -)
+ bool save(TQIODevice *,const char *,int = -1) const;
%End
bool valid(int,int) const;
int pixelIndex(int,int) const;
- QRgb pixel(int,int) const;
+ TQRgb pixel(int,int) const;
void setPixel(int,int,uint);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int dotsPerMeterX() const;
int dotsPerMeterY() const;
void setDotsPerMeterX(int);
void setDotsPerMeterY(int);
- QPoint offset() const;
- void setOffset(const QPoint &);
-%If (Qt_IMAGE_TEXT)
- QValueList<QImageTextKeyLang> textList() const;
- QStringList textLanguages() const;
- QStringList textKeys() const;
- QString text(const char *,const char * = 0) const;
- QString text(const QImageTextKeyLang &) const;
- void setText(const char *,const char *,const QString &);
+ TQPoint offset() const;
+ void setOffset(const TQPoint &);
+%If (TQt_IMAGE_TEXT)
+ TQValueList<TQImageTextKeyLang> textList() const;
+ TQStringList textLanguages() const;
+ TQStringList textKeys() const;
+ TQString text(const char *,const char * = 0) const;
+ TQString text(const TQImageTextKeyLang &) const;
+ void setText(const char *,const char *,const TQString &);
%End
%End
};
-void bitBlt(QImage *,int,int,const QImage *,int = 0,int = 0,int = -1,int = -1,
+void bitBlt(TQImage *,int,int,const TQImage *,int = 0,int = 0,int = -1,int = -1,
int = 0);
-class QImageIO
+class TQImageIO
{
%TypeHeaderCode
#include <qimage.h>
%End
public:
- QImageIO();
- QImageIO(QIODevice *,const char *);
-%If (Qt_2_00 -)
- QImageIO(const QString &,const char *);
+ TQImageIO();
+ TQImageIO(TQIODevice *,const char *);
+%If (TQt_2_00 -)
+ TQImageIO(const TQString &,const char *);
%End
-%If (- Qt_2_00)
- QImageIO(const char *,const char *);
+%If (- TQt_2_00)
+ TQImageIO(const char *,const char *);
%End
- const QImage &image() const;
+ const TQImage &image() const;
int status() const;
const char *format() const;
- QIODevice *ioDevice() const;
-%If (Qt_2_00 -)
- QString fileName() const;
+ TQIODevice *ioDevice() const;
+%If (TQt_2_00 -)
+ TQString fileName() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *fileName() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int quality() const;
%End
-%If (Qt_2_00 -)
- QString description() const;
+%If (TQt_2_00 -)
+ TQString description() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *description() const;
%End
const char *parameters() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
float gamma() const;
%End
- void setImage(const QImage &);
+ void setImage(const TQImage &);
void setStatus(int);
void setFormat(const char *);
- void setIODevice(QIODevice *);
-%If (Qt_2_00 -)
- void setFileName(const QString &);
+ void setIODevice(TQIODevice *);
+%If (TQt_2_00 -)
+ void setFileName(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFileName(const char *);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setQuality(int);
%End
-%If (Qt_2_00 -)
- void setDescription(const QString &);
+%If (TQt_2_00 -)
+ void setDescription(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDescription(const char *);
%End
void setParameters(const char *);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setGamma(float);
%End
bool read();
bool write();
- static const char *imageFormat(const QString &);
- static const char *imageFormat(QIODevice *);
- static QStrList inputFormats();
- static QStrList outputFormats();
+ static const char *imageFormat(const TQString &);
+ static const char *imageFormat(TQIODevice *);
+ static TQStrList inputFormats();
+ static TQStrList outputFormats();
// static void defineIOHandler(const char *,const char *,const char *,
// image_io_handler,image_io_handler);
private:
- QImageIO(const QImageIO &);
+ TQImageIO(const TQImageIO &);
};
-%If (Qt_2_1_0 -)
-%If (Qt_IMAGE_TEXT)
+%If (TQt_2_1_0 -)
+%If (TQt_IMAGE_TEXT)
-class QImageTextKeyLang
+class TQImageTextKeyLang
{
%TypeHeaderCode
#include <qimage.h>
%End
public:
- QImageTextKeyLang(const char *,const char *);
- QImageTextKeyLang();
+ TQImageTextKeyLang(const char *,const char *);
+ TQImageTextKeyLang();
- QCString key;
- QCString lang;
+ TQCString key;
+ TQCString lang;
};
%End
@@ -506,14 +506,14 @@ public:
%ModuleHeaderCode
-const char **PyQt_qt_ListToArray(PyObject *lst);
+const char **PyTQt_qt_ListToArray(PyObject *lst);
%End
%ModuleCode
// Convert a list of strings to an array of strings on the heap. Also used by
-// QPixmap.
-const char **PyQt_qt_ListToArray(PyObject *lst)
+// TQPixmap.
+const char **PyTQt_qt_ListToArray(PyObject *lst)
{
int nstr;
const char **str, **sp;