summaryrefslogtreecommitdiffstats
path: root/kturtle/src/kturtle.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-20 22:30:18 +0900
committerMichele Calgaro <[email protected]>2023-12-21 09:40:01 +0900
commit5446eb7150897a6fb453a7246d7d09ddd8d2bc69 (patch)
tree256ab63f945cfa34856ae619951a8eb7773918ee /kturtle/src/kturtle.cpp
parent63af14c32527b3449e31cd9d01c38b5074177378 (diff)
downloadtdeedu-5446eb7150897a6fb453a7246d7d09ddd8d2bc69.tar.gz
tdeedu-5446eb7150897a6fb453a7246d7d09ddd8d2bc69.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit cf40f006901966bdf86163dbe5d1c7cb55f099ec)
Diffstat (limited to 'kturtle/src/kturtle.cpp')
-rw-r--r--kturtle/src/kturtle.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/kturtle/src/kturtle.cpp b/kturtle/src/kturtle.cpp
index 9e68381f..81c70f2b 100644
--- a/kturtle/src/kturtle.cpp
+++ b/kturtle/src/kturtle.cpp
@@ -123,59 +123,59 @@ void MainWindow::setupActions()
TDEActionCollection *ac = actionCollection(); // abbreviation
// File actions
- KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(slotNewFile()), ac);
- openExAction = new TDEAction(i18n("Open Exa&mples..."), "bookmark_folder", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(slotOpenExample()), ac, "open_examples");
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotOpenFile()), ac);
- m_recentFiles = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotOpenFile(const KURL&)), ac);
- KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotSaveFile()), ac);
- KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(slotSaveAs()), ac);
- new TDEAction(i18n("Save &Canvas..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSaveCanvas()), ac, "save_canvas");
- speed = new TDESelectAction(i18n("Execution Speed"), 0, ALT+Key_S, TQT_TQOBJECT(this), TQT_SLOT( slotChangeSpeed() ), ac, "speed");
+ KStdAction::openNew(this, TQT_SLOT(slotNewFile()), ac);
+ openExAction = new TDEAction(i18n("Open Exa&mples..."), "bookmark_folder", CTRL+Key_E, this, TQT_SLOT(slotOpenExample()), ac, "open_examples");
+ KStdAction::open(this, TQT_SLOT(slotOpenFile()), ac);
+ m_recentFiles = KStdAction::openRecent(this, TQT_SLOT(slotOpenFile(const KURL&)), ac);
+ KStdAction::save(this, TQT_SLOT(slotSaveFile()), ac);
+ KStdAction::saveAs(this, TQT_SLOT(slotSaveAs()), ac);
+ new TDEAction(i18n("Save &Canvas..."), 0, 0, this, TQT_SLOT(slotSaveCanvas()), ac, "save_canvas");
+ speed = new TDESelectAction(i18n("Execution Speed"), 0, ALT+Key_S, this, TQT_SLOT( slotChangeSpeed() ), ac, "speed");
TQStringList speeds; speeds << i18n("Full Speed") << i18n("Slow") << i18n("Slower") << i18n("Slowest");
speed->setItems(speeds);
speed->setCurrentItem(0);
- run = new TDEAction(i18n("&Execute Commands"), "gear", ALT+Key_Return, TQT_TQOBJECT(this), TQT_SLOT( slotExecute() ), ac, "run");
- pause = new TDEToggleAction(i18n("Pause E&xecution"), "media-playback-pause", Key_Pause, TQT_TQOBJECT(this), TQT_SLOT( slotPauseExecution() ), ac, "pause");
+ run = new TDEAction(i18n("&Execute Commands"), "gear", ALT+Key_Return, this, TQT_SLOT( slotExecute() ), ac, "run");
+ pause = new TDEToggleAction(i18n("Pause E&xecution"), "media-playback-pause", Key_Pause, this, TQT_SLOT( slotPauseExecution() ), ac, "pause");
pause->setChecked(false);
pause->setEnabled(false);
- stop = new TDEAction(i18n("Stop E&xecution"), "process-stop", Key_Escape, TQT_TQOBJECT(this), TQT_SLOT( slotAbortExecution() ), ac, "stop");
+ stop = new TDEAction(i18n("Stop E&xecution"), "process-stop", Key_Escape, this, TQT_SLOT( slotAbortExecution() ), ac, "stop");
stop->setEnabled(false);
- KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotPrint()), ac);
- KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), ac);
+ KStdAction::print(this, TQT_SLOT(slotPrint()), ac);
+ KStdAction::quit(this, TQT_SLOT(close()), ac);
// Edit actions
- KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(slotUndo()), ac);
- KStdAction::redo(TQT_TQOBJECT(this), TQT_SLOT(slotRedo()), ac);
- KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotCut()), ac);
- KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), ac);
- KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotPaste()), ac);
- KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(slotSelectAll()), ac);
- KStdAction::deselect(TQT_TQOBJECT(this), TQT_SLOT(slotClearSelection()), ac);
- new TDEToggleAction(i18n("Toggle Insert"), Key_Insert, TQT_TQOBJECT(this), TQT_SLOT(slotToggleInsert()), ac, "set_insert");
- KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(slotFind()), ac);
- KStdAction::findNext(TQT_TQOBJECT(this), TQT_SLOT(slotFindNext()), ac);
- KStdAction::findPrev(TQT_TQOBJECT(this), TQT_SLOT(slotFindPrevious()), ac);
- KStdAction::replace(TQT_TQOBJECT(this), TQT_SLOT(slotReplace()), ac);
+ KStdAction::undo(this, TQT_SLOT(slotUndo()), ac);
+ KStdAction::redo(this, TQT_SLOT(slotRedo()), ac);
+ KStdAction::cut(this, TQT_SLOT(slotCut()), ac);
+ KStdAction::copy(this, TQT_SLOT(slotCopy()), ac);
+ KStdAction::paste(this, TQT_SLOT(slotPaste()), ac);
+ KStdAction::selectAll(this, TQT_SLOT(slotSelectAll()), ac);
+ KStdAction::deselect(this, TQT_SLOT(slotClearSelection()), ac);
+ new TDEToggleAction(i18n("Toggle Insert"), Key_Insert, this, TQT_SLOT(slotToggleInsert()), ac, "set_insert");
+ KStdAction::find(this, TQT_SLOT(slotFind()), ac);
+ KStdAction::findNext(this, TQT_SLOT(slotFindNext()), ac);
+ KStdAction::findPrev(this, TQT_SLOT(slotFindPrevious()), ac);
+ KStdAction::replace(this, TQT_SLOT(slotReplace()), ac);
// View actions
- new TDEToggleAction(i18n("Show &Line Numbers"), 0, Key_F11, TQT_TQOBJECT(this), TQT_SLOT(slotToggleLineNumbers()), ac, "line_numbers");
- m_fullscreen = KStdAction::fullScreen(TQT_TQOBJECT(this), TQT_SLOT(slotToggleFullscreen()), ac, this, "full_screen");
+ new TDEToggleAction(i18n("Show &Line Numbers"), 0, Key_F11, this, TQT_SLOT(slotToggleLineNumbers()), ac, "line_numbers");
+ m_fullscreen = KStdAction::fullScreen(this, TQT_SLOT(slotToggleFullscreen()), ac, this, "full_screen");
m_fullscreen->setChecked(b_fullscreen);
// Tools actions
- colorpicker = new TDEToggleAction(i18n("&Color Picker"), "colorize", ALT+Key_C, TQT_TQOBJECT(this), TQT_SLOT(slotColorPicker()), ac, "color_picker");
- new TDEAction(i18n("&Indent"), "format-indent-more", CTRL+Key_I, TQT_TQOBJECT(this), TQT_SLOT(slotIndent()), ac, "edit_indent");
- new TDEAction(i18n("&Unindent"), "format-indent-less", CTRL+SHIFT+Key_I, TQT_TQOBJECT(this), TQT_SLOT(slotUnIndent()), ac, "edit_unindent");
- new TDEAction(i18n("Cl&ean Indentation"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotCleanIndent()), ac, "edit_cleanIndent");
- new TDEAction(i18n("Co&mment"), 0, CTRL+Key_D, TQT_TQOBJECT(this), TQT_SLOT(slotComment()), ac, "edit_comment");
- new TDEAction(i18n("Unc&omment"), 0, CTRL+SHIFT+Key_D, TQT_TQOBJECT(this), TQT_SLOT(slotUnComment()), ac, "edit_uncomment");
+ colorpicker = new TDEToggleAction(i18n("&Color Picker"), "colorize", ALT+Key_C, this, TQT_SLOT(slotColorPicker()), ac, "color_picker");
+ new TDEAction(i18n("&Indent"), "format-indent-more", CTRL+Key_I, this, TQT_SLOT(slotIndent()), ac, "edit_indent");
+ new TDEAction(i18n("&Unindent"), "format-indent-less", CTRL+SHIFT+Key_I, this, TQT_SLOT(slotUnIndent()), ac, "edit_unindent");
+ new TDEAction(i18n("Cl&ean Indentation"), 0, 0, this, TQT_SLOT(slotCleanIndent()), ac, "edit_cleanIndent");
+ new TDEAction(i18n("Co&mment"), 0, CTRL+Key_D, this, TQT_SLOT(slotComment()), ac, "edit_comment");
+ new TDEAction(i18n("Unc&omment"), 0, CTRL+SHIFT+Key_D, this, TQT_SLOT(slotUnComment()), ac, "edit_uncomment");
// Settings actions
- KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(slotSettings()), ac );
- new TDEAction(i18n("&Configure Editor..."), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditor()), ac, "set_confdlg");
+ KStdAction::preferences( this, TQT_SLOT(slotSettings()), ac );
+ new TDEAction(i18n("&Configure Editor..."), "configure", 0, this, TQT_SLOT(slotEditor()), ac, "set_confdlg");
// Help actions
- ContextHelp = new TDEAction(0, 0, Key_F2, TQT_TQOBJECT(this), TQT_SLOT(slotContextHelp()), ac, "context_help");
+ ContextHelp = new TDEAction(0, 0, Key_F2, this, TQT_SLOT(slotContextHelp()), ac, "context_help");
slotContextHelpUpdate(); // this sets the label of this action
// other