2
/***************************************************************************
3
plasma.rb - Plasma applet helper code
5
begin : Sat April 5 2008
6
copyright : (C) 2008 by Richard Dale
7
email : richard.j.dale@gmail.com
8
***************************************************************************/
10
/***************************************************************************
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
17
***************************************************************************/
25
def self.init_all_classes
26
Qt::Internal::add_normalize_proc(Proc.new do |classname|
27
if classname =~ /^Plasma/
32
getClassList.each do |c|
33
classname = Qt::Internal::normalize_classname(c)
34
id = Qt::Internal::findClass(c);
35
Qt::Internal::insert_pclassid(classname, id)
36
Qt::Internal::cpp_names[classname] = c
37
klass = Qt::Internal::isQObject(c) ? Qt::Internal::create_qobject_class(classname, Plasma) \
38
: Qt::Internal::create_qt_class(classname, Plasma)
39
Qt::Internal::classes[classname] = klass unless klass.nil?
44
class Applet < Qt::Base
46
method_missing(:type, *args)
50
method_missing(:id, *args)
54
class Containment < Qt::Base
56
method_missing(:type, *args)
60
class PackageMetadata < Qt::Base
62
method_missing(:type, *args)
66
class PackageStructure < Qt::Base
68
method_missing(:type, *args)
72
class Slider < Qt::Base
75
return super(arg.begin, arg.exclude_end? ? arg.end - 1 : arg.end)