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

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Jul 3 11:16:42 UTC 2008


SVN commit 827566 by rdale:

* Added a PlasmaScripting.DataEngine class, which will be part of the main
  plasma .dll, and two classes 'KimonoAppletScript.DataEngine' and 
  'KimonoAppletScript.Applet' for implementing the ScriptEngine plugins for 
  Applets and DataEngines

CCMAIL: kde-bindings at kde.org

 M  +6 -0      ChangeLog  
 A             src/KimonoAppletScript_Applet.cs  
 A             src/KimonoAppletScript_DataEngine.cs  
 M  +9 -27     src/PlasmaScripting_Applet.cs  
 A             src/PlasmaScripting_DataEngine.cs  


--- trunk/KDE/kdebindings/csharp/plasma/ChangeLog #827565:827566
@@ -1,4 +1,10 @@
 2008-07-02  Richard Dale  <richard.j.dale at gmail.com>
+* Added a PlasmaScripting.DataEngine class, which will be part of the main
+  plasma .dll, and two classes 'KimonoAppletScript.DataEngine' and 
+  'KimonoAppletScript.Applet' for implementing the ScriptEngine plugins for 
+  Applets and DataEngines
+
+2008-07-02  Richard Dale  <richard.j.dale at gmail.com>
 * Added a PlasmaScripting.Applet class which will be subclassed to implement
   ScriptEngine based C# plasmoids. The Plasma.Applet source was copied and
   enums and static methods were removed. The code in the public methods was
--- trunk/KDE/kdebindings/csharp/plasma/src/PlasmaScripting_Applet.cs #827565:827566
@@ -1,4 +1,3 @@
-//Auto-generated by kalyptus. DO NOT EDIT.
 namespace PlasmaScripting {
 	using Plasma;
 	using System;
@@ -19,7 +18,9 @@
 	///   See <see cref="IAppletSignals"></see> for signals emitted by Applet
 	/// </remarks>		<short> The base Applet class.</short>
 	public class Applet : QObject, IDisposable {
+		private KimonoAppletScript.Applet appletScript;
 		private Plasma.Applet applet;
+
 		public Plasma.Applet Applet {
 			get { return applet; }
 		}
@@ -306,7 +307,6 @@
 		/// <remarks>
 		///  Reimplemented from QGraphicsItem
 		/// </remarks>		<short>    Reimplemented from QGraphicsItem </short>
-		[SmokeMethod("type() const")]
 		public int type() {
 			return applet.type();
 		}
@@ -346,21 +346,6 @@
 			return applet.RemoveAssociatedWidget(widget);
 		}
 		/// <remarks>
-		/// <param> name="parent" the QGraphicsItem this applet is parented to
-		/// </param><param> name="serviceId" the name of the .desktop file containing the
-		///       information about the widget
-		/// </param><param> name="appletId" a unique id used to differentiate between multiple
-		///       instances of the same Applet type
-		///          </param></remarks>		<short>   </short>
-		public Applet(QGraphicsItem parent, string serviceId, uint appletId) : this((Type) null) {
-		}
-		public Applet(QGraphicsItem parent, string serviceId) : this((Type) null) {
-		}
-		public Applet(QGraphicsItem parent) : this((Type) null) {
-		}
-		public Applet() : this((Type) null) {
-		}
-		/// <remarks>
 		///  Sets the immutability type for this applet (not immutable, user immutable or system immutable)
 		///  @arg immutable the new immutability type of this applet
 		///          </remarks>		<short>    Sets the immutability type for this applet (not immutable, user immutable or system immutable)  @arg immutable the new immutability type of this applet          </short>
@@ -421,16 +406,13 @@
 		[Q_SLOT("void init()")]
 		public virtual void Init() {
 		}
-		/// <remarks>
-		///  This constructor is to be used with the plugin loading systems
-		///  found in KPluginInfo and KService. The argument list is expected
-		///  to have two elements: the KService service ID for the desktop entry
-		///  and an applet ID which must be a base 10 number.
-		/// <param> name="parent" a QObject parent; you probably want to pass in 0
-		/// </param><param> name="args" a list of strings containing two entries: the service id
-		///       and the applet id
-		///          </param></remarks>		<short>    This constructor is to be used with the plugin loading systems  found in KPluginInfo and KService.</short>
-		public Applet(QObject parent, List<QVariant> args) : this((Type) null) {
+		public Applet(KimonoAppletScript.Applet parent) : base(parent) {
+			appletScript = parent;
+			applet = parent.Applet();
+			Connect(applet, SIGNAL("releaseVisualFocus()"), this, SIGNAL("releaseVisualFocus()"));
+			Connect(applet, SIGNAL("geometryChanged()"), this, SIGNAL("geometryChanged()"));
+			Connect(applet, SIGNAL("configNeedsSaving()"), this, SIGNAL("configNeedsSaving()"));
+			Connect(applet, SIGNAL("activate()"), this, SIGNAL("activate()"));
 		}
 		/// <remarks>
 		///  Call this method when the applet fails to launch properly. An



More information about the Kde-bindings mailing list