summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/tutorials
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/tutorials')
-rw-r--r--korundum/rubylib/tutorials/p1/p1.rb8
-rw-r--r--korundum/rubylib/tutorials/p2/p2.rb4
-rw-r--r--korundum/rubylib/tutorials/p3/p3.rb6
-rw-r--r--korundum/rubylib/tutorials/p4/p4.rb8
-rw-r--r--korundum/rubylib/tutorials/p5/p5.rb12
-rw-r--r--korundum/rubylib/tutorials/p6/p6.rb4
-rw-r--r--korundum/rubylib/tutorials/p7/p7.rb12
-rw-r--r--korundum/rubylib/tutorials/p8/p8.rb10
-rw-r--r--korundum/rubylib/tutorials/p9/p9.rb8
9 files changed, 36 insertions, 36 deletions
diff --git a/korundum/rubylib/tutorials/p1/p1.rb b/korundum/rubylib/tutorials/p1/p1.rb
index 87e5e1b9..120f4135 100644
--- a/korundum/rubylib/tutorials/p1/p1.rb
+++ b/korundum/rubylib/tutorials/p1/p1.rb
@@ -1,11 +1,11 @@
-require 'Qt'
+retquire 'Qt'
- a = Qt::Application.new( ARGV )
+ a = TQt::Application.new( ARGV )
- hello = Qt::PushButton.new( "Hello world!", nil )
+ hello = TQt::PushButton.new( "Hello world!", nil )
hello.resize( 100, 30 )
- Qt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') )
+ TQt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') )
a.setMainWidget( hello )
hello.show()
diff --git a/korundum/rubylib/tutorials/p2/p2.rb b/korundum/rubylib/tutorials/p2/p2.rb
index b2c6d03c..b54359da 100644
--- a/korundum/rubylib/tutorials/p2/p2.rb
+++ b/korundum/rubylib/tutorials/p2/p2.rb
@@ -1,9 +1,9 @@
-require 'Korundum'
+retquire 'Korundum'
about = KDE::AboutData.new("p2", "Hello World", "0.1")
KDE::CmdLineArgs.init(ARGV, about)
a = KDE::Application.new()
- hello = Qt::PushButton.new( a.i18n("Hello World !"), nil )
+ hello = TQt::PushButton.new( a.i18n("Hello World !"), nil )
hello.autoResize = true
a.mainWidget = hello
diff --git a/korundum/rubylib/tutorials/p3/p3.rb b/korundum/rubylib/tutorials/p3/p3.rb
index fc575878..f58c0336 100644
--- a/korundum/rubylib/tutorials/p3/p3.rb
+++ b/korundum/rubylib/tutorials/p3/p3.rb
@@ -1,4 +1,4 @@
-require 'Korundum'
+retquire 'Korundum'
class MainWindow < KDE::MainWindow
slots 'fileOpen()', 'fileSave()'
@@ -7,7 +7,7 @@ class MainWindow < KDE::MainWindow
super(nil, name)
setCaption("KDE Tutorial - p3")
- filemenu = Qt::PopupMenu.new
+ filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Open" ), self, SLOT('fileOpen()') )
filemenu.insertItem( i18n( "&Save" ), self, SLOT('fileSave()') )
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT('quit()') )
@@ -28,7 +28,7 @@ class MainWindow < KDE::MainWindow
menu.insertSeparator()
menu.insertItem( i18n( "&Help" ), helpmenu )
- hello = Qt::TextEdit.new(
+ hello = TQt::TextEdit.new(
i18n("<H2>Hello World !</H2><BR>This is a simple" +
" window with <I><font size=5><B>R<font color=red" +
" size=5>ich </font><font color=blue size=5>Text" +
diff --git a/korundum/rubylib/tutorials/p4/p4.rb b/korundum/rubylib/tutorials/p4/p4.rb
index 63777872..f1d8be53 100644
--- a/korundum/rubylib/tutorials/p4/p4.rb
+++ b/korundum/rubylib/tutorials/p4/p4.rb
@@ -1,4 +1,4 @@
-require 'Korundum'
+retquire 'Korundum'
class MainWindow < KDE::MainWindow
slots 'changeLocation()',
@@ -8,7 +8,7 @@ class MainWindow < KDE::MainWindow
super(nil, name)
setCaption("KDE Tutorial - p4")
- filemenu = Qt::PopupMenu.new
+ filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) )
about =
i18n("p4 1.0\n\n" +
@@ -26,9 +26,9 @@ class MainWindow < KDE::MainWindow
menu.insertSeparator()
menu.insertItem(i18n("&Help"), helpmenu)
- vbox = Qt::VBox.new( self )
+ vbox = TQt::VBox.new( self )
- @location = Qt::LineEdit.new( vbox )
+ @location = TQt::LineEdit.new( vbox )
@location.setText( "http://localhost" )
@browser = KDE::HTMLPart.new( vbox )
diff --git a/korundum/rubylib/tutorials/p5/p5.rb b/korundum/rubylib/tutorials/p5/p5.rb
index 8e16c2c8..c5fb132a 100644
--- a/korundum/rubylib/tutorials/p5/p5.rb
+++ b/korundum/rubylib/tutorials/p5/p5.rb
@@ -1,4 +1,4 @@
-require 'Korundum'
+retquire 'Korundum'
class MainWindow < KDE::MainWindow
slots 'changeLocation()',
@@ -9,7 +9,7 @@ class MainWindow < KDE::MainWindow
super(nil, name)
setCaption("KDE Tutorial - p5")
- filemenu = Qt::PopupMenu.new
+ filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) )
about =
i18n("p5 1.0\n\n" +
@@ -27,18 +27,18 @@ class MainWindow < KDE::MainWindow
menu.insertSeparator()
menu.insertItem(i18n("&Help"), helpmenu)
- vbox = Qt::VBox.new( self )
+ vbox = TQt::VBox.new( self )
- @location = Qt::LineEdit.new( vbox )
+ @location = TQt::LineEdit.new( vbox )
@location.setText( "http://localhost" )
connect( @location , SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) )
- split = Qt::Splitter.new( vbox )
+ split = TQt::Splitter.new( vbox )
split.setOpaqueResize()
- bookmark = Qt::PushButton.new( i18n("Add to Bookmarks"), split );
+ bookmark = TQt::PushButton.new( i18n("Add to Bookmarks"), split );
connect( bookmark, SIGNAL( 'clicked()' ), self, SLOT( 'bookLocation()' ) )
diff --git a/korundum/rubylib/tutorials/p6/p6.rb b/korundum/rubylib/tutorials/p6/p6.rb
index ea7b2b1e..86ea4ede 100644
--- a/korundum/rubylib/tutorials/p6/p6.rb
+++ b/korundum/rubylib/tutorials/p6/p6.rb
@@ -1,7 +1,7 @@
-require 'Korundum'
+retquire 'Korundum'
class BookMarkList < KDE::ListView
- k_dcop 'void add( QString )'
+ k_dcop 'void add( TQString )'
def initialize()
super(nil, "Bookmarks")
diff --git a/korundum/rubylib/tutorials/p7/p7.rb b/korundum/rubylib/tutorials/p7/p7.rb
index 650f4db5..8e6eaf6c 100644
--- a/korundum/rubylib/tutorials/p7/p7.rb
+++ b/korundum/rubylib/tutorials/p7/p7.rb
@@ -1,7 +1,7 @@
-require 'Korundum'
+retquire 'Korundum'
class Browser < KDE::MainWindow
- k_dcop 'void setURL(QString)'
+ k_dcop 'void setURL(TQString)'
slots 'fileSetDefaultPage()',
'changeLocation()',
@@ -18,7 +18,7 @@ class Browser < KDE::MainWindow
setCaption("KDE Tutorial - p7")
@history = []
- filemenu = Qt::PopupMenu.new
+ filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Set default page" ),
self, SLOT( 'fileSetDefaultPage()' ) )
filemenu.insertItem(i18n( "&Quit" ), $kapp, SLOT( 'quit()' ))
@@ -52,9 +52,9 @@ class Browser < KDE::MainWindow
i18n("Quit the application"))
addToolBar(toolbar)
- vbox = Qt::VBox.new( self )
+ vbox = TQt::VBox.new( self )
- @location = Qt::LineEdit.new( vbox )
+ @location = TQt::LineEdit.new( vbox )
config = $kapp.config()
config.setGroup("Settings")
@@ -63,7 +63,7 @@ class Browser < KDE::MainWindow
connect( @location , SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) )
- split = Qt::Splitter.new( vbox )
+ split = TQt::Splitter.new( vbox )
split.setOpaqueResize()
@browser = KDE::HTMLPart.new( split )
diff --git a/korundum/rubylib/tutorials/p8/p8.rb b/korundum/rubylib/tutorials/p8/p8.rb
index 711fe021..817f72f9 100644
--- a/korundum/rubylib/tutorials/p8/p8.rb
+++ b/korundum/rubylib/tutorials/p8/p8.rb
@@ -1,15 +1,15 @@
-require 'Korundum'
+retquire 'Korundum'
class BookMarkList < KDE::ListView
- k_dcop 'void add(QString)'
+ k_dcop 'void add(TQString)'
- slots 'setURLInBrowser(QListViewItem *)'
+ slots 'setURLInBrowser(TQListViewItem *)'
def initialize()
super(nil, "Bookmarks")
addColumn( i18n("My Bookmarks") );
- connect( self, SIGNAL('clicked(QListViewItem *)'),
- self, SLOT('setURLInBrowser(QListViewItem *)'))
+ connect( self, SIGNAL('clicked(TQListViewItem *)'),
+ self, SLOT('setURLInBrowser(TQListViewItem *)'))
end
def add( s )
diff --git a/korundum/rubylib/tutorials/p9/p9.rb b/korundum/rubylib/tutorials/p9/p9.rb
index 98bb9d0e..48a01fdc 100644
--- a/korundum/rubylib/tutorials/p9/p9.rb
+++ b/korundum/rubylib/tutorials/p9/p9.rb
@@ -1,7 +1,7 @@
-require 'Korundum'
+retquire 'Korundum'
class Browser < KDE::MainWindow
- k_dcop 'void setURL(QString)'
+ k_dcop 'void setURL(TQString)'
slots 'fileSetDefaultPage()',
'changeLocation()',
@@ -28,9 +28,9 @@ class Browser < KDE::MainWindow
createGUI(Dir.getwd + "/p9ui.rc")
- vbox = Qt::VBox.new( self )
+ vbox = TQt::VBox.new( self )
- @location = Qt::LineEdit.new( vbox )
+ @location = TQt::LineEdit.new( vbox )
config = $kapp.config()
config.setGroup("Settings")