2
/***************************************************************************
3
qtscript.rb - QtScript ruby client lib
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
***************************************************************************/
22
def self.init_all_classes
23
# Qt::Internal::add_normalize_proc(Proc.new do |classname|
24
# if classname =~ /^QtScript/
25
# now = classname.sub(/^QtScript?(?=[A-Z])/,'QtScript::')
29
getClassList.each do |c|
30
classname = Qt::Internal::normalize_classname(c)
31
id = Qt::Internal::findClass(c);
32
Qt::Internal::insert_pclassid(classname, id)
33
Qt::Internal::cpp_names[classname] = c
34
klass = Qt::Internal::isQObject(c) ? Qt::Internal::create_qobject_class(classname, Qt) \
35
: Qt::Internal::create_qt_class(classname, Qt)
36
Qt::Internal::classes[classname] = klass unless klass.nil?