summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/menudemo.rb
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-13 11:29:06 +0900
committerMichele Calgaro <[email protected]>2024-01-13 11:45:40 +0900
commitfaf33629bb6562a6f43f930afafe4b22e9cdb60b (patch)
tree8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /korundum/rubylib/examples/menudemo.rb
parent0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff)
downloadtdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz
tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'korundum/rubylib/examples/menudemo.rb')
-rw-r--r--korundum/rubylib/examples/menudemo.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/korundum/rubylib/examples/menudemo.rb b/korundum/rubylib/examples/menudemo.rb
index 0ff27ac8..5fe405d3 100644
--- a/korundum/rubylib/examples/menudemo.rb
+++ b/korundum/rubylib/examples/menudemo.rb
@@ -65,29 +65,29 @@ class MainWin < MainWindow
def initActions()
# "File" menu items
- @newAction = StdAction.openNew(self, SLOT('slotNew()'), actionCollection())
- @openAction = StdAction.open(self, SLOT('slotOpen()'), actionCollection())
- @saveAction = StdAction.save(self, SLOT('slotSave()'), actionCollection())
- @saveAsAction = StdAction.saveAs(self, SLOT('slotSaveAs()'), actionCollection())
- @printAction = StdAction.print(self, SLOT('slotPrint()'), actionCollection())
- @quitAction = StdAction.quit(self, SLOT('slotQuit()'), actionCollection())
+ @newAction = StdAction.openNew(self, TQ_SLOT('slotNew()'), actionCollection())
+ @openAction = StdAction.open(self, TQ_SLOT('slotOpen()'), actionCollection())
+ @saveAction = StdAction.save(self, TQ_SLOT('slotSave()'), actionCollection())
+ @saveAsAction = StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), actionCollection())
+ @printAction = StdAction.print(self, TQ_SLOT('slotPrint()'), actionCollection())
+ @quitAction = StdAction.quit(self, TQ_SLOT('slotQuit()'), actionCollection())
# "Edit" menu items
- @undoAction = StdAction.undo(self, SLOT('slotUndo()'), actionCollection())
- @redoAction = StdAction.redo(self, SLOT('slotRedo()'), actionCollection())
- @cutAction = StdAction.cut(self, SLOT('slotCut()'), actionCollection())
- @copyAction = StdAction.copy(self, SLOT('slotCopy()'), actionCollection())
- @pasteAction = StdAction.paste(self, SLOT('slotPaste()'), actionCollection())
- @findAction = StdAction.find(self, SLOT('slotFind()'), actionCollection())
- @findNextAction = StdAction.findNext(self, SLOT('slotFindNext()'), actionCollection())
- @replaceAction = StdAction.replace(self, SLOT('slotReplace()'), actionCollection())
- @specialAction = Action.new(i18n("Special"), Shortcut.new(), self, SLOT('slotSpecial()'), actionCollection(), "special")
+ @undoAction = StdAction.undo(self, TQ_SLOT('slotUndo()'), actionCollection())
+ @redoAction = StdAction.redo(self, TQ_SLOT('slotRedo()'), actionCollection())
+ @cutAction = StdAction.cut(self, TQ_SLOT('slotCut()'), actionCollection())
+ @copyAction = StdAction.copy(self, TQ_SLOT('slotCopy()'), actionCollection())
+ @pasteAction = StdAction.paste(self, TQ_SLOT('slotPaste()'), actionCollection())
+ @findAction = StdAction.find(self, TQ_SLOT('slotFind()'), actionCollection())
+ @findNextAction = StdAction.findNext(self, TQ_SLOT('slotFindNext()'), actionCollection())
+ @replaceAction = StdAction.replace(self, TQ_SLOT('slotReplace()'), actionCollection())
+ @specialAction = Action.new(i18n("Special"), Shortcut.new(), self, TQ_SLOT('slotSpecial()'), actionCollection(), "special")
# Demo menu items
# TDEToggleAction has an isChecked member and emits the "toggle" signal
@toggle1Action = ToggleAction.new("Toggle 1")
- @toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, SLOT('slotToggle2()'), nil)
+ @toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, TQ_SLOT('slotToggle2()'), nil)
# A separator - create once/use everywhere
@separateAction = ActionSeparator.new()
@@ -103,8 +103,8 @@ class MainWin < MainWindow
# Nested menus using TDEActions (also nested on toolbar)
@actionMenu = ActionMenu.new("Action Menu")
@actionMenu.setIconSet(iconSet)
- @actionMenu.insert(StdAction.zoomIn(self, SLOT('slotZoomIn()'), actionCollection()))
- @actionMenu.insert(StdAction.zoomOut(self, SLOT('slotZoomOut()'), actionCollection()))
+ @actionMenu.insert(StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), actionCollection()))
+ @actionMenu.insert(StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), actionCollection()))
# Doesn't work in KDE 2.1.1
# radio1Action = TDERadioAction ("Radio 1")