summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/xmlmenudemo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/xmlmenudemo.rb')
-rw-r--r--korundum/rubylib/examples/xmlmenudemo.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/korundum/rubylib/examples/xmlmenudemo.rb b/korundum/rubylib/examples/xmlmenudemo.rb
index 8d9d5c94..e619a1c6 100644
--- a/korundum/rubylib/examples/xmlmenudemo.rb
+++ b/korundum/rubylib/examples/xmlmenudemo.rb
@@ -81,22 +81,22 @@ class MainWin < KDE::MainWindow
acts = actionCollection()
# "File" menu items
- newAction = KDE::StdAction.openNew(self, SLOT('slotNew()'), acts)
- openAction = KDE::StdAction.open(self, SLOT('slotOpen()'), acts)
- @saveAction = KDE::StdAction.save(self, SLOT('slotSave()'), acts)
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT('slotSaveAs()'), acts)
- printAction = KDE::StdAction.print(self, SLOT('slotPrint()'), acts)
- quitAction = KDE::StdAction.quit(self, SLOT('slotQuit()'), acts)
+ newAction = KDE::StdAction.openNew(self, TQ_SLOT('slotNew()'), acts)
+ openAction = KDE::StdAction.open(self, TQ_SLOT('slotOpen()'), acts)
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT('slotSave()'), acts)
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), acts)
+ printAction = KDE::StdAction.print(self, TQ_SLOT('slotPrint()'), acts)
+ quitAction = KDE::StdAction.quit(self, TQ_SLOT('slotQuit()'), acts)
# "Edit" menu items
- undoAction = KDE::StdAction.undo(self, SLOT('slotUndo()'), acts)
- redoAction = KDE::StdAction.redo(self, SLOT('slotRedo()'), acts)
- cutAction = KDE::StdAction.cut(self, SLOT('slotCut()'), acts)
- copyAction = KDE::StdAction.copy(self, SLOT('slotCopy()'), acts)
- pasteAction = KDE::StdAction.paste(self, SLOT('slotPaste()'), acts)
- findAction = KDE::StdAction.find(self, SLOT('slotFind()'), acts)
- findNextAction = KDE::StdAction.findNext(self, SLOT('slotFindNext()'), acts)
- replaceAction = KDE::StdAction.replace(self, SLOT('slotReplace()'), acts)
+ undoAction = KDE::StdAction.undo(self, TQ_SLOT('slotUndo()'), acts)
+ redoAction = KDE::StdAction.redo(self, TQ_SLOT('slotRedo()'), acts)
+ cutAction = KDE::StdAction.cut(self, TQ_SLOT('slotCut()'), acts)
+ copyAction = KDE::StdAction.copy(self, TQ_SLOT('slotCopy()'), acts)
+ pasteAction = KDE::StdAction.paste(self, TQ_SLOT('slotPaste()'), acts)
+ findAction = KDE::StdAction.find(self, TQ_SLOT('slotFind()'), acts)
+ findNextAction = KDE::StdAction.findNext(self, TQ_SLOT('slotFindNext()'), acts)
+ replaceAction = KDE::StdAction.replace(self, TQ_SLOT('slotReplace()'), acts)
# NOTE!!!! You must specify a parent and name for the action object in its constructor
# Normally in a constructor like
@@ -111,13 +111,13 @@ class MainWin < KDE::MainWindow
# object names - the variable the object is assigned to('specialAction')
# has no meaning in XNLGUI terms except through the objects 'name' member value
- specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), acts, "specialActionName")
+ specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), acts, "specialActionName")
# Demo menu items
# KDE::ToggleAction has an isChecked member and emits the "toggle" signal
toggle1Action = KDE::ToggleAction.new("Toggle 1", KDE::Shortcut.new(0), acts, "toggle1Action")
- toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, SLOT('slotToggle2()'), acts, "toggle2Action")
+ toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotToggle2()'), acts, "toggle2Action")
# A separator - create once/use everywhere
separateAction = KDE::ActionSeparator.new(acts, "separateAction")
@@ -146,15 +146,15 @@ class MainWin < KDE::MainWindow
# separators). Creating the KDE::StdActions alone is sufficient - you
# could delete their references from the *ui.rc file and the menu
# items would still be created via ui_standards.rc
- actionMenu.insert(KDE::StdAction.zoomIn(self, SLOT('slotZoomIn()'), acts))
- actionMenu.insert(KDE::StdAction.zoomOut(self, SLOT('slotZoomOut()'), acts))
+ actionMenu.insert(KDE::StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), acts))
+ actionMenu.insert(KDE::StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), acts))
- radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio1")
+ radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio1")
radio1Action.setExclusiveGroup("Radio")
radio1Action.setChecked(true)
- radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio2")
+ radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio2")
radio2Action.setExclusiveGroup("Radio")
- radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio3")
+ radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio3")
radio3Action.setExclusiveGroup("Radio")
end
@@ -184,7 +184,7 @@ class MainWin < KDE::MainWindow
# in this case only
(0...fakeFiles.length).each do |i|
act = KDE::Action.new(i18n(" &#{i.to_s} #{fakeFiles[i]}"), KDE::Shortcut.new(0),
- self, SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open")
+ self, TQ_SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open")
dynamicActionsList << act
end