[Kde-bindings] KDE/kdebindings/csharp/qyoto

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Aug 9 16:14:02 UTC 2007


SVN commit 698227 by rdale:

* Added some missing implicit type conversions to better match 
  the C++ api

CCMAIL: kde-bindings at kde.org



 M  +5 -0      ChangeLog  
 M  +0 -16     core/QAbstractFileEngine.cs  
 M  +1 -1      core/QLineF.cs  
 A             core/QLineFExtras.cs  
 M  +1 -1      core/QPointF.cs  
 A             core/QPointFExtras.cs  
 M  +1 -1      core/QRectF.cs  
 A             core/QRectFExtras.cs  
 M  +1 -1      core/QSizeF.cs  
 A             core/QSizeFExtras.cs  
 M  +9 -0      gui/QBrushExtras.cs  
 M  +1 -1      gui/QCursor.cs  
 A             gui/QCursorExtras.cs  
 M  +1 -1      gui/QIcon.cs  
 A             gui/QIconExtras.cs  
 M  +0 -9      gui/QInputMethodEvent.cs  
 M  +0 -22     gui/QPainterPath.cs  
 M  +1 -1      gui/QPen.cs  
 A             gui/QPenExtras.cs  
 M  +1 -1      gui/QPolygon.cs  
 A             gui/QPolygonExtras.cs  
 M  +1 -1      gui/QPolygonF.cs  
 A             gui/QPolygonFExtras.cs  
 M  +6 -0      gui/QRegionExtras.cs  
 M  +1 -1      gui/QTransform.cs  
 A             gui/QTransformExtras.cs  


--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #698226:698227
@@ -1,3 +1,8 @@
+2007-08-09  Richard Dale  <rdale at foton.es>
+
+	* Added some missing implicit type conversions to better match 
+	  the C++ api
+
 2007-07-15  Arno Rehn  <arno at arnorehn.de>
 
 	* Moved Init_qyoto() from the Q(Core)Application constructor to the
--- trunk/KDE/kdebindings/csharp/qyoto/core/QAbstractFileEngine.cs #698226:698227
@@ -9,22 +9,6 @@
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QAbstractFileEngine(Type dummy) {}
-
-
-		[SmokeClass("QAbstractFileEngine::ExtensionOption")]
-		public class ExtensionOption : Object {
-			protected SmokeInvocation interceptor = null;
-			private IntPtr smokeObject;
-			protected ExtensionOption(Type dummy) {}
-		}
-
-
-		[SmokeClass("QAbstractFileEngine::ExtensionReturn")]
-		public class ExtensionReturn : Object {
-			protected SmokeInvocation interceptor = null;
-			private IntPtr smokeObject;
-			protected ExtensionReturn(Type dummy) {}
-		}
 		protected void CreateProxy() {
 			interceptor = new SmokeInvocation(typeof(QAbstractFileEngine), this);
 		}
--- trunk/KDE/kdebindings/csharp/qyoto/core/QLineF.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QLineF")]
-	public class QLineF : Object, IDisposable {
+	public partial class QLineF : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QLineF(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/core/QPointF.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QPointF")]
-	public class QPointF : Object, IDisposable {
+	public partial class QPointF : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QPointF(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/core/QRectF.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QRectF")]
-	public class QRectF : Object, IDisposable {
+	public partial class QRectF : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QRectF(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/core/QSizeF.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QSizeF")]
-	public class QSizeF : Object, IDisposable {
+	public partial class QSizeF : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QSizeF(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QBrushExtras.cs #698226:698227
@@ -9,5 +9,14 @@
 		public static implicit operator QBrush(QColor arg) {
 			return new QBrush(arg);
 		}
+		public static implicit operator QBrush(QGradient arg) {
+			return new QBrush(arg);
+		}
+		public static implicit operator QBrush(QImage arg) {
+			return new QBrush(arg);
+		}
+		public static implicit operator QBrush(QPixmap arg) {
+			return new QBrush(arg);
+		}
 	}
 }
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QCursor.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QCursor")]
-	public class QCursor : Object, IDisposable {
+	public partial class QCursor : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QCursor(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QIcon.cs #698226:698227
@@ -4,7 +4,7 @@
 	using System;
 
 	[SmokeClass("QIcon")]
-	public class QIcon : Object, IDisposable {
+	public partial class QIcon : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QIcon(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QInputMethodEvent.cs #698226:698227
@@ -6,15 +6,6 @@
 	[SmokeClass("QInputMethodEvent")]
 	public class QInputMethodEvent : QEvent, IDisposable {
  		protected QInputMethodEvent(Type dummy) : base((Type) null) {}
-
-
-		[SmokeClass("QInputMethodEvent::Attribute")]
-		public class Attribute : Object {
-			protected SmokeInvocation interceptor = null;
-			private IntPtr smokeObject;
-			protected Attribute(Type dummy) {}
-			//  Attribute(,,,); >>>> NOT CONVERTED
-		}
 		protected new void CreateProxy() {
 			interceptor = new SmokeInvocation(typeof(QInputMethodEvent), this);
 		}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QPainterPath.cs #698226:698227
@@ -9,28 +9,6 @@
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QPainterPath(Type dummy) {}
-
-
-		[SmokeClass("QPainterPath::Element")]
-		public class Element : Object {
-			protected SmokeInvocation interceptor = null;
-			private IntPtr smokeObject;
-			protected Element(Type dummy) {}
-			protected void CreateProxy() {
-				interceptor = new SmokeInvocation(typeof(Element), this);
-			}
-			//  operator QPointF(); >>>> NOT CONVERTED
-			// bool operator==(); >>>> NOT CONVERTED
-			public bool IsMoveTo() {
-				return (bool) interceptor.Invoke("isMoveTo", "isMoveTo() const", typeof(bool));
-			}
-			public bool IsLineTo() {
-				return (bool) interceptor.Invoke("isLineTo", "isLineTo() const", typeof(bool));
-			}
-			public bool IsCurveTo() {
-				return (bool) interceptor.Invoke("isCurveTo", "isCurveTo() const", typeof(bool));
-			}
-		}
 		protected void CreateProxy() {
 			interceptor = new SmokeInvocation(typeof(QPainterPath), this);
 		}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QPen.cs #698226:698227
@@ -5,7 +5,7 @@
 	using System.Collections.Generic;
 
 	[SmokeClass("QPen")]
-	public class QPen : Object, IDisposable {
+	public partial class QPen : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QPen(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QPolygon.cs #698226:698227
@@ -5,7 +5,7 @@
 	using System.Collections.Generic;
 
 	[SmokeClass("QPolygon")]
-	public class QPolygon : Object, IDisposable {
+	public partial class QPolygon : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QPolygon(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QPolygonF.cs #698226:698227
@@ -5,7 +5,7 @@
 	using System.Collections.Generic;
 
 	[SmokeClass("QPolygonF")]
-	public class QPolygonF : Object, IDisposable {
+	public partial class QPolygonF : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QPolygonF(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QRegionExtras.cs #698226:698227
@@ -3,6 +3,12 @@
 	using System;
 
 	public partial class QRegion : Object, IDisposable {
+		public static implicit operator QRegion(QBitmap arg) {
+			return new QRegion(arg);
+		}
+		public static implicit operator QRegion(QPolygon arg) {
+			return new QRegion(arg);
+		}
 		public static implicit operator QRegion(QRect arg) {
 			return new QRegion(arg);
 		}
--- trunk/KDE/kdebindings/csharp/qyoto/gui/QTransform.cs #698226:698227
@@ -5,7 +5,7 @@
 	using System.Runtime.InteropServices;
 
 	[SmokeClass("QTransform")]
-	public class QTransform : Object, IDisposable {
+	public partial class QTransform : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QTransform(Type dummy) {}



More information about the Kde-bindings mailing list