summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:00 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:00 -0600
commit2d84c9d3ad0aaea0620658024537d54e6a7939f4 (patch)
tree35675532f42e78dbfcd56c6b344e1f0e79013a2e /korundum/rubylib/examples
parent980972d200e109a643e5a10037d7f9fcf02382ed (diff)
downloadtdebindings-2d84c9d3ad0aaea0620658024537d54e6a7939f4.tar.gz
tdebindings-2d84c9d3ad0aaea0620658024537d54e6a7939f4.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'korundum/rubylib/examples')
-rwxr-xr-xkorundum/rubylib/examples/RubberDoc.rb26
-rw-r--r--korundum/rubylib/examples/uitdemdi.rb (renamed from korundum/rubylib/examples/uikmdi.rb)6
-rw-r--r--korundum/rubylib/examples/uitdemdi.rc (renamed from korundum/rubylib/examples/uikmdi.rc)0
3 files changed, 16 insertions, 16 deletions
diff --git a/korundum/rubylib/examples/RubberDoc.rb b/korundum/rubylib/examples/RubberDoc.rb
index 1b196999..a5cc35cb 100755
--- a/korundum/rubylib/examples/RubberDoc.rb
+++ b/korundum/rubylib/examples/RubberDoc.rb
@@ -183,7 +183,7 @@ module MyGui
TQt::Object.connect @listbox, SIGNAL("clicked(TQListBoxItem*)"),
self, SLOT("clicked_result(TQListBoxItem*)")
TQt::Object.connect @viewed, SIGNAL("completed()"),
- self, SLOT("khtml_part_init_complete()")
+ self, SLOT("tdehtml_part_init_complete()")
TQt::Object::connect @viewed, SIGNAL("setWindowCaption(const TQString&)"),
@viewed.widget.topLevelWidget,
@@ -501,7 +501,7 @@ module HTMLIndexer
end
-# TODO - this sucks, use khtml to get the values
+# TODO - this sucks, use tdehtml to get the values
module IDS
A = 1
META = 62
@@ -865,7 +865,7 @@ end
class RubberDoc < TQt::VBox
- slots "khtml_part_init_complete()",
+ slots "tdehtml_part_init_complete()",
"go_back()", "go_forward()", "go_home()", "goto_url()",
"goto_search()", "clicked_result(TQListBoxItem*)",
"search(const TQString&)", "update_highlight()",
@@ -926,20 +926,20 @@ class RubberDoc < TQt::VBox
def blah_blah
save_indexes
init_blah
- khtml_part_init_complete
+ tdehtml_part_init_complete
end
def quit
@main.close
end
- def khtml_part_init_complete
+ def tdehtml_part_init_complete
TQt::Object.disconnect @viewed, SIGNAL("completed()"),
- self, SLOT("khtml_part_init_complete()") if @init_connected
+ self, SLOT("tdehtml_part_init_complete()") if @init_connected
@pref = File.dirname first_url.url.gsub("file:","")
- init_khtml_part_settings @viewed if @init_connected
+ init_tdehtml_part_settings @viewed if @init_connected
index_documents
# maybe make a better choice as to the start page???
@@ -959,11 +959,11 @@ class RubberDoc < TQt::VBox
save_indexes
end
- def init_khtml_part_settings khtmlpart
- khtmlpart.setJScriptEnabled true
- khtmlpart.setJavaEnabled false
- khtmlpart.setPluginsEnabled false
- khtmlpart.setAutoloadImages false
+ def init_tdehtml_part_settings tdehtmlpart
+ tdehtmlpart.setJScriptEnabled true
+ tdehtmlpart.setJavaEnabled false
+ tdehtmlpart.setPluginsEnabled false
+ tdehtmlpart.setAutoloadImages false
end
def load_page
@@ -1248,7 +1248,7 @@ can't get tabwidget working. umm... wonder what i'm messing up... (RECHECK)
# possible BUG DOM::Text.new(node).data.string # strange that this one doesn't work... (RECHECK)
-wierd khtml bug
+wierd tdehtml bug
@rightpane.setResizeMode @viewed, TQt::Splitter::KeepSize
in order to use KURL's as constants one must place this TDEApplication init
diff --git a/korundum/rubylib/examples/uikmdi.rb b/korundum/rubylib/examples/uitdemdi.rb
index e73422eb..3b67b9e1 100644
--- a/korundum/rubylib/examples/uikmdi.rb
+++ b/korundum/rubylib/examples/uitdemdi.rb
@@ -8,7 +8,7 @@ related to KMDI, and not the bindings.
=begin
A rough Python translation of the ideas presented in this KMDI tutorial:
- http://web.tiscali.it/andreabergia/kmditutorial.html
+ http://web.tiscali.it/andreabergia/tdemditutorial.html
What does work:
@@ -58,7 +58,7 @@ class KmdiExample < KDE::MdiMainFrm
quitAction = StdAction.quit(self, SLOT('close()'), actionCollection())
closeAction = StdAction.close(self, SLOT('closeActiveChild()'), actionCollection())
- uifilebase = Dir.getwd + '/uikmdi.rc'
+ uifilebase = Dir.getwd + '/uitdemdi.rc'
createGUI(uifilebase)
# The task bar is created in the KMdiMainFrm constructor
# and then deleted in the createGUI() call above..
@@ -167,7 +167,7 @@ class KmdiExample < KDE::MdiMainFrm
end
if $0 == __FILE__
- aname = 'uikmdi'
+ aname = 'uitdemdi'
desc = 'A Simple Korundum KMDI Sample'
ver = '1.0'
lic = AboutData::License_GPL
diff --git a/korundum/rubylib/examples/uikmdi.rc b/korundum/rubylib/examples/uitdemdi.rc
index a7e21969..a7e21969 100644
--- a/korundum/rubylib/examples/uikmdi.rc
+++ b/korundum/rubylib/examples/uitdemdi.rc