[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Jan 22 13:44:07 UTC 2007


SVN commit 626204 by rdale:

* Add QApplicationExtras.cs, QCoreApplicationExtras.cs and QtExtras.cs
* Fix bug in setting up argv array passed to QApplication constructor
  pointed out by Arno.

CCMAIL: kde-bindings at kde.org



 M  +6 -0      ChangeLog  
 M  +1 -15     core/QCoreApplication.cs  
 A             core/QCoreApplicationExtras.cs  
 M  +0 -1      core/QObject.cs  
 M  +1 -10     core/Qt.cs  
 A             core/QtExtras.cs  
 M  +1 -50     gui/QApplication.cs  
 A             gui/QApplicationExtras.cs  
 M  +0 -7      gui/QSizePolicy.cs  


--- trunk/playground/bindings/kimono/ChangeLog #626203:626204
@@ -1,3 +1,9 @@
+2007-22-01  Richard Dale  <rdale at foton.es>
+
+	* Add QApplicationExtras.cs, QCoreApplicationExtras.cs and QtExtras.cs
+	* Fix bug in setting up argv array passed to QApplication constructor
+	  pointed out by Arno.
+
 2007-21-01  Richard Dale  <rdale at foton.es>
 
 	* Split QVariant.cs and QDBusConnectionInterface in two files with partial
--- trunk/playground/bindings/kimono/core/QCoreApplication.cs #626203:626204
@@ -7,7 +7,7 @@
 
 	/// See <see cref="IQCoreApplicationSignals"></see> for signals emitted by QCoreApplication
 	[SmokeClass("QCoreApplication")]
-	public class QCoreApplication : QObject, IDisposable {
+	public partial class QCoreApplication : QObject, IDisposable {
  		protected QCoreApplication(Type dummy) : base((Type) null) {}
 		interface IQCoreApplicationProxy {
 			string Tr(string s, string c);
@@ -260,20 +260,6 @@
 		private void DisposeQCoreApplication() {
 			ProxyQCoreApplication().DisposeQCoreApplication();
 		}
-		public QCoreApplication(string[] argv) : this((Type) null) {
-			Qyoto.Init_qyoto();
-			CreateProxy();
-			
-			string[] args = new string[argv.Length + 1];
-			args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
-			argv.CopyTo(args, 1);
-
-			NewQCoreApplication(argv.Length, argv);
-		}
-		[SmokeMethod("QCoreApplication(int&, char**)")]
-		private void NewQCoreApplication(int argc, string[] argv) {
-			ProxyQCoreApplication().NewQCoreApplication(argc, argv);
-		}
 		protected new IQCoreApplicationSignals Emit() {
 			return (IQCoreApplicationSignals) Q_EMIT;
 		}
--- trunk/playground/bindings/kimono/core/QObject.cs #626203:626204
@@ -252,7 +252,6 @@
 		private void DisposeQObject() {
 			ProxyQObject().DisposeQObject();
 		}
-
 		protected Object Q_EMIT = null;
 		protected new IQObjectSignals Emit() {
 			return (IQObjectSignals) Q_EMIT;
--- trunk/playground/bindings/kimono/core/Qt.cs #626203:626204
@@ -5,7 +5,7 @@
 	using System.Collections;
 	using System.Text;
 
-	public class Qt : MarshalByRefObject {
+	public partial class Qt : MarshalByRefObject {
 		protected Object _interceptor = null;
 		interface IQtProxy {
 			bool MightBeRichText(string arg1);
@@ -2452,14 +2452,5 @@
 		public static QDataStream op_write(QDataStream arg1, string[] list) {
 			return StaticQt().op_write(arg1,list);
 		}
-		public static QApplication qApp = null;
-
-		public static string SIGNAL(string signal) {
-			return "2"+ signal;
-		}
-
-		public static string SLOT(string slot) {
-			return "1" + slot;
-		}	
 	}
 }
--- trunk/playground/bindings/kimono/gui/QApplication.cs #626203:626204
@@ -7,7 +7,7 @@
 
 	/// See <see cref="IQApplicationSignals"></see> for signals emitted by QApplication
 	[SmokeClass("QApplication")]
-	public class QApplication : QCoreApplication, IDisposable {
+	public partial class QApplication : QCoreApplication, IDisposable {
  		protected QApplication(Type dummy) : base((Type) null) {}
 		interface IQApplicationProxy {
 			string Tr(string s, string c);
@@ -456,55 +456,6 @@
 		private void DisposeQApplication() {
 			ProxyQApplication().DisposeQApplication();
 		}
-		public QApplication(string[] argv) : this((Type) null) {
-			Qyoto.Init_qyoto();
-			CreateProxy();
-			Qt.qApp = this;
-      
-			string[] args = new string[argv.Length + 1];
-			args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
-			argv.CopyTo(args, 1);
-
-			NewQApplication(args.Length, args);
-		}
-
-		[SmokeMethod("QApplication(int&, char**)")]
-		private void NewQApplication(int argc, string[] argv) {
-			ProxyQApplication().NewQApplication(argc, argv);
-		}
-
-		public QApplication(string[] argv, bool GUIenabled) : this((Type) null) {
-			Qyoto.Init_qyoto();
-			CreateProxy();
-			Qt.qApp = this;
-			
-			string[] args = new string[argv.Length + 1];
-			args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
-			argv.CopyTo(args, 1);
-
-			NewQApplication(argv.Length, argv,GUIenabled);
-		}
-		
-		[SmokeMethod("QApplication(int&, char**, bool)")]
-		private void NewQApplication(int argc, string[] argv, bool GUIenabled) {
-			ProxyQApplication().NewQApplication(argc, argv,GUIenabled);
-		}
-    
-		public QApplication(string[] argv, QApplication.E_Type arg3) : this((Type) null) {
-			Qyoto.Init_qyoto();
-			CreateProxy();
-			Qt.qApp = this;
-			
-			string[] args = new string[argv.Length + 1];
-			args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
-			argv.CopyTo(args, 1);
-
-			NewQApplication(argv.Length, argv,arg3);
-		}   
-		[SmokeMethod("QApplication(int&, char**, QApplication::Type)")]
-		private void NewQApplication(int argc, string[] argv, QApplication.E_Type arg3) {
-			ProxyQApplication().NewQApplication(argc, argv,arg3);
-		}
 		protected new IQApplicationSignals Emit() {
 			return (IQApplicationSignals) Q_EMIT;
 		}
--- trunk/playground/bindings/kimono/gui/QSizePolicy.cs #626203:626204
@@ -133,12 +133,5 @@
 		private void DisposeQSizePolicy() {
 			ProxyQSizePolicy().DisposeQSizePolicy();
 		}
-
-		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;
 	}
 }



More information about the Kde-bindings mailing list