[Kde-bindings] KDE/kdebase/workspace/plasma/scriptengines/ruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Nov 17 21:11:35 UTC 2008
SVN commit 885758 by rdale:
* Allow a PlasmaScripting::Applet to be a parent of all the Qt::GraphicsItem
sub classes in their constructors
CCMAIL: kde-bindings at kde.org
M +2 -0 ChangeLog
M +254 -0 applet.rb
--- trunk/KDE/kdebase/workspace/plasma/scriptengines/ruby/ChangeLog #885757:885758
@@ -2,6 +2,8 @@
* Fixed missing constructor bug in Qt::GraphicsProxyWidget reported by David
Palacio. Thanks to David for reporting the bug.
* Improved the names of the Ruby applet and dataengine examples
+* Allow a PlasmaScripting::Applet to be a parent of all the Qt::GraphicsItem
+ sub classes in their constructors
2008-11-05 Richard Dale <richard.j.dale at gmail.com>
* Fixed some bugs in the DataEngineScript class. The expected path was
--- trunk/KDE/kdebase/workspace/plasma/scriptengines/ruby/applet.rb #885757:885758
@@ -534,6 +534,248 @@
end
end
+ class QAbstractGraphicsShapeItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsEllipseItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsItemGroup < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsLineItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsPathItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsPixmapItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsPolygonItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsRectItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsSimpleTextItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsSvgItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
+ class GraphicsTextItem < Qt::Base
+ def initialize(parent = nil, wFlags = nil)
+ if parent.kind_of?(PlasmaScripting::Applet)
+ super(parent.applet_script.applet, wFlags)
+ else
+ super
+ end
+ end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
+ end
+
class GraphicsWidget < Qt::Base
def initialize(parent = nil, wFlags = nil)
if parent.kind_of?(PlasmaScripting::Applet)
@@ -542,6 +784,18 @@
super
end
end
+
+ def parentItem=(item)
+ setParentItem(item)
+ end
+
+ def setParentItem(item)
+ if item.kind_of?(PlasmaScripting::Applet)
+ super(item.applet_script.applet)
+ else
+ super
+ end
+ end
end
class GraphicsGridLayout < Qt::Base
More information about the Kde-bindings
mailing list