summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/templates/annotated
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/templates/annotated')
-rw-r--r--korundum/rubylib/templates/annotated/menuapp1.rb52
-rw-r--r--korundum/rubylib/templates/annotated/menuapp2.rb30
-rw-r--r--korundum/rubylib/templates/annotated/menuapp3.rb30
-rw-r--r--korundum/rubylib/templates/annotated/systray1.rb2
4 files changed, 57 insertions, 57 deletions
diff --git a/korundum/rubylib/templates/annotated/menuapp1.rb b/korundum/rubylib/templates/annotated/menuapp1.rb
index bf4ea83c..df44cee4 100644
--- a/korundum/rubylib/templates/annotated/menuapp1.rb
+++ b/korundum/rubylib/templates/annotated/menuapp1.rb
@@ -87,21 +87,21 @@ class MainWin < KDE::MainWindow
# need to instantiate KDE::StdAccel
# "File" menu items
- fileMenu.insertItem(i18n("New"), self, SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
- fileMenu.insertItem(i18n("Open"), self, SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
+ fileMenu.insertItem(i18n("New"), self, TQ_SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
+ fileMenu.insertItem(i18n("Open"), self, TQ_SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Save"), self, SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
+ fileMenu.insertItem(i18n("Save"), self, TQ_SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
# TDEStdAccel doesn't have a standard accelerator for 'Save As',
# so we omit it - insertItem uses the default value
- fileMenu.insertItem(i18n("SaveAs"), self, SLOT('slotSaveAs()'))
+ fileMenu.insertItem(i18n("SaveAs"), self, TQ_SLOT('slotSaveAs()'))
# This inserts a line between groups of items in a menu
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Print"), self, SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
+ fileMenu.insertItem(i18n("Print"), self, TQ_SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("&Quit"), self, SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
+ fileMenu.insertItem(i18n("&Quit"), self, TQ_SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
# Put fileMenu (as the File menu) into the menu bar
# 'menuBar' is a predefined object owned by KDE::MainWindow
@@ -110,16 +110,16 @@ class MainWin < KDE::MainWindow
editMenu = TQt::PopupMenu.new(self)
# "Edit" menu items
- editMenu.insertItem(i18n("Undo"), self, SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
- editMenu.insertItem(i18n("Redo"), self, SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
+ editMenu.insertItem(i18n("Undo"), self, TQ_SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
+ editMenu.insertItem(i18n("Redo"), self, TQ_SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Cut"), self, SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
- editMenu.insertItem(i18n("Copy"), self, SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
- editMenu.insertItem(i18n("Paste"), self, SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
+ editMenu.insertItem(i18n("Cut"), self, TQ_SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
+ editMenu.insertItem(i18n("Copy"), self, TQ_SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
+ editMenu.insertItem(i18n("Paste"), self, TQ_SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Find"), self, SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
- editMenu.insertItem(i18n("Find Next"), self, SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
- editMenu.insertItem(i18n("Replace"), self, SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
+ editMenu.insertItem(i18n("Find"), self, TQ_SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
+ editMenu.insertItem(i18n("Find Next"), self, TQ_SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
+ editMenu.insertItem(i18n("Replace"), self, TQ_SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
# Put editMenu (as the Edit menu) into the menu bar
@@ -150,18 +150,18 @@ class MainWin < KDE::MainWindow
# are easier ways to do this - see other menuapp templates for easier
# methods using KDE::Action/KDE::StdAction
- toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, SIGNAL("clicked(int)"),
- self, SLOT('slotNew()'), true, "New")
- toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, SIGNAL("clicked(int)"),
- self, SLOT('slotOpen()'), true, "Open")
- toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, SIGNAL("clicked(int)"),
- self, SLOT('slotSave()'), true, "Save")
- toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, SIGNAL("clicked(int)"),
- self, SLOT('slotCut()'), true, "Cut")
- toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, SIGNAL("clicked(int)"),
- self, SLOT('slotCopy()'), true, "Copy")
- toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, SIGNAL("clicked(int)"),
- self, SLOT('slotPaste()'), true, "Paste")
+ toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotNew()'), true, "New")
+ toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotOpen()'), true, "Open")
+ toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotSave()'), true, "Save")
+ toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCut()'), true, "Cut")
+ toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCopy()'), true, "Copy")
+ toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotPaste()'), true, "Paste")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/annotated/menuapp2.rb b/korundum/rubylib/templates/annotated/menuapp2.rb
index f8778163..d471423e 100644
--- a/korundum/rubylib/templates/annotated/menuapp2.rb
+++ b/korundum/rubylib/templates/annotated/menuapp2.rb
@@ -87,22 +87,22 @@ class MainWin < KDE::MainWindow
# where the code for the action is located
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For actions that are not "standard", you can create your
# own actions using KDE::Action. This example doesn't include
@@ -114,7 +114,7 @@ class MainWin < KDE::MainWindow
# This TDEAction constructor requires a string, an accelerator (0
# in this case), a slot, and a TQObject (None in this case)
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initMenus()
diff --git a/korundum/rubylib/templates/annotated/menuapp3.rb b/korundum/rubylib/templates/annotated/menuapp3.rb
index 37fbf2b4..f1b76940 100644
--- a/korundum/rubylib/templates/annotated/menuapp3.rb
+++ b/korundum/rubylib/templates/annotated/menuapp3.rb
@@ -96,29 +96,29 @@ class MainWin < KDE::MainWindow
# in the toolBar.
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For ANYTHING constructed from KDE::Action or its descendants (KDE::ActionMenu, KDE::ActionSeparator,
# KDE::FontAction, etc) you MUST provide the actionCollection () parent and an object
# name ("specialActionName") or the XMLGUI mechanism will not be able to locate the
# action. XMLGUI finds the action via its member name value, NOT via its variable name.
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/annotated/systray1.rb b/korundum/rubylib/templates/annotated/systray1.rb
index 10bdb5c8..1945fa9e 100644
--- a/korundum/rubylib/templates/annotated/systray1.rb
+++ b/korundum/rubylib/templates/annotated/systray1.rb
@@ -60,7 +60,7 @@ class MainWin < KDE::MainWindow
# KDE::SystemTray hides or shows its parent when the system tray icon is clicked
systray = KDE::SystemTray.new(self)
systray.setPixmap(icons.loadIcon("process-stop", 0))
- connect(systray, SIGNAL("quitSelected()"), self, SLOT('slotQuitSelected()'))
+ connect(systray, TQ_SIGNAL("quitSelected()"), self, TQ_SLOT('slotQuitSelected()'))
systray.show()
end