summaryrefslogtreecommitdiffstats
path: root/src/kernel/qimage.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
committerMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/kernel/qimage.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/kernel/qimage.cpp')
-rw-r--r--src/kernel/qimage.cpp216
1 files changed, 108 insertions, 108 deletions
diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp
index ab42e188b..2f7038bbf 100644
--- a/src/kernel/qimage.cpp
+++ b/src/kernel/qimage.cpp
@@ -64,8 +64,8 @@
#endif
// 16bpp images on supported on TQt/Embedded
-#if !defined( Q_WS_QWS ) && !defined(QT_NO_IMAGE_16_BIT)
-#define QT_NO_IMAGE_16_BIT
+#if !defined( Q_WS_QWS ) && !defined(TQT_NO_IMAGE_16_BIT)
+#define TQT_NO_IMAGE_16_BIT
#endif
@@ -246,7 +246,7 @@
#pragma message disable narrowptr
#endif
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
class TQImageDataMisc {
public:
TQImageDataMisc() { }
@@ -286,7 +286,7 @@ public:
TQMap<TQImageTextKeyLang,TQString> text_lang;
};
-#endif // QT_NO_IMAGE_TEXT
+#endif // TQT_NO_IMAGE_TEXT
@@ -372,7 +372,7 @@ TQImage::TQImage( const TQSize& size, int depth, int numColors, Endian bitOrder
create( size, depth, numColors, bitOrder );
}
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
/*!
Constructs an image and tries to load the image from the file \a
fileName.
@@ -397,7 +397,7 @@ TQImage::TQImage( const TQString &fileName, const char* format )
load( fileName, format );
}
-#ifndef QT_NO_IMAGEIO_XPM
+#ifndef TQT_NO_IMAGEIO_XPM
// helper
static void read_xpm_image_or_array( TQImageIO *, const char * const *, TQImage & );
#endif
@@ -424,7 +424,7 @@ static void read_xpm_image_or_array( TQImageIO *, const char * const *, TQImage
TQImage::TQImage( const char * const xpm[] )
{
init();
-#ifndef QT_NO_IMAGEIO_XPM
+#ifndef TQT_NO_IMAGEIO_XPM
read_xpm_image_or_array( 0, xpm, *this );
#else
// We use a tqFatal rather than disabling the whole function, as this
@@ -447,7 +447,7 @@ TQImage::TQImage( const TQByteArray &array )
init();
loadFromData(array);
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
/*!
@@ -582,7 +582,7 @@ TQImage::~TQImage()
\sa TQMimeSourceFactory, TQImage::fromMimeSource(), TQImageDrag::decode()
*/
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQImage TQImage::fromMimeSource( const TQString &abs_name )
{
const TQMimeSource *m = TQMimeSourceFactory::defaultFactory()->data( abs_name );
@@ -680,7 +680,7 @@ TQImage TQImage::copy() const
image.data->dpmx = dotsPerMeterX();
image.data->dpmy = dotsPerMeterY();
image.data->offset = offset();
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
if ( data->misc ) {
image.data->misc = new TQImageDataMisc;
*image.data->misc = misc();
@@ -747,7 +747,7 @@ TQImage TQImage::copy(int x, int y, int w, int h, int conversion_flags) const
image.data->dpmx = dotsPerMeterX();
image.data->dpmy = dotsPerMeterY();
image.data->offset = offset();
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
if ( data->misc ) {
image.data->misc = new TQImageDataMisc;
*image.data->misc = misc();
@@ -960,7 +960,7 @@ void TQImage::reset()
{
freeBits();
setNumColors( 0 );
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
delete data->misc;
#endif
reinit();
@@ -1005,7 +1005,7 @@ void TQImage::fill( uint pixel )
int bpl = bytesPerLine();
for ( int i=0; i<height(); i++ )
memset( scanLine(i), pixel, bpl );
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
} else if ( depth() == 16 ) {
for ( int i=0; i<height(); i++ ) {
//optimize with 32-bit writes, since image is always aligned
@@ -1018,8 +1018,8 @@ void TQImage::fill( uint pixel )
while ( p < end )
*p++ = fill;
}
-#endif // QT_NO_IMAGE_16_BIT
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#endif // TQT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_TRUECOLOR
} else if ( depth() == 32 ) {
if ( hasAlphaBuffer() ) {
pixel &= 0x00ffffff;
@@ -1039,7 +1039,7 @@ void TQImage::fill( uint pixel )
*p++ = pixel;
}
}
-#endif // QT_NO_IMAGE_TRUECOLOR
+#endif // TQT_NO_IMAGE_TRUECOLOR
}
}
@@ -1257,10 +1257,10 @@ bool TQImage::create( int width, int height, int depth, int numColors,
switch ( depth ) {
case 1:
case 8:
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
case 16:
#endif
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
case 32:
#endif
break;
@@ -1348,7 +1348,7 @@ void TQImage::reinit()
data->bits = 0;
data->bitordr = TQImage::IgnoreEndian;
data->alpha = FALSE;
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
data->misc = 0;
#endif
data->dpmx = 0;
@@ -1382,7 +1382,7 @@ void TQImage::freeBits()
//
// if dithering is needed, only 1 color at most is available for alpha.
//
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
struct TQRgbMap {
TQRgbMap() : rgb(0xffffffff) { }
bool used() const { return rgb!=0xffffffff; }
@@ -1649,7 +1649,7 @@ static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_fl
}
}
-#ifndef QT_NO_IMAGE_DITHER_TO_1
+#ifndef TQT_NO_IMAGE_DITHER_TO_1
if ( src->hasAlphaBuffer() ) {
const int trans = 216;
dst->setColor(trans, 0x00000000); // transparent
@@ -1737,7 +1737,7 @@ static bool convert_1_to_32( const TQImage *src, TQImage *dst )
}
return TRUE;
}
-#endif // QT_NO_IMAGE_TRUECOLOR
+#endif // TQT_NO_IMAGE_TRUECOLOR
static bool convert_1_to_8( const TQImage *src, TQImage *dst )
{
@@ -1776,7 +1776,7 @@ static bool convert_1_to_8( const TQImage *src, TQImage *dst )
return TRUE;
}
-#ifndef QT_NO_IMAGE_DITHER_TO_1
+#ifndef TQT_NO_IMAGE_DITHER_TO_1
//
// dither_to_1: Uses selected dithering algorithm.
//
@@ -1843,7 +1843,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
if ( use_gray ) { // 8 bit image
while ( p < end )
*b2++ = gray[*p++];
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
} else { // 32 bit image
if ( fromalpha ) {
while ( p < end ) {
@@ -1869,7 +1869,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
if ( use_gray ) { // 8 bit image
while ( p < end )
*b2++ = gray[*p++];
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
} else { // 24 bit image
if ( fromalpha ) {
while ( p < end ) {
@@ -1948,7 +1948,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
dst->fill( 0 );
uchar** mline = dst->jumpTable();
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
if ( d == 32 ) {
uint** line = (uint**)src->jumpTable();
for ( int i=0; i<h; i++ ) {
@@ -1982,7 +1982,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
}
} else
-#endif // QT_NO_IMAGE_TRUECOLOR
+#endif // TQT_NO_IMAGE_TRUECOLOR
/* ( d == 8 ) */ {
uchar** line = src->jumpTable();
for ( int i=0; i<h; i++ ) {
@@ -2007,7 +2007,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
default: { // Threshold:
dst->fill( 0 );
uchar** mline = dst->jumpTable();
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
if ( d == 32 ) {
uint** line = (uint**)src->jumpTable();
for ( int i=0; i<h; i++ ) {
@@ -2040,7 +2040,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
}
} else
-#endif //QT_NO_IMAGE_TRUECOLOR
+#endif //TQT_NO_IMAGE_TRUECOLOR
if ( d == 8 ) {
uchar** line = src->jumpTable();
for ( int i=0; i<h; i++ ) {
@@ -2066,7 +2066,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
#endif
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
//###### Endianness issues!
static inline bool is16BitGray( ushort c )
{
@@ -2133,11 +2133,11 @@ TQImage TQImage::convertDepth( int depth, int conversion_flags ) const
TQImage image;
if ( data->d == depth )
image = *this; // no conversion
-#ifndef QT_NO_IMAGE_DITHER_TO_1
+#ifndef TQT_NO_IMAGE_DITHER_TO_1
else if ( (data->d == 8 || data->d == 32) && depth == 1 ) // dither
dither_to_1( this, &image, conversion_flags, FALSE );
#endif
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
else if ( data->d == 32 && depth == 8 ) // 32 -> 8
convert_32_to_8( this, &image, conversion_flags );
else if ( data->d == 8 && depth == 32 ) // 8 -> 32
@@ -2145,11 +2145,11 @@ TQImage TQImage::convertDepth( int depth, int conversion_flags ) const
#endif
else if ( data->d == 1 && depth == 8 ) // 1 -> 8
convert_1_to_8( this, &image );
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
else if ( data->d == 1 && depth == 32 ) // 1 -> 32
convert_1_to_32( this, &image );
#endif
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
else if ( data->d == 16 && depth != 16 ) {
TQImage tmp;
convert_16_to_32( this, &tmp );
@@ -2219,8 +2219,8 @@ int TQImage::pixelIndex( int x, int y ) const
return (*(s + (x >> 3)) >> (7- (x & 7))) & 1;
case 8:
return (int)s[x];
-#ifndef QT_NO_IMAGE_TRUECOLOR
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_16_BIT
case 16:
#endif
case 32:
@@ -2229,7 +2229,7 @@ int TQImage::pixelIndex( int x, int y ) const
"(no palette)", depth() );
#endif
return 0;
-#endif //QT_NO_IMAGE_TRUECOLOR
+#endif //TQT_NO_IMAGE_TRUECOLOR
}
return 0;
}
@@ -2261,11 +2261,11 @@ TQRgb TQImage::pixel( int x, int y ) const
return color( (*(s + (x >> 3)) >> (7- (x & 7))) & 1 );
case 8:
return color( (int)s[x] );
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
case 16:
return qt_conv16ToRgb(((ushort*)s)[x]);
#endif
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
case 32:
return ((TQRgb*)s)[x];
#endif
@@ -2324,12 +2324,12 @@ void TQImage::setPixel( int x, int y, uint index_or_rgb )
}
uchar * s = scanLine( y );
s[x] = index_or_rgb;
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
} else if ( depth() == 16 ) {
ushort * s = (ushort*)scanLine( y );
s[x] = qt_convRgbTo16(index_or_rgb);
#endif
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
} else if ( depth() == 32 ) {
TQRgb * s = (TQRgb*)scanLine( y );
s[x] = index_or_rgb;
@@ -2392,14 +2392,14 @@ bool isGray(TQRgb c)
*/
bool TQImage::allGray() const
{
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
if (depth()==32) {
int p = width()*height();
TQRgb* b = (TQRgb*)bits();
while (p--)
if (!isGray(*b++))
return FALSE;
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
} else if (depth()==16) {
int p = width()*height();
ushort* b = (ushort*)bits();
@@ -2408,7 +2408,7 @@ bool TQImage::allGray() const
return FALSE;
#endif
} else
-#endif //QT_NO_IMAGE_TRUECOLOR
+#endif //TQT_NO_IMAGE_TRUECOLOR
{
if (!data->ctbl) return TRUE;
for (int i=0; i<numColors(); i++)
@@ -2431,13 +2431,13 @@ bool TQImage::allGray() const
bool TQImage::isGrayscale() const
{
switch (depth()) {
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
case 32:
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
case 16:
#endif
return allGray();
-#endif //QT_NO_IMAGE_TRUECOLOR
+#endif //TQT_NO_IMAGE_TRUECOLOR
case 8: {
for (int i=0; i<numColors(); i++)
if (data->ctbl[i] != tqRgb(i,i,i))
@@ -2448,7 +2448,7 @@ bool TQImage::isGrayscale() const
return FALSE;
}
-#ifndef QT_NO_IMAGE_SMOOTHSCALE
+#ifndef TQT_NO_IMAGE_SMOOTHSCALE
static
void pnmscale(const TQImage& src, TQImage& dst)
{
@@ -2738,7 +2738,7 @@ void pnmscale(const TQImage& src, TQImage& dst)
be larger than the requested size.
*/
-#ifndef QT_NO_IMAGE_SMOOTHSCALE
+#ifndef TQT_NO_IMAGE_SMOOTHSCALE
/*!
Returns a smoothly scaled copy of the image. The returned image
has a size of width \a w by height \a h pixels if \a mode is \c
@@ -2779,7 +2779,7 @@ TQImage TQImage::smoothScale( int w, int h, ScaleMode mode ) const
}
#endif
-#ifndef QT_NO_IMAGE_SMOOTHSCALE
+#ifndef TQT_NO_IMAGE_SMOOTHSCALE
/*!
\overload
@@ -2837,7 +2837,7 @@ TQImage TQImage::smoothScale( const TQSize& s, ScaleMode mode ) const
\sa scaleWidth() scaleHeight() smoothScale() xForm()
*/
-#ifndef QT_NO_IMAGE_TRANSFORMATION
+#ifndef TQT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::scale( int w, int h, ScaleMode mode ) const
{
return scale( TQSize( w, h ), mode );
@@ -2849,7 +2849,7 @@ TQImage TQImage::scale( int w, int h, ScaleMode mode ) const
The requested size of the image is \a s.
*/
-#ifndef QT_NO_IMAGE_TRANSFORMATION
+#ifndef TQT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::scale( const TQSize& s, ScaleMode mode ) const
{
if ( isNull() ) {
@@ -2887,7 +2887,7 @@ TQImage TQImage::scale( const TQSize& s, ScaleMode mode ) const
\sa scale() scaleHeight() smoothScale() xForm()
*/
-#ifndef QT_NO_IMAGE_TRANSFORMATION
+#ifndef TQT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::scaleWidth( int w ) const
{
if ( isNull() ) {
@@ -2916,7 +2916,7 @@ TQImage TQImage::scaleWidth( int w ) const
\sa scale() scaleWidth() smoothScale() xForm()
*/
-#ifndef QT_NO_IMAGE_TRANSFORMATION
+#ifndef TQT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::scaleHeight( int h ) const
{
if ( isNull() ) {
@@ -2946,7 +2946,7 @@ TQImage TQImage::scaleHeight( int h ) const
\sa scale() TQPixmap::xForm() TQPixmap::trueMatrix() TQWMatrix
*/
-#ifndef QT_NO_IMAGE_TRANSFORMATION
+#ifndef TQT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::xForm( const TQWMatrix &matrix ) const
{
// This function uses the same algorithm as (and steals quite some
@@ -3054,7 +3054,7 @@ TQImage TQImage::xForm( const TQWMatrix &matrix ) const
\sa createHeuristicMask() hasAlphaBuffer() setAlphaBuffer()
*/
-#ifndef QT_NO_IMAGE_DITHER_TO_1
+#ifndef TQT_NO_IMAGE_DITHER_TO_1
TQImage TQImage::createAlphaMask( int conversion_flags ) const
{
if ( conversion_flags == 1 ) {
@@ -3078,7 +3078,7 @@ TQImage TQImage::createAlphaMask( int conversion_flags ) const
}
#endif
-#ifndef QT_NO_IMAGE_HEURISTIC_MASK
+#ifndef TQT_NO_IMAGE_HEURISTIC_MASK
/*!
Creates and returns a 1-bpp heuristic mask for this image. It
works by selecting a color from one of the corners, then chipping
@@ -3190,9 +3190,9 @@ TQImage TQImage::createHeuristicMask( bool clipTight ) const
return m;
}
-#endif //QT_NO_IMAGE_HEURISTIC_MASK
+#endif //TQT_NO_IMAGE_HEURISTIC_MASK
-#ifndef QT_NO_IMAGE_MIRROR
+#ifndef TQT_NO_IMAGE_MIRROR
/*
This code is contributed by Philipp Lang,
GeneriCom Software Germany (www.generi.com)
@@ -3238,8 +3238,8 @@ TQImage TQImage::mirror(bool horizontal, bool vertical) const
dsl[dx] = ssl[sx];
}
}
-#ifndef QT_NO_IMAGE_TRUECOLOR
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_16_BIT
// 16 bit
else if (depth() == 16) {
for (int sy = 0; sy < h; sy++, dy += dyi) {
@@ -3309,7 +3309,7 @@ TQImage TQImage::mirror() const
{
return mirror(FALSE,TRUE);
}
-#endif //QT_NO_IMAGE_MIRROR
+#endif //TQT_NO_IMAGE_MIRROR
/*!
Returns a TQImage in which the values of the red and blue
@@ -3321,7 +3321,7 @@ TQImage TQImage::swapRGB() const
{
TQImage res = copy();
if ( !isNull() ) {
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
if ( depth() == 32 ) {
for ( int i=0; i < height(); i++ ) {
uint *p = (uint*)scanLine( i );
@@ -3334,12 +3334,12 @@ TQImage TQImage::swapRGB() const
q++;
}
}
-#ifndef QT_NO_IMAGE_16_BIT
+#ifndef TQT_NO_IMAGE_16_BIT
} else if ( depth() == 16 ) {
tqWarning( "TQImage::swapRGB not implemented for 16bpp" );
#endif
} else
-#endif //QT_NO_IMAGE_TRUECOLOR
+#endif //TQT_NO_IMAGE_TRUECOLOR
{
uint* p = (uint*)colorTable();
uint* q = (uint*)res.colorTable();
@@ -3356,7 +3356,7 @@ TQImage TQImage::swapRGB() const
return res;
}
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
/*!
Returns a string that specifies the image format of the file \a
fileName, or 0 if the file cannot be read or if the format is not
@@ -3384,7 +3384,7 @@ TQStrList TQImage::inputFormats()
{
return TQImageIO::inputFormats();
}
-#ifndef QT_NO_STRINGLIST
+#ifndef TQT_NO_STRINGLIST
/*!
Returns a list of image formats that are supported for image
input.
@@ -3429,7 +3429,7 @@ TQStringList TQImage::outputFormatList()
{
return TQStringList::fromStrList(TQImageIO::outputFormats());
}
-#endif //QT_NO_STRINGLIST
+#endif //TQT_NO_STRINGLIST
/*!
Returns a list of image formats that are supported for image
@@ -3568,12 +3568,12 @@ bool TQImage::doImageIO( TQImageIO* io, int quality ) const
io->setQuality( TQMIN(quality,100) );
return io->write();
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
/*****************************************************************************
TQImage stream functions
*****************************************************************************/
-#if !defined(QT_NO_DATASTREAM) && !defined(QT_NO_IMAGEIO)
+#if !defined(TQT_NO_DATASTREAM) && !defined(TQT_NO_IMAGEIO)
/*!
\relates TQImage
@@ -3640,31 +3640,31 @@ TQDataStream &operator>>( TQDataStream &s, TQImage &image )
*****************************************************************************/
// standard image io handlers (defined below)
-#ifndef QT_NO_IMAGEIO_BMP
+#ifndef TQT_NO_IMAGEIO_BMP
static void read_bmp_image( TQImageIO * );
static void write_bmp_image( TQImageIO * );
#endif
-#ifndef QT_NO_IMAGEIO_PPM
+#ifndef TQT_NO_IMAGEIO_PPM
static void read_pbm_image( TQImageIO * );
static void write_pbm_image( TQImageIO * );
#endif
-#ifndef QT_NO_IMAGEIO_XBM
+#ifndef TQT_NO_IMAGEIO_XBM
static void read_xbm_image( TQImageIO * );
static void write_xbm_image( TQImageIO * );
#endif
-#ifndef QT_NO_IMAGEIO_XPM
+#ifndef TQT_NO_IMAGEIO_XPM
static void read_xpm_image( TQImageIO * );
static void write_xpm_image( TQImageIO * );
#endif
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
static void read_async_image( TQImageIO * ); // Not in table of handlers
#endif
/*****************************************************************************
Misc. utility functions
*****************************************************************************/
-#if !defined(QT_NO_IMAGEIO_XPM) || !defined(QT_NO_IMAGEIO_XBM)
+#if !defined(TQT_NO_IMAGEIO_XPM) || !defined(TQT_NO_IMAGEIO_XBM)
static TQString fbname( const TQString &fileName ) // get file basename (sort of)
{
TQString s = fileName;
@@ -3687,7 +3687,7 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of
}
#endif
-#ifndef QT_NO_IMAGEIO_BMP
+#ifndef TQT_NO_IMAGEIO_BMP
static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels
{
int i;
@@ -3756,7 +3756,7 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels
\sa TQImage TQPixmap TQFile TQMovie
*/
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
struct TQImageIOData
{
const char *parameters;
@@ -3855,7 +3855,7 @@ TQImageHandler::TQImageHandler( const char *f, const char *h, const TQCString& f
typedef TQPtrList<TQImageHandler> TQIHList;// list of image handlers
static TQIHList *imageHandlers = 0;
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
static TQPluginManager<TQImageFormatInterface> *plugin_manager = 0;
#else
static void *plugin_manager = 0;
@@ -3863,7 +3863,7 @@ static void *plugin_manager = 0;
void tqt_init_image_plugins()
{
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
if ( plugin_manager )
return;
@@ -3887,7 +3887,7 @@ static void cleanup()
// make sure that image handlers are delete before plugin manager
delete imageHandlers;
imageHandlers = 0;
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
delete plugin_manager;
plugin_manager = 0;
#endif
@@ -3900,11 +3900,11 @@ void tqt_init_image_handlers() // initialize image handlers
TQ_CHECK_PTR( imageHandlers );
imageHandlers->setAutoDelete( TRUE );
tqAddPostRoutine( cleanup );
-#ifndef QT_NO_IMAGEIO_BMP
+#ifndef TQT_NO_IMAGEIO_BMP
TQImageIO::defineIOHandler( "BMP", "^BM", 0,
read_bmp_image, write_bmp_image );
#endif
-#ifndef QT_NO_IMAGEIO_PPM
+#ifndef TQT_NO_IMAGEIO_PPM
TQImageIO::defineIOHandler( "PBM", "^P1", "t",
read_pbm_image, write_pbm_image );
TQImageIO::defineIOHandler( "PBMRAW", "^P4", "O",
@@ -3918,21 +3918,21 @@ void tqt_init_image_handlers() // initialize image handlers
TQImageIO::defineIOHandler( "PPMRAW", "^P6", "O",
read_pbm_image, write_pbm_image );
#endif
-#ifndef QT_NO_IMAGEIO_XBM
+#ifndef TQT_NO_IMAGEIO_XBM
TQImageIO::defineIOHandler( "XBM", "^((/\\*(?!.XPM.\\*/))|#define)", "T",
read_xbm_image, write_xbm_image );
#endif
-#ifndef QT_NO_IMAGEIO_XPM
+#ifndef TQT_NO_IMAGEIO_XPM
TQImageIO::defineIOHandler( "XPM", "/\\*.XPM.\\*/", "T",
read_xpm_image, write_xpm_image );
#endif
-#ifndef QT_NO_IMAGEIO_MNG
+#ifndef TQT_NO_IMAGEIO_MNG
qInitMngIO();
#endif
-#ifndef QT_NO_IMAGEIO_PNG
+#ifndef TQT_NO_IMAGEIO_PNG
qInitPngIO();
#endif
-#ifndef QT_NO_IMAGEIO_JPEG
+#ifndef TQT_NO_IMAGEIO_JPEG
qInitJpegIO();
#endif
}
@@ -4310,7 +4310,7 @@ const char *TQImageIO::imageFormat( TQIODevice *d )
}
}
d->at( pos ); // restore position
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
if ( !format )
format = TQImageDecoder::formatName( (uchar*)buf2, rdlen );
#endif
@@ -4329,7 +4329,7 @@ TQStrList TQImageIO::inputFormats()
tqt_init_image_handlers();
tqt_init_image_plugins();
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
// Include asynchronous loaders first.
result = TQImageDecoder::inputFormats();
#endif
@@ -4451,7 +4451,7 @@ bool TQImageIO::read()
if ( h && h->read_image ) {
(*h->read_image)( this );
}
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
else {
// Format name, but no handler - must be an asychronous reader
read_async_image( this );
@@ -4524,9 +4524,9 @@ bool TQImageIO::write()
}
return iostat == 0; // image successfully written?
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
-#ifndef QT_NO_IMAGEIO_BMP
+#ifndef TQT_NO_IMAGEIO_BMP
/*****************************************************************************
BMP (DIB) image read/write functions
@@ -5115,9 +5115,9 @@ static void write_bmp_image( TQImageIO *iio )
}
-#endif // QT_NO_IMAGEIO_BMP
+#endif // TQT_NO_IMAGEIO_BMP
-#ifndef QT_NO_IMAGEIO_PPM
+#ifndef TQT_NO_IMAGEIO_PPM
/*****************************************************************************
PBM/PGM/PPM (ASCII and RAW) image read/write functions
@@ -5423,9 +5423,9 @@ static void write_pbm_image( TQImageIO *iio )
iio->setStatus(0);
}
-#endif // QT_NO_IMAGEIO_PPM
+#endif // TQT_NO_IMAGEIO_PPM
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
class TQImageIOFrameGrabber : public TQImageConsumer {
public:
@@ -5493,9 +5493,9 @@ static void read_async_image( TQImageIO *iio )
delete consumer;
}
-#endif // QT_NO_ASYNC_IMAGE_IO
+#endif // TQT_NO_ASYNC_IMAGE_IO
-#ifndef QT_NO_IMAGEIO_XBM
+#ifndef TQT_NO_IMAGEIO_XBM
/*****************************************************************************
X bitmap image read/write functions
@@ -5651,10 +5651,10 @@ static void write_xbm_image( TQImageIO *iio )
delete [] buf;
}
-#endif // QT_NO_IMAGEIO_XBM
+#endif // TQT_NO_IMAGEIO_XBM
-#ifndef QT_NO_IMAGEIO_XPM
+#ifndef TQT_NO_IMAGEIO_XPM
/*****************************************************************************
XPM image read/write functions
@@ -5993,7 +5993,7 @@ static void write_xpm_image( TQImageIO * iio )
iio->setStatus( 0 );
}
-#endif // QT_NO_IMAGEIO_XPM
+#endif // TQT_NO_IMAGEIO_XPM
/*!
Returns an image with depth \a d, using the \a palette_count
@@ -6013,7 +6013,7 @@ static void write_xpm_image( TQImageIO * iio )
\sa TQt::ImageConversionFlags
*/
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
TQImage TQImage::convertDepthWithPalette( int d, TQRgb* palette, int palette_count, int conversion_flags ) const
{
if ( depth() == 1 ) {
@@ -6096,7 +6096,7 @@ void bitBlt( TQImage* dst, int dx, int dy, const TQImage* src,
{
// easy to copy
} else if ( dst->depth() != 32 ) {
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
TQImage dstconv = dst->convertDepth( 32 );
bitBlt( &dstconv, dx, dy, src, sx, sy, sw, sh,
@@ -6180,7 +6180,7 @@ void bitBlt( TQImage* dst, int dx, int dy, const TQImage* src,
}
}
break;
-#ifndef QT_NO_IMAGE_TRUECOLOR
+#ifndef TQT_NO_IMAGE_TRUECOLOR
case 32:
if ( src->hasAlphaBuffer() ) {
TQRgb* d = (TQRgb*)dst->scanLine(dy) + dx;
@@ -6232,7 +6232,7 @@ void bitBlt( TQImage* dst, int dx, int dy, const TQImage* src,
}
}
break;
-#endif // QT_NO_IMAGE_TRUECOLOR
+#endif // TQT_NO_IMAGE_TRUECOLOR
}
}
@@ -6353,7 +6353,7 @@ void TQImage::setOffset(const TQPoint& p)
{
data->offset = p;
}
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
/*!
\internal
@@ -6471,7 +6471,7 @@ void TQImage::setText(const char* key, const char* lang, const TQString& s)
misc().text_lang.replace(x,s);
}
-#endif // QT_NO_IMAGE_TEXT
+#endif // TQT_NO_IMAGE_TEXT
#ifdef Q_WS_QWS
/*!