Update various qt function definitions and static methods for tqt3

bug/266/move-to-usr
Timothy Pearson 12 years ago
parent 7aa035c4f5
commit 8767713ab0

@ -170,7 +170,7 @@
* PerlTQt/: TQt.pm, TQt.xs, handlers.cpp:
- implemented TQByteArray Marshaller (from/to Perl string, tied if needed)
Still needs some thought /wrt to Utf8 handling (think qCompress/qUncompress)
Still needs some thought /wrt to Utf8 handling (think qCompress/tqUncompress)
With TQDataStream static operators and this, we get a nice object serializer :)

@ -170,7 +170,7 @@
* PerlTQt/: TQt.pm, TQt.xs, handlers.cpp:
- implemented TQByteArray Marshaller (from/to Perl string, tied if needed)
Still needs some thought /wrt to Utf8 handling (think qCompress/qUncompress)
Still needs some thought /wrt to Utf8 handling (think qCompress/tqUncompress)
With TQDataStream static operators and this, we get a nice object serializer :)

@ -962,16 +962,16 @@ C<TQt::GlobalSpace>.
Hence, you shall access this namespace either with a fully qualified call:
TQt::GlobalSpace::qUncompress( $buffer )
TQt::GlobalSpace::tqUncompress( $buffer )
Or directly, after importation in the current namespace:
use TQt::GlobalSpace;
qUncompress( $buffer )
tqUncompress( $buffer )
Of course, you may selectively import a few functions:
use TQt::GlobalSpace qw( qUncompress bitBlt )
use TQt::GlobalSpace qw( tqUncompress bitBlt )
B<Note:> GlobalSpace has also operators, such has the one performing an addition on two
TQt::Point(). Those operators are called automatically.

@ -903,7 +903,7 @@ TQt has also some utilitarian functions such as bitBlt, qCompress, etc.
</dd>
<dd>
<pre>
TQt::GlobalSpace::qUncompress( $buffer )</pre>
TQt::GlobalSpace::tqUncompress( $buffer )</pre>
</dd>
<dd>
<p>Or directly, after importation in the current namespace:</p>
@ -911,14 +911,14 @@ TQt has also some utilitarian functions such as bitBlt, qCompress, etc.
<dd>
<pre>
use TQt::GlobalSpace;
qUncompress( $buffer )</pre>
tqUncompress( $buffer )</pre>
</dd>
<dd>
<p>Of course, you may selectively import a few functions:</p>
</dd>
<dd>
<pre>
use TQt::GlobalSpace qw( qUncompress bitBlt )</pre>
use TQt::GlobalSpace qw( tqUncompress bitBlt )</pre>
</dd>
<dd>
<p><strong>Note:</strong> GlobalSpace has also operators, such has the one performing an addition on two

@ -997,16 +997,16 @@ C<TQt::GlobalSpace>.
Vous pourrez donc y accéder soit par un appel pleinement qualifié :
TQt::GlobalSpace::qUncompress( $buffer )
TQt::GlobalSpace::tqUncompress( $buffer )
Soit en important préalablement ces fonctions dans l'espace de nom courant :
use TQt::GlobalSpace;
qUncompress( $buffer )
tqUncompress( $buffer )
Bien entendu, vous pouvez aussi n'importer que les fonctions souhaitées :
use TQt::GlobalSpace qw( qUncompress bitBlt )
use TQt::GlobalSpace qw( tqUncompress bitBlt )
B<N.B:> GlobalSpace renferme également des opérateurs de portée globale, tels
celui permettant d'aditionner deux TQt::Point(). Ces opérateurs seront appelés

@ -931,7 +931,7 @@ TQt dispose de fonctions utilitaires, telles bitBlt, qCompress, etc.
</dd>
<dd>
<pre>
TQt::GlobalSpace::qUncompress( $buffer )</pre>
TQt::GlobalSpace::tqUncompress( $buffer )</pre>
</dd>
<dd>
<p>Soit en important préalablement ces fonctions dans l'espace de nom courant :</p>
@ -939,14 +939,14 @@ TQt dispose de fonctions utilitaires, telles bitBlt, qCompress, etc.
<dd>
<pre>
use TQt::GlobalSpace;
qUncompress( $buffer )</pre>
tqUncompress( $buffer )</pre>
</dd>
<dd>
<p>Bien entendu, vous pouvez aussi n'importer que les fonctions souhaitées :</p>
</dd>
<dd>
<pre>
use TQt::GlobalSpace qw( qUncompress bitBlt )</pre>
use TQt::GlobalSpace qw( tqUncompress bitBlt )</pre>
</dd>
<dd>
<p><strong>N.B:</strong> GlobalSpace renferme également des opérateurs de portée globale, tels

@ -81,7 +81,7 @@
2004-06-29 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Java methods now generated for qCompress and qUncompress methods - Michal Ceresna
* Java methods now generated for qCompress and tqUncompress methods - Michal Ceresna
reported that the methods missing from the QtJava api.
2004-06-25 Richard Dale <Richard_Dale@tipitina.demon.co.uk>

@ -142,7 +142,7 @@ $allowed_k_dcop_accesors_re = join("|", @allowed_k_dcop_accesors);
QT_NO_REMOTE => 'QT_NO_REMOTE',
QT_ACCESSIBILITY_SUPPORT => 'QT_ACCESSIBILITY_SUPPORT',
Q_WS_X11 => 'Q_WS_X11',
Q_DISABLE_COPY => 'Q_DISABLE_COPY',
TQ_DISABLE_COPY => 'TQ_DISABLE_COPY',
Q_WS_QWS => 'undef',
Q_WS_MAC => 'undef',
Q_OBJECT => <<'CODE',
@ -499,7 +499,7 @@ LOOP:
$p =~ s/QT_MOC_COMPAT//;
$p =~ s/Q_EXPORT_CODECS_BIG5//;
$p =~ s/QT_COMPAT / /;
$p =~ s/Q_DISABLE_COPY\((\w+)\)/$1(const $1 &);\n$1 &operator=(const $1 &);/;
$p =~ s/TQ_DISABLE_COPY\((\w+)\)/$1(const $1 &);\n$1 &operator=(const $1 &);/;
$p =~ s/TQWIDGETSIZE_MAX/32767/; # Qt/E uses this #define as an enum value - yuck!
$p =~ s/Q_SIGNALS/signals/;
$p =~ s/ASYNC/void/;
@ -861,7 +861,7 @@ sub identifyDecl
\s*(class|struct|union|namespace) # 2 struct type
(?:\s*TQ[A-Z_]*EXPORT[A-Z_]*)?
(?:\s*Q[A-Z_]*EXPORT[A-Z_]*)?
(?:\s*Q_PACKED)?
(?:\s*TQ_PACKED)?
(?:\s*Q_REFCOUNT)?
\s+([\w_]+ # 3 name
(?:<[\w_ :,]+?>)? # maybe explicit template

@ -2279,7 +2279,7 @@ BEGIN
'Q_INT8' => 'char',
'Q_LONG&' => 'long',
'Q_LONG' => 'long',
'Q_PACKED*' => 'void*',
'TQ_PACKED*' => 'void*',
'Q_UINT16&' => 'unsigned short',
'Q_UINT16' => 'unsigned short',
'Q_UINT32&' => 'unsigned int',

@ -43,7 +43,7 @@
#if( TQT_VERSION < 0x030101 )
# include <zlib.h>
static TQByteArray qUncompress( const uchar* data, int nbytes )
static TQByteArray tqUncompress( const uchar* data, int nbytes )
{
if ( !data ) {
#if defined(TQT_CHECK_RANGE)
@ -117,13 +117,13 @@ static TQByteArray unzipXPM( TQString data, ulong& length )
r += l - 'a' + 10;
ba[ i ] = r;
}
// qUncompress() expects the first 4 bytes to be the expected length of the
// tqUncompress() expects the first 4 bytes to be the expected length of the
// uncompressed data
ba[0] = ( length & 0xff000000 ) >> 24;
ba[1] = ( length & 0x00ff0000 ) >> 16;
ba[2] = ( length & 0x0000ff00 ) >> 8;
ba[3] = ( length & 0x000000ff );
TQByteArray baunzip = qUncompress( ba, baSize );
TQByteArray baunzip = tqUncompress( ba, baSize );
delete[] ba;
return baunzip;
}

Loading…
Cancel
Save