summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/dcop
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/dcop')
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcopcall.rb4
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcoppredicate.rb2
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcopsend.rb6
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcopsignal.rb6
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcopslot.rb18
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcoptest.rb4
-rwxr-xr-xkorundum/rubylib/examples/dcop/petshop.rb6
7 files changed, 23 insertions, 23 deletions
diff --git a/korundum/rubylib/examples/dcop/dcopcall.rb b/korundum/rubylib/examples/dcop/dcopcall.rb
index f3b532ef..3676525c 100755
--- a/korundum/rubylib/examples/dcop/dcopcall.rb
+++ b/korundum/rubylib/examples/dcop/dcopcall.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
include KDE
class SenderWidget < PushButton
@@ -15,7 +15,7 @@ class SenderWidget < PushButton
dcopRef = DCOPRef.new("dcopslot", "MyWidget")
#
# Note that there are three different ways to make a DCOP call():
- # 1) result = dcopRef.call("getPoint(QString)", "Hello from dcopcall")
+ # 1) result = dcopRef.call("getPoint(TQString)", "Hello from dcopcall")
# 2) result = dcopRef.call("getPoint", "Hello from dcopcall")
# 3) result = dcopRef.getPoint("Hello from dcopcall")
#
diff --git a/korundum/rubylib/examples/dcop/dcoppredicate.rb b/korundum/rubylib/examples/dcop/dcoppredicate.rb
index 82a9c8b4..6117643f 100755
--- a/korundum/rubylib/examples/dcop/dcoppredicate.rb
+++ b/korundum/rubylib/examples/dcop/dcoppredicate.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
include KDE
class SenderWidget < PushButton
diff --git a/korundum/rubylib/examples/dcop/dcopsend.rb b/korundum/rubylib/examples/dcop/dcopsend.rb
index 9365473b..6511e246 100755
--- a/korundum/rubylib/examples/dcop/dcopsend.rb
+++ b/korundum/rubylib/examples/dcop/dcopsend.rb
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
class SenderWidget < KDE::PushButton
def initialize(parent, name)
super
- Qt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
end
slots 'doit()'
@@ -13,7 +13,7 @@ class SenderWidget < KDE::PushButton
def doit()
#
# Note that there are three different ways to make a DCOP send():
- # 1) dcopRef.send("mySlot(QString)", "Hello from dcopsend")
+ # 1) dcopRef.send("mySlot(TQString)", "Hello from dcopsend")
# 2) dcopRef.send("mySlot", "Hello from dcopsend")
#
dcopRef = KDE::DCOPRef.new("dcopslot", "MyWidget")
diff --git a/korundum/rubylib/examples/dcop/dcopsignal.rb b/korundum/rubylib/examples/dcop/dcopsignal.rb
index 07a6dfee..f123a62d 100755
--- a/korundum/rubylib/examples/dcop/dcopsignal.rb
+++ b/korundum/rubylib/examples/dcop/dcopsignal.rb
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
class SenderWidget < KDE::PushButton
- k_dcop_signals 'void testEmitSignal(QString)'
+ k_dcop_signals 'void testEmitSignal(TQString)'
def initialize(parent, name)
super
- Qt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
end
slots 'doit()'
diff --git a/korundum/rubylib/examples/dcop/dcopslot.rb b/korundum/rubylib/examples/dcop/dcopslot.rb
index e600dfdb..99fd6fef 100755
--- a/korundum/rubylib/examples/dcop/dcopslot.rb
+++ b/korundum/rubylib/examples/dcop/dcopslot.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
# This is an example of a KDE class that has 'k_dcop' slots declarations, but
# isn't a subclass of DCOPObject. The following four methods are added to your
@@ -21,11 +21,11 @@ require 'Korundum'
#
class MyWidget < KDE::PushButton
- k_dcop 'void mySlot(QString)',
- 'QPoint getPoint(QString)',
- 'QMap<QCString,DCOPRef> actionMap()',
- 'QValueList<DCOPRef> windowList()',
- 'QValueList<QCString> propertyNames(bool)',
+ k_dcop 'void mySlot(TQString)',
+ 'TQPoint getPoint(TQString)',
+ 'TQMap<TQCString,DCOPRef> actionMap()',
+ 'TQValueList<DCOPRef> windowList()',
+ 'TQValueList<TQCString> propertyNames(bool)',
'KURL::List urlList()',
'bool isFoo()',
'bool hasBar()'
@@ -40,7 +40,7 @@ class MyWidget < KDE::PushButton
def getPoint(msg)
puts "message: #{msg}"
- return Qt::Point.new(50, 100)
+ return TQt::Point.new(50, 100)
end
def actionMap()
@@ -80,9 +80,9 @@ a = KDE::UniqueApplication.new()
slottest = MyWidget.new(nil, "mywidget") { setText "DCOP Slot Test" }
a.mainWidget = slottest
slottest.caption = a.makeStdCaption("DCOP Slot Test")
-result = slottest.connectDCOPSignal("dcopsignal", "SenderWidget", "testEmitSignal(QString)", "mySlot(QString)", true)
+result = slottest.connectDCOPSignal("dcopsignal", "SenderWidget", "testEmitSignal(TQString)", "mySlot(TQString)", true)
puts "result: #{result}"
slottest.show()
-# Qt::Internal::setDebug Qt::QtDebugChannel::QTDB_ALL
+# TQt::Internal::setDebug TQt::QtDebugChannel::TQTDB_ALL
a.exec()
diff --git a/korundum/rubylib/examples/dcop/dcoptest.rb b/korundum/rubylib/examples/dcop/dcoptest.rb
index 1a3a37e7..c0654fd8 100755
--- a/korundum/rubylib/examples/dcop/dcoptest.rb
+++ b/korundum/rubylib/examples/dcop/dcoptest.rb
@@ -33,7 +33,7 @@ copyright holder.
=end
-require 'Korundum'
+retquire 'Korundum'
module DCOPTest
@@ -100,7 +100,7 @@ puts "Start a kwrite instance"
error = ""
dcopService = ""
-pid = Qt::Integer.new
+pid = TQt::Integer.new
errcode = KDE::Application.startServiceByDesktopName("kwrite", "", error, dcopService, pid)
dcopService = "kwrite-" + pid.to_s
diff --git a/korundum/rubylib/examples/dcop/petshop.rb b/korundum/rubylib/examples/dcop/petshop.rb
index a3f960c1..5847c1f7 100755
--- a/korundum/rubylib/examples/dcop/petshop.rb
+++ b/korundum/rubylib/examples/dcop/petshop.rb
@@ -5,15 +5,15 @@
# derived from server.py example in tdebindings written by Torben Weis
# and Julian Rockey
-require 'Korundum'
+retquire 'Korundum'
# An object with DCOP slots needn't be a subclass of DCOPObject, but
# this DeadParrotObject is one
class DeadParrotObject < KDE::DCOPObject
- k_dcop 'QString getParrotType()', 'void setParrotType(QString)',
- 'QString squawk()', 'QStringList adjectives()',
+ k_dcop 'TQString getParrotType()', 'void setParrotType(TQString)',
+ 'TQString squawk()', 'TQStringList adjectives()',
'int age()', 'void setAge(int)'
def initialize(id = 'dead parrot')