2
/***************************************************************************
3
kate.rb - Kate 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
***************************************************************************/
23
def self.init_all_classes
24
Qt::Internal::add_normalize_proc(Proc.new do |classname|
25
if classname =~ /^Kate/
30
getClassList.each do |c|
31
classname = Qt::Internal::normalize_classname(c)
32
id = Qt::Internal::findClass(c);
33
Qt::Internal::insert_pclassid(classname, id)
34
Qt::Internal::cpp_names[classname] = c
35
klass = Qt::Internal::isQObject(c) ? Qt::Internal::create_qobject_class(classname, Kate) \
36
: Qt::Internal::create_qt_class(classname, Kate)
37
Qt::Internal::classes[classname] = klass unless klass.nil?