summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/RubberDoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/RubberDoc.rb')
-rwxr-xr-xkorundum/rubylib/examples/RubberDoc.rb82
1 files changed, 41 insertions, 41 deletions
diff --git a/korundum/rubylib/examples/RubberDoc.rb b/korundum/rubylib/examples/RubberDoc.rb
index 0c50320b..6adf0272 100755
--- a/korundum/rubylib/examples/RubberDoc.rb
+++ b/korundum/rubylib/examples/RubberDoc.rb
@@ -180,50 +180,50 @@ module MyGui
@label = TQt::Label.new self
- TQt::Object.connect @listbox, SIGNAL("clicked(TQListBoxItem*)"),
- self, SLOT("clicked_result(TQListBoxItem*)")
- TQt::Object.connect @viewed, SIGNAL("completed()"),
- self, SLOT("tdehtml_part_init_complete()")
+ TQt::Object.connect @listbox, TQ_SIGNAL("clicked(TQListBoxItem*)"),
+ self, TQ_SLOT("clicked_result(TQListBoxItem*)")
+ TQt::Object.connect @viewed, TQ_SIGNAL("completed()"),
+ self, TQ_SLOT("tdehtml_part_init_complete()")
- TQt::Object::connect @viewed, SIGNAL("setWindowCaption(const TQString&)"),
+ TQt::Object::connect @viewed, TQ_SIGNAL("setWindowCaption(const TQString&)"),
@viewed.widget.topLevelWidget,
- SLOT("setCaption(const TQString&)")
+ TQ_SLOT("setCaption(const TQString&)")
TQt::Object::connect @viewed.browserExtension,
- SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
- self, SLOT("open_url(const KURL&)")
+ TQ_SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
+ self, TQ_SLOT("open_url(const KURL&)")
KDE::Action.new "&Quit", "quit", KDE::Shortcut.new(),
- self, SLOT("quit()"), @main.actionCollection, "file_quit"
+ self, TQ_SLOT("quit()"), @main.actionCollection, "file_quit"
KDE::Action.new "&Index-All", KDE::Shortcut.new(),
- self, SLOT("index_all()"), @main.actionCollection, "index_all"
+ self, TQ_SLOT("index_all()"), @main.actionCollection, "index_all"
@back = \
KDE::Action.new "&Back", "back", KDE::Shortcut.new(TQt::ALT + TQt::Key_Left),
- self, SLOT("go_back()"), @main.actionCollection, "back"
+ self, TQ_SLOT("go_back()"), @main.actionCollection, "back"
@forward = \
KDE::Action.new "&Forward", "forward", KDE::Shortcut.new(TQt::ALT + TQt::Key_Right),
- self, SLOT("go_forward()"), @main.actionCollection, "forward"
+ self, TQ_SLOT("go_forward()"), @main.actionCollection, "forward"
KDE::Action.new "&Home", "gohome", KDE::Shortcut.new(TQt::Key_Home),
- self, SLOT("go_home()"), @main.actionCollection, "home"
+ self, TQ_SLOT("go_home()"), @main.actionCollection, "home"
KDE::Action.new "&Prev Match", "go-previous",KDE::Shortcut.new(TQt::CTRL + TQt::Key_P),
- self, SLOT("goto_prev_match()"), @main.actionCollection, "prev_match"
+ self, TQ_SLOT("goto_prev_match()"), @main.actionCollection, "prev_match"
KDE::Action.new "&Next Match", "go-next", KDE::Shortcut.new(TQt::CTRL + TQt::Key_N),
- self, SLOT("goto_next_match()"), @main.actionCollection, "next_match"
+ self, TQ_SLOT("goto_next_match()"), @main.actionCollection, "next_match"
KDE::Action.new "&Follow Match","go-down", KDE::Shortcut.new(TQt::Key_Return),
- self, SLOT("goto_current_match_link()"), @main.actionCollection, "open_match"
+ self, TQ_SLOT("goto_current_match_link()"), @main.actionCollection, "open_match"
KDE::Action.new "Search", "edit-find", KDE::Shortcut.new(TQt::Key_F6),
- self, SLOT("focus_search()"), @main.actionCollection, "focus_search"
+ self, TQ_SLOT("focus_search()"), @main.actionCollection, "focus_search"
KDE::Action.new "New Search", "edit-find", KDE::Shortcut.new(TQt::CTRL + TQt::Key_Slash),
- self, SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search"
+ self, TQ_SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search"
KDE::Action.new "&Create", "new", KDE::Shortcut.new(),
- self, SLOT("project_create()"), @main.actionCollection, "project_create"
+ self, TQ_SLOT("project_create()"), @main.actionCollection, "project_create"
KDE::Action.new "&Choose...", "select", KDE::Shortcut.new(),
- self, SLOT("project_goto()"), @main.actionCollection, "project_goto"
+ self, TQ_SLOT("project_goto()"), @main.actionCollection, "project_goto"
clearLocation = KDE::Action.new "Clear Location Bar", "locationbar_erase", KDE::Shortcut.new(),
- self, SLOT("clear_location()"), @main.actionCollection, "clear_location"
+ self, TQ_SLOT("clear_location()"), @main.actionCollection, "clear_location"
clearLocation.setWhatsThis "Clear Location bar<p>Clears the content of the location bar."
@searchlabel = TQt::Label.new @main
@@ -231,10 +231,10 @@ module MyGui
@searchcombo = KDE::HistoryCombo.new @main
focus_search
- TQt::Object.connect @searchcombo, SIGNAL("returnPressed()"),
- self, SLOT("goto_search()")
- TQt::Object.connect @searchcombo, SIGNAL("textChanged(const TQString&)"),
- self, SLOT("search(const TQString&)")
+ TQt::Object.connect @searchcombo, TQ_SIGNAL("returnPressed()"),
+ self, TQ_SLOT("goto_search()")
+ TQt::Object.connect @searchcombo, TQ_SIGNAL("textChanged(const TQString&)"),
+ self, TQ_SLOT("search(const TQString&)")
KDE::WidgetAction.new @searchlabel, "Search: ", KDE::Shortcut.new(TQt::Key_F6), nil, nil, @main.actionCollection, "location_label"
@searchlabel.setBuddy @searchcombo
@@ -680,11 +680,11 @@ class ProjectEditDialog < TQt::Object
@cb.setChecked true if enabled
- TQt::Object.connect @dialog, SIGNAL("okClicked()"),
- self, SLOT("slot_ok()")
+ TQt::Object.connect @dialog, TQ_SIGNAL("okClicked()"),
+ self, TQ_SLOT("slot_ok()")
- TQt::Object.connect locselc, SIGNAL("clicked()"),
- self, SLOT("select_file()")
+ TQt::Object.connect locselc, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("select_file()")
@title.setFocus
@@ -746,17 +746,17 @@ class ProjectSelectDialog < TQt::Object
button_del = TQt::PushButton.new "Delete", hbox
button_edit = TQt::PushButton.new "Edit...", hbox
- TQt::Object.connect button_new, SIGNAL("clicked()"),
- self, SLOT("project_create_button()")
+ TQt::Object.connect button_new, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("project_create_button()")
- TQt::Object.connect button_del, SIGNAL("clicked()"),
- self, SLOT("delete_selected_project()")
+ TQt::Object.connect button_del, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("delete_selected_project()")
- TQt::Object.connect button_edit, SIGNAL("clicked()"),
- self, SLOT("edit_selected_project()")
+ TQt::Object.connect button_edit, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("edit_selected_project()")
- TQt::Object.connect @listbox, SIGNAL("doubleClicked(TQListBoxItem *)"),
- self, SLOT("project_selected()")
+ TQt::Object.connect @listbox, TQ_SIGNAL("doubleClicked(TQListBoxItem *)"),
+ self, TQ_SLOT("project_selected()")
@dialog.setMainWidget vbox
end
@@ -915,8 +915,8 @@ class RubberDoc < TQt::VBox
gui_init_proportions
@timer = TQt::Timer.new self
- TQt::Object.connect @timer, SIGNAL("timeout()"),
- self, SLOT("update_highlight()")
+ TQt::Object.connect @timer, TQ_SIGNAL("timeout()"),
+ self, TQ_SLOT("update_highlight()")
@viewed.openURL KDE::URL.new("about:blank")
@@ -934,8 +934,8 @@ class RubberDoc < TQt::VBox
end
def tdehtml_part_init_complete
- TQt::Object.disconnect @viewed, SIGNAL("completed()"),
- self, SLOT("tdehtml_part_init_complete()") if @init_connected
+ TQt::Object.disconnect @viewed, TQ_SIGNAL("completed()"),
+ self, TQ_SLOT("tdehtml_part_init_complete()") if @init_connected
@pref = File.dirname first_url.url.gsub("file:","")