~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to korundum/modules/khtml/khtml.rb

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/ruby
 
2
 
 
3
module DOM
 
4
  module Internal
 
5
    def self.init_all_classes
 
6
      getClassList.each do |c|
 
7
        classname = Qt::Internal::normalize_classname(c)
 
8
        id = Qt::Internal::findClass(c);
 
9
        Qt::Internal::insert_pclassid(classname, id)
 
10
        Qt::Internal::cpp_names[classname] = c
 
11
        if classname =~ /^DOM/
 
12
          m = DOM
 
13
        elsif classname =~ /^KParts/
 
14
          m = KParts
 
15
        else
 
16
          m = KDE
 
17
        end
 
18
        klass = Qt::Internal::isQObject(c) ? Qt::Internal::create_qobject_class(classname, m) \
 
19
                                           : Qt::Internal::create_qt_class(classname, m)
 
20
        Qt::Internal::classes[classname] = klass unless klass.nil?
 
21
      end
 
22
    end
 
23
  end
 
24
end