[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdebindings/kalyptus
From: Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date: 2005-12-31 19:54:50
Message-ID: 1136058890.702216.12338.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 492969 by rdale:
* Added SLOT() and SIGNAL() methods to Qt.cs, and some constants.
M +43 -5 kalyptusCxxToKimono.pm
--- branches/KDE/3.5/kdebindings/kalyptus/kalyptusCxxToKimono.pm #492968:492969
@@ -34,7 +34,7 @@
use vars qw/
$libname $rootnode $outputdir $opt $debug
- $qapplicationExtras $qbitmapExtras
+ $qapplicationExtras $qbitmapExtras $qbytearrayExtras
$qlistviewExtras $qlistviewitemExtras
$qdragobjectExtras $qdropeventExtras $qmimesourceExtras
$qtExtras $qobjectExtras $qwidgetExtras
@@ -350,7 +350,11 @@
// private native void newQBitmap(QImage arg1);
EOF
+
+ $qbytearrayExtras = <<EOF;
+EOF
+
$qlistviewExtras = <<EOF;
@@ -361,11 +365,43 @@
EOF
$qtExtras = <<EOF;
-
+ public const int IO_Direct = 0x0100;
+ public const int IO_Sequential = 0x0200;
+ public const int IO_Combined = 0x0300;
+ public const int IO_TypeMask = 0x0f00;
+ public const int IO_Raw = 0x0040;
+ public const int IO_Async = 0x0080;
+ public const int IO_ReadOnly = 0x0001;
+ public const int IO_WriteOnly = 0x0002;
+ public const int IO_ReadWrite = 0x0003;
+ public const int IO_Append = 0x0004;
+ public const int IO_Truncate = 0x0008;
+ public const int IO_Translate = 0x0010;
+ public const int IO_ModeMask = 0x00ff;
+ public const int IO_Open = 0x1000;
+ public const int IO_StateMask = 0xf000;
+ public const int IO_Ok = 0;
+ public const int IO_ReadError = 1;
+ public const int IO_WriteError = 2;
+ public const int IO_FatalError = 3;
+ public const int IO_ResourceError = 4;
+ public const int IO_OpenError = 5;
+ public const int IO_ConnectError = 5;
+ public const int IO_AbortError = 6;
+ public const int IO_TimeOutError = 7;
+ public const int IO_UnspecifiedError= 8;
+
+ public static string SIGNAL(string signal) {
+ return "2"+ signal;
+ }
+
+ public static string SLOT(string slot) {
+ return "1" + slot;
+ }
EOF
+ $qobjectExtras = <<EOF;
- $qobjectExtras = <<EOF;
protected Object _signalInterceptor = null;
EOF
@@ -1262,12 +1298,14 @@
print CLASS $methodCode;
- if ( $className eq 'Qt' ) {
+ if ( $className eq 'Qt' and ! $main::qt4 ) {
print CLASS $qtExtras;
- } elsif ( $className eq 'QApplication' ) {
+ } elsif ( $className eq 'QApplication' and ! $main::qt4 ) {
print CLASS $qapplicationExtras;
} elsif ( $className eq 'QBitmap' ) {
print CLASS $qbitmapExtras;
+ } elsif ( $className eq 'QByteArray' and ! $main::qt4) {
+ print CLASS $qbytearrayExtras;
} elsif ( $className eq 'QDropEvent' ) {
print CLASS $qdropeventExtras;
} elsif ( $className eq 'QDragObject' ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic