[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 17:39:15
Message-ID: 1136050755.556304.9152.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 492947 by rdale:
* Improved the code generation for QApplication.cs and QSizePolicy.cs so
they don't need fixing up by hand.
M +78 -2 kalyptusCxxToKimono.pm
--- branches/KDE/3.5/kdebindings/kalyptus/kalyptusCxxToKimono.pm #492946:492947
@@ -40,7 +40,7 @@
$qtExtras $qobjectExtras $qwidgetExtras
$qpixmapExtras $qpaintdeviceExtras
$qdragobjectExtras $qiodeviceExtras $qpointarrayExtras
- $qtextcodecExtras $quridragExtras
+ $qtextcodecExtras $qsizepolicyExtras $quridragExtras
$kapplicationExtras $kmainwindowExtras
$methodNumber
%builtins %typeunion %allMethods %allTypes %enumValueToType %typedeflist %mungedTypeMap %csharpImports
@@ -269,8 +269,71 @@
);
$qapplicationExtras = <<EOF;
-// public native string[] args();
+ /* Constructor #1 */
+ public QApplication(string[] argv) : this((Type) null) {
+ Qyoto.Init_qyoto();
+ CreateQApplicationProxy();
+ CreateQApplicationSignalProxy();
+
+ string[] args = new string[argv.Length + 1];
+ args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
+ argv.CopyTo(args, 1);
+
+ NewQApplication(args);
+ }
+ private void NewQApplication(string[] argv) {
+ ProxyQApplication().NewQApplication(argv.Length, argv);
+ }
+ [SmokeMethod("QApplication(int&, char**)")]
+ private void NewQApplication(int argc, string[] argv) {
+ ProxyQApplication().NewQApplication(argc, argv);
+ }
+ /* end Constructor #1 */
+ /* Constructor #2 */
+ public QApplication(string[] argv, bool GUIenabled) : this((Type) null) {
+ Qyoto.Init_qyoto();
+ CreateQApplicationProxy();
+ CreateQApplicationSignalProxy();
+
+ string[] args = new string[argv.Length + 1];
+ args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
+ argv.CopyTo(args, 1);
+
+ NewQApplication(args,GUIenabled);
+ }
+ private void NewQApplication(string[] argv, bool GUIenabled) {
+ ProxyQApplication().NewQApplication(argv.Length, argv,GUIenabled);
+ }
+ [SmokeMethod("QApplication(int&, char**, bool)")]
+ private void NewQApplication(int argc, string[] argv, bool GUIenabled) {
+ ProxyQApplication().NewQApplication(argc, argv,GUIenabled);
+ }
+ /* end Constructor #2 */
+
+ /* Constructor #3 */
+ public QApplication(string[] argv, int arg3) : this((Type) null) {
+ Qyoto.Init_qyoto();
+ CreateQApplicationProxy();
+ CreateQApplicationSignalProxy();
+
+ string[] args = new string[argv.Length + 1];
+ args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
+ argv.CopyTo(args, 1);
+
+ NewQApplication(args,arg3);
+ }
+ private void NewQApplication(string[] argv, int arg3) {
+ ProxyQApplication().NewQApplication(argv.Length,argv,arg3);
+ }
+ [SmokeMethod("QApplication(int&, char**, QApplication::Type)")]
+ private void NewQApplication(int argc, string[] argv, int arg3) {
+ ProxyQApplication().NewQApplication(argc,argv,arg3);
+ }
+ /* end Constructor #3 */
+
+// public string[] args(return Argv());
+
EOF
@@ -352,6 +415,16 @@
EOF
+ $qsizepolicyExtras = <<EOF;
+
+ public const int HSize = 6;
+ public const int HMask = 0x3f;
+ public const int VMask = HMask<<HSize;
+ public const int MayGrow = 1;
+ public const int ExpMask = 2;
+ public const int MayShrink = 4;
+EOF
+
$quridragExtras = <<EOF;
// public static native bool decode(QMimeSourceInterface e, ArrayList i);
// public static native bool decodeToUnicodeUris(QMimeSourceInterface e, ArrayList i);
@@ -831,6 +904,7 @@
|| ($name eq 'staticMetaObject')
|| ($name eq 'type')
|| ($classNode->{astNodeName} eq 'KTar' and $name eq 'writeFile_impl')
+ || ($classNode->{astNodeName} eq 'QApplication' and $name eq 'QApplication')
# Assume only Qt classes have tr() and trUtf8() in their Q_OBJECT macro
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'tr')
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'trUtf8')
@@ -1216,6 +1290,8 @@
print CLASS $qiodeviceExtras;
} elsif ( $className eq 'QPointArray' ) {
print CLASS $qpointarrayExtras;
+ } elsif ( $className eq 'QSizePolicy' ) {
+ print CLASS $qsizepolicyExtras;
} elsif ( $className eq 'QUriDrag' ) {
print CLASS $quridragExtras;
} elsif ( $className eq 'KApplication' ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic