[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdebindings/korundum
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2004-05-04 10:49:55
Message-ID: 20040504104955.7E4529A38 () office ! kde ! org
[Download RAW message or body]

CVS commit by rdale: 

Added some extra info about the rbuic -kde option


  M +25 -0     README   1.2.2.2


--- kdebindings/korundum/README  #1.2.2.1:1.2.2.2
@@ -3,7 +3,14 @@
 KDE Specific Infomation:
 
+        - Instead of require 'Qt', use require 'Korundum' for KDE programs. 
+        
+        - The KDE K* classes such as KApplication are renamed as KDE::Application. 
+          The other KDE classes are in the KParts::, KIO:: or DOM:: namespaces,
+          with the same names as their C++ counterparts. 
+
         - DCOP Support. Here is a minimal ruby dcop slot implementation:
         
                         require 'Korundum'
+                        
                         class MyWidget < KDE::PushButton
                                 k_dcop 'QPoint mySlot(int,QString)'
@@ -23,2 +30,20 @@
                   include a 'k_dcop' slots declaration a 'listener' dcop object 
                   instance is created automatically.
+                  
+        - Use the '-kde' option with the rbuic tool to require the 'Korundum' 
+                extension rather than the 'Qt' one. If the '-x' option is used in 
+                conjunction, it generates a KDE top level. For example:
+                
+                $ rbuic -x -kde knotifywidgetbase.ui -o knotifywidgetbase.rb
+
+                Will generate this top level code:
+
+                        if $0 == __FILE__
+                        about = KDE::AboutData.new("knotifywidgetbase", "KNotifyWidgetBase", "0.1")
+                        KDE::CmdLineArgs.init(ARGV, about)
+                        a = KDE::Application.new()
+                        w = KNotifyWidgetBase.new
+                        a.setMainWidget(w)
+                        w.show
+                        a.exec
+                        end


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic