diff options
Diffstat (limited to 'kdbg/dbgmainwnd.cpp')
-rw-r--r-- | kdbg/dbgmainwnd.cpp | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/kdbg/dbgmainwnd.cpp b/kdbg/dbgmainwnd.cpp index f5bc457..d1a3ab1 100644 --- a/kdbg/dbgmainwnd.cpp +++ b/kdbg/dbgmainwnd.cpp @@ -4,21 +4,21 @@ * See the file COPYING in the toplevel directory of the source directory. */ -#include <kapplication.h> -#include <klocale.h> /* i18n */ -#include <kmessagebox.h> -#include <kconfig.h> +#include <tdeapplication.h> +#include <tdelocale.h> /* i18n */ +#include <tdemessagebox.h> +#include <tdeconfig.h> #include <kstatusbar.h> #include <kiconloader.h> -#include <kstdaccel.h> +#include <tdestdaccel.h> #include <kstdaction.h> -#include <kaction.h> -#include <kpopupmenu.h> -#include <kfiledialog.h> +#include <tdeaction.h> +#include <tdepopupmenu.h> +#include <tdefiledialog.h> #include <kprocess.h> #include <kkeydialog.h> #include <kanimwidget.h> -#include <kwin.h> +#include <twin.h> #include <ntqlistbox.h> #include <ntqfileinfo.h> #include "dbgmainwnd.h" @@ -131,10 +131,10 @@ DebuggerMainWnd::DebuggerMainWnd(const char* name) : connect(m_debugger, SIGNAL(memoryDumpChanged(const TQString&, const std::list<MemoryDump>&)), m_memoryWindow, SLOT(slotNewMemoryDump(const TQString&, const std::list<MemoryDump>&))); - connect(m_debugger, SIGNAL(saveProgramSpecific(KConfigBase*)), - m_memoryWindow, SLOT(saveProgramSpecific(KConfigBase*))); - connect(m_debugger, SIGNAL(restoreProgramSpecific(KConfigBase*)), - m_memoryWindow, SLOT(restoreProgramSpecific(KConfigBase*))); + connect(m_debugger, SIGNAL(saveProgramSpecific(TDEConfigBase*)), + m_memoryWindow, SLOT(saveProgramSpecific(TDEConfigBase*))); + connect(m_debugger, SIGNAL(restoreProgramSpecific(TDEConfigBase*)), + m_memoryWindow, SLOT(restoreProgramSpecific(TDEConfigBase*))); // thread window connect(m_debugger, SIGNAL(threadsChanged(const std::list<ThreadInfo>&)), @@ -176,35 +176,35 @@ DebuggerMainWnd::~DebuggerMainWnd() void DebuggerMainWnd::initKAction() { // file menu - KAction* open = KStdAction::open(this, SLOT(slotFileOpen()), + TDEAction* open = KStdAction::open(this, SLOT(slotFileOpen()), actionCollection()); open->setText(i18n("&Open Source...")); KStdAction::close(m_filesWindow, SLOT(slotClose()), actionCollection()); - (void)new KAction(i18n("&Reload Source"), "reload", 0, m_filesWindow, + (void)new TDEAction(i18n("&Reload Source"), "reload", 0, m_filesWindow, SLOT(slotFileReload()), actionCollection(), "file_reload"); - (void)new KAction(i18n("&Executable..."), "execopen", 0, this, + (void)new TDEAction(i18n("&Executable..."), "execopen", 0, this, SLOT(slotFileExe()), actionCollection(), "file_executable"); - m_recentExecAction = new KRecentFilesAction(i18n("Recent E&xecutables"), 0, + m_recentExecAction = new TDERecentFilesAction(i18n("Recent E&xecutables"), 0, this, SLOT(slotRecentExec(const KURL&)), actionCollection(), "file_executable_recent"); - (void)new KAction(i18n("&Core dump..."), 0, this, SLOT(slotFileCore()), + (void)new TDEAction(i18n("&Core dump..."), 0, this, SLOT(slotFileCore()), actionCollection(), "file_core_dump"); KStdAction::quit(kapp, SLOT(closeAllWindows()), actionCollection()); // settings menu - (void)new KAction(i18n("This &Program..."), 0, this, + (void)new TDEAction(i18n("This &Program..."), 0, this, SLOT(slotFileProgSettings()), actionCollection(), "settings_program"); - (void)new KAction(i18n("&Global Options..."), 0, this, + (void)new TDEAction(i18n("&Global Options..."), 0, this, SLOT(slotFileGlobalSettings()), actionCollection(), "settings_global"); KStdAction::keyBindings(this, SLOT(slotConfigureKeys()), actionCollection()); KStdAction::showStatusbar(this, SLOT(slotViewStatusbar()), actionCollection()); // view menu - (void)new KToggleAction(i18n("&Find"), "find", CTRL+Key_F, m_filesWindow, + (void)new TDEToggleAction(i18n("&Find"), "find", CTRL+Key_F, m_filesWindow, SLOT(slotViewFind()), actionCollection(), "view_find"); (void)KStdAction::findNext(m_filesWindow, SLOT(slotFindForward()), actionCollection(), "view_findnext"); @@ -223,80 +223,80 @@ void DebuggerMainWnd::initKAction() }; for (unsigned i = 0; i < sizeof(dw)/sizeof(dw[0]); i++) { KDockWidget* d = dockParent(dw[i].w); - (void)new KToggleAction(dw[i].text, 0, d, SLOT(changeHideShowState()), + (void)new TDEToggleAction(dw[i].text, 0, d, SLOT(changeHideShowState()), actionCollection(), dw[i].id); } // execution menu - KAction* a = new KAction(i18n("&Run"), "pgmrun", Key_F5, m_debugger, + TDEAction* a = new TDEAction(i18n("&Run"), "pgmrun", Key_F5, m_debugger, SLOT(programRun()), actionCollection(), "exec_run"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Step &into"), "pgmstep", Key_F8, m_debugger, + a = new TDEAction(i18n("Step &into"), "pgmstep", Key_F8, m_debugger, SLOT(programStep()), actionCollection(), "exec_step_into"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Step &over"), "pgmnext", Key_F10, m_debugger, + a = new TDEAction(i18n("Step &over"), "pgmnext", Key_F10, m_debugger, SLOT(programNext()), actionCollection(), "exec_step_over"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Step o&ut"), "pgmfinish", Key_F6, m_debugger, + a = new TDEAction(i18n("Step o&ut"), "pgmfinish", Key_F6, m_debugger, SLOT(programFinish()), actionCollection(), "exec_step_out"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Run to &cursor"), Key_F7, this, + a = new TDEAction(i18n("Run to &cursor"), Key_F7, this, SLOT(slotExecUntil()), actionCollection(), "exec_run_to_cursor"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Step i&nto by instruction"), "pgmstepi", + a = new TDEAction(i18n("Step i&nto by instruction"), "pgmstepi", SHIFT+Key_F8, m_debugger, SLOT(programStepi()), actionCollection(), "exec_step_into_by_insn"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - a = new KAction(i18n("Step o&ver by instruction"), "pgmnexti", + a = new TDEAction(i18n("Step o&ver by instruction"), "pgmnexti", SHIFT+Key_F10, m_debugger, SLOT(programNexti()), actionCollection(), "exec_step_over_by_insn"); connect(a, SIGNAL(activated()), this, SLOT(intoBackground())); - (void)new KAction(i18n("&Program counter to current line"), 0, + (void)new TDEAction(i18n("&Program counter to current line"), 0, m_filesWindow, SLOT(slotMoveProgramCounter()), actionCollection(), "exec_movepc"); - (void)new KAction(i18n("&Break"), 0, m_debugger, + (void)new TDEAction(i18n("&Break"), 0, m_debugger, SLOT(programBreak()), actionCollection(), "exec_break"); - (void)new KAction(i18n("&Kill"), 0, m_debugger, + (void)new TDEAction(i18n("&Kill"), 0, m_debugger, SLOT(programKill()), actionCollection(), "exec_kill"); - (void)new KAction(i18n("Re&start"), 0, m_debugger, + (void)new TDEAction(i18n("Re&start"), 0, m_debugger, SLOT(programRunAgain()), actionCollection(), "exec_restart"); - (void)new KAction(i18n("A&ttach..."), 0, this, + (void)new TDEAction(i18n("A&ttach..."), 0, this, SLOT(slotExecAttach()), actionCollection(), "exec_attach"); - (void)new KAction(i18n("&Arguments..."), 0, this, + (void)new TDEAction(i18n("&Arguments..."), 0, this, SLOT(slotExecArgs()), actionCollection(), "exec_arguments"); // breakpoint menu - (void)new KAction(i18n("Set/Clear &breakpoint"), "brkpt", Key_F9, + (void)new TDEAction(i18n("Set/Clear &breakpoint"), "brkpt", Key_F9, m_filesWindow, SLOT(slotBrkptSet()), actionCollection(), "breakpoint_set"); - (void)new KAction(i18n("Set &temporary breakpoint"), SHIFT+Key_F9, + (void)new TDEAction(i18n("Set &temporary breakpoint"), SHIFT+Key_F9, m_filesWindow, SLOT(slotBrkptSetTemp()), actionCollection(), "breakpoint_set_temporary"); - (void)new KAction(i18n("&Enable/Disable breakpoint"), CTRL+Key_F9, + (void)new TDEAction(i18n("&Enable/Disable breakpoint"), CTRL+Key_F9, m_filesWindow, SLOT(slotBrkptEnable()), actionCollection(), "breakpoint_enable"); // only in popup menus - (void)new KAction(i18n("Watch Expression"), 0, this, + (void)new TDEAction(i18n("Watch Expression"), 0, this, SLOT(slotLocalsToWatch()), actionCollection(), "watch_expression"); - (void)new KAction(i18n("Edit Value"), Key_F2, this, + (void)new TDEAction(i18n("Edit Value"), Key_F2, this, SLOT(slotEditValue()), actionCollection(), "edit_value"); // all actions force an UI update - TQValueList<KAction*> actions = actionCollection()->actions(); - TQValueList<KAction*>::Iterator it = actions.begin(); + TQValueList<TDEAction*> actions = actionCollection()->actions(); + TQValueList<TDEAction*>::Iterator it = actions.begin(); for (; it != actions.end(); ++it) { connect(*it, SIGNAL(activated()), this, SLOT(updateUI())); } @@ -306,7 +306,7 @@ void DebuggerMainWnd::initKAction() void DebuggerMainWnd::initToolbar() { - KToolBar* toolbar = toolBar("mainToolBar"); + TDEToolBar* toolbar = toolBar("mainToolBar"); toolbar->insertAnimatedWidget(ID_STATUS_BUSY, actionCollection()->action("exec_break"), SLOT(activate()), "pulse", -1); @@ -333,7 +333,7 @@ bool DebuggerMainWnd::queryClose() // instance properties -void DebuggerMainWnd::saveProperties(KConfig* config) +void DebuggerMainWnd::saveProperties(TDEConfig* config) { // session management TQString executable = ""; @@ -343,7 +343,7 @@ void DebuggerMainWnd::saveProperties(KConfig* config) config->writeEntry("executable", executable); } -void DebuggerMainWnd::readProperties(KConfig* config) +void DebuggerMainWnd::readProperties(TDEConfig* config) { // session management TQString execName = config->readEntry("executable"); @@ -358,25 +358,25 @@ const char WindowGroup[] = "Windows"; const char RecentExecutables[] = "RecentExecutables"; const char LastSession[] = "LastSession"; -void DebuggerMainWnd::saveSettings(KConfig* config) +void DebuggerMainWnd::saveSettings(TDEConfig* config) { - KConfigGroupSaver g(config, WindowGroup); + TDEConfigGroupSaver g(config, WindowGroup); writeDockConfig(config); fixDockConfig(config, false); // downgrade m_recentExecAction->saveEntries(config, RecentExecutables); - KConfigGroupSaver g2(config, LastSession); + TDEConfigGroupSaver g2(config, LastSession); config->writeEntry("Width0Locals", m_localVariables->columnWidth(0)); config->writeEntry("Width0Watches", m_watches->columnWidth(0)); DebuggerMainWndBase::saveSettings(config); } -void DebuggerMainWnd::restoreSettings(KConfig* config) +void DebuggerMainWnd::restoreSettings(TDEConfig* config) { - KConfigGroupSaver g(config, WindowGroup); + TDEConfigGroupSaver g(config, WindowGroup); fixDockConfig(config, true); // upgrade readDockConfig(config); @@ -405,7 +405,7 @@ void DebuggerMainWnd::restoreSettings(KConfig* config) m_recentExecAction->loadEntries(config, RecentExecutables); - KConfigGroupSaver g2(config, LastSession); + TDEConfigGroupSaver g2(config, LastSession); int w; w = config->readNumEntry("Width0Locals", -1); if (w >= 0 && w < 30000) @@ -421,8 +421,8 @@ void DebuggerMainWnd::restoreSettings(KConfig* config) void DebuggerMainWnd::updateUI() { - KToggleAction* viewFind = - static_cast<KToggleAction*>(actionCollection()->action("view_find")); + TDEToggleAction* viewFind = + static_cast<TDEToggleAction*>(actionCollection()->action("view_find")); viewFind->setChecked(m_filesWindow->m_findDlg.isVisible()); viewFind->setEnabled(m_filesWindow->hasWindows()); actionCollection()->action("breakpoint_set")->setEnabled(m_debugger->canChangeBreakpoints()); @@ -484,8 +484,8 @@ void DebuggerMainWnd::updateUI() void DebuggerMainWnd::dockUpdateHelper(TQString action, TQWidget* w) { - KToggleAction* item = - static_cast<KToggleAction*>(actionCollection()->action(action)); + TDEToggleAction* item = + static_cast<TDEToggleAction*>(actionCollection()->action(action)); bool canChange = canChangeDockVisibility(w); item->setEnabled(canChange); item->setChecked(canChange && isDockVisible(w)); @@ -540,7 +540,7 @@ bool DebuggerMainWnd::canChangeDockVisibility(TQWidget* w) } // upgrades the entries from version 0.0.4 to 0.0.5 and back -void DebuggerMainWnd::fixDockConfig(KConfig* c, bool upgrade) +void DebuggerMainWnd::fixDockConfig(TDEConfig* c, bool upgrade) { static const char dockGroup[] = "dock_setting_default"; if (!c->hasGroup(dockGroup)) @@ -554,7 +554,7 @@ void DebuggerMainWnd::fixDockConfig(KConfig* c, bool upgrade) if (e["Version"] != from) return; - KConfigGroupSaver g(c, dockGroup); + TDEConfigGroupSaver g(c, dockGroup); c->writeEntry("Version", to); TRACE(upgrade ? "upgrading dockconfig" : "downgrading dockconfig"); @@ -656,7 +656,7 @@ TQString DebuggerMainWnd::createOutputWindow() { TQString tty = DebuggerMainWndBase::createOutputWindow(); if (!tty.isEmpty()) { - connect(m_outputTermProc, SIGNAL(processExited(KProcess*)), + connect(m_outputTermProc, SIGNAL(processExited(TDEProcess*)), SLOT(slotTermEmuExited())); } return tty; |