diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
commit | 9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch) | |
tree | b9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/components/debugger | |
parent | 9930e16dde86b7de9b792613d826f4f8648b9768 (diff) | |
download | tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/components/debugger')
-rw-r--r-- | quanta/components/debugger/backtracelistview.cpp | 6 | ||||
-rw-r--r-- | quanta/components/debugger/backtracelistview.h | 4 | ||||
-rw-r--r-- | quanta/components/debugger/debuggerbreakpointview.cpp | 12 | ||||
-rw-r--r-- | quanta/components/debugger/debuggerbreakpointview.h | 8 | ||||
-rw-r--r-- | quanta/components/debugger/debuggermanager.cpp | 46 | ||||
-rw-r--r-- | quanta/components/debugger/debuggervariable.h | 6 | ||||
-rw-r--r-- | quanta/components/debugger/variableslistview.cpp | 16 | ||||
-rw-r--r-- | quanta/components/debugger/variableslistview.h | 6 |
8 files changed, 52 insertions, 52 deletions
diff --git a/quanta/components/debugger/backtracelistview.cpp b/quanta/components/debugger/backtracelistview.cpp index cd3b3e35..a5925c26 100644 --- a/quanta/components/debugger/backtracelistview.cpp +++ b/quanta/components/debugger/backtracelistview.cpp @@ -44,13 +44,13 @@ namespace BacktraceListviewColumns } BacktraceListviewItem::BacktraceListviewItem(BacktraceListview* view) - : KListViewItem(view) + : TDEListViewItem(view) { } BacktraceListview::BacktraceListview(TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { int charwidth = this->fontMetrics().width("0"); // If you change the order here, change the BacktraceListviewColumns enums above @@ -103,7 +103,7 @@ void BacktraceListview::keyPressEvent(TQKeyEvent *e) void BacktraceListview::clear() { - KListView::clear(); + TDEListView::clear(); } void BacktraceListview::slotBacktraceDoubleClick(TQListViewItem *item, const TQPoint &, int ) diff --git a/quanta/components/debugger/backtracelistview.h b/quanta/components/debugger/backtracelistview.h index 0661af1a..4203cf70 100644 --- a/quanta/components/debugger/backtracelistview.h +++ b/quanta/components/debugger/backtracelistview.h @@ -33,7 +33,7 @@ enum BacktraceType }; -class BacktraceListviewItem : public KListViewItem +class BacktraceListviewItem : public TDEListViewItem { private: BacktraceType m_type; @@ -68,7 +68,7 @@ class BacktraceListviewItem : public KListViewItem }; -class BacktraceListview : public KListView +class BacktraceListview : public TDEListView { Q_OBJECT diff --git a/quanta/components/debugger/debuggerbreakpointview.cpp b/quanta/components/debugger/debuggerbreakpointview.cpp index d490478d..c1074e9d 100644 --- a/quanta/components/debugger/debuggerbreakpointview.cpp +++ b/quanta/components/debugger/debuggerbreakpointview.cpp @@ -47,13 +47,13 @@ namespace DebuggerBreakpointViewColumns } DebuggerBreakpointViewItem::DebuggerBreakpointViewItem(DebuggerBreakpointView* view) - : KListViewItem(view) + : TDEListViewItem(view) { } DebuggerBreakpointView::DebuggerBreakpointView(TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { // If you change here, change the DebuggerBreakpointViewColumns enums above addColumn(i18n("Expression")); @@ -66,10 +66,10 @@ DebuggerBreakpointView::DebuggerBreakpointView(TQWidget *parent, const char *nam setResizeMode(TQListView::AllColumns); setAllColumnsShowFocus(true); - m_breakpointPopup = new KPopupMenu(this); + m_breakpointPopup = new TDEPopupMenu(this); m_breakpointPopup->insertItem(SmallIcon("editdelete"), i18n("&Remove"), this, TQT_SLOT(slotRemoveSelected())); - connect(this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ), this, TQT_SLOT(slotBreakpointContextMenu(KListView *, TQListViewItem *, const TQPoint &))); + connect(this, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), this, TQT_SLOT(slotBreakpointContextMenu(TDEListView *, TQListViewItem *, const TQPoint &))); // Jump to bp connect(this, TQT_SIGNAL( doubleClicked( TQListViewItem *, const TQPoint &, int) ), this, TQT_SLOT(slotBreakpointDoubleClick( TQListViewItem *, const TQPoint &, int))); @@ -165,7 +165,7 @@ void DebuggerBreakpointView::keyPressEvent(TQKeyEvent *e) void DebuggerBreakpointView::clear() { - KListView::clear(); + TDEListView::clear(); } void DebuggerBreakpointView::slotBreakpointDoubleClick(TQListViewItem *item, const TQPoint &, int ) @@ -182,7 +182,7 @@ void DebuggerBreakpointView::slotBreakpointDoubleClick(TQListViewItem *item, con } -void DebuggerBreakpointView::slotBreakpointContextMenu(KListView *, TQListViewItem *, const TQPoint& point) +void DebuggerBreakpointView::slotBreakpointContextMenu(TDEListView *, TQListViewItem *, const TQPoint& point) { if(!selectedItem()) return; diff --git a/quanta/components/debugger/debuggerbreakpointview.h b/quanta/components/debugger/debuggerbreakpointview.h index 9724cec5..e6abcfcd 100644 --- a/quanta/components/debugger/debuggerbreakpointview.h +++ b/quanta/components/debugger/debuggerbreakpointview.h @@ -27,7 +27,7 @@ // class DebuggerBreakpoint; class DebuggerBreakpointView; -class DebuggerBreakpointViewItem : public KListViewItem +class DebuggerBreakpointViewItem : public TDEListViewItem { private: DebuggerBreakpoint m_breakpoint; @@ -41,7 +41,7 @@ class DebuggerBreakpointViewItem : public KListViewItem }; -class DebuggerBreakpointView : public KListView +class DebuggerBreakpointView : public TDEListView { Q_OBJECT @@ -59,7 +59,7 @@ class DebuggerBreakpointView : public KListView public slots: void slotRemoveSelected(); - void slotBreakpointContextMenu(KListView *list, TQListViewItem * item, const TQPoint& point); + void slotBreakpointContextMenu(TDEListView *list, TQListViewItem * item, const TQPoint& point); void slotBreakpointDoubleClick(TQListViewItem *item, const TQPoint &point, int column); signals: @@ -69,7 +69,7 @@ class DebuggerBreakpointView : public KListView void keyPressEvent(TQKeyEvent *e); TQListViewItem* findBreakpoint(const DebuggerBreakpoint& bp, bool addIfNotExist = true); - KPopupMenu *m_breakpointPopup; + TDEPopupMenu *m_breakpointPopup; }; #endif diff --git a/quanta/components/debugger/debuggermanager.cpp b/quanta/components/debugger/debuggermanager.cpp index e9b9573a..bdab1245 100644 --- a/quanta/components/debugger/debuggermanager.cpp +++ b/quanta/components/debugger/debuggermanager.cpp @@ -206,71 +206,71 @@ void DebuggerManager::slotNewProjectLoaded(const TQString &projectname, const KU void DebuggerManager::initActions() { - KAction * newaction; - KActionCollection *ac = quantaApp->actionCollection(); + TDEAction * newaction; + TDEActionCollection *ac = quantaApp->actionCollection(); if(!ac) return; //Debugger, breakpoint - newaction = new KAction(i18n("Toggle &Breakpoint"), SmallIcon("debug_breakpoint"), TQt::CTRL+TQt::SHIFT+TQt::Key_B, this, TQT_SLOT(toggleBreakpoint()), ac, "debug_breakpoints_toggle"); + newaction = new TDEAction(i18n("Toggle &Breakpoint"), SmallIcon("debug_breakpoint"), TQt::CTRL+TQt::SHIFT+TQt::Key_B, this, TQT_SLOT(toggleBreakpoint()), ac, "debug_breakpoints_toggle"); newaction->setToolTip(i18n("Toggles a breakpoint at the current cursor location")); - newaction = new KAction(i18n("&Clear Breakpoints"), 0, this, TQT_SLOT(clearBreakpoints()), ac, "debug_breakpoints_clear"); + newaction = new TDEAction(i18n("&Clear Breakpoints"), 0, this, TQT_SLOT(clearBreakpoints()), ac, "debug_breakpoints_clear"); newaction->setToolTip(i18n("Clears all breakpoints")); - newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_break"); + newaction = new TDEAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_break"); newaction->setToolTip(i18n("Adds a new conditional breakpoint")); - newaction = new KAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_breakdialog"); + newaction = new TDEAction(i18n("Break When..."), SmallIcon("math_int"), 0, this, TQT_SLOT(slotConditionalBreakpoint()), ac, "debug_conditional_breakdialog"); newaction->setToolTip(i18n("Adds a new conditional breakpoint")); // Execution - newaction = new KAction(i18n("Send HTTP R&equest"), SmallIcon("debug_currentline"), 0, this, TQT_SLOT(slotDebugRequest()), ac, "debug_request"); + newaction = new TDEAction(i18n("Send HTTP R&equest"), SmallIcon("debug_currentline"), 0, this, TQT_SLOT(slotDebugRequest()), ac, "debug_request"); newaction->setToolTip(i18n("Initiate HTTP Request to the server with debugging activated")); - newaction = new KAction(i18n("&Trace"), SmallIcon("debug_run"), 0, this, TQT_SLOT(slotDebugTrace()), ac, "debug_trace"); + newaction = new TDEAction(i18n("&Trace"), SmallIcon("debug_run"), 0, this, TQT_SLOT(slotDebugTrace()), ac, "debug_trace"); newaction->setToolTip(i18n("Traces through the script. If a script is currently not being debugged, it will start in trace mode when started")); - newaction = new KAction(i18n("&Run"), SmallIcon("debug_leap"), 0, this, TQT_SLOT(slotDebugRun()), ac, "debug_run"); + newaction = new TDEAction(i18n("&Run"), SmallIcon("debug_leap"), 0, this, TQT_SLOT(slotDebugRun()), ac, "debug_run"); newaction->setToolTip(i18n("Runs the script. If a script is currently not being debugged, it will start in run mode when started")); - newaction = new KAction(i18n("&Step"), SmallIcon("debug_stepover"), 0, this, TQT_SLOT(slotDebugStepOver()), ac, "debug_stepover"); + newaction = new TDEAction(i18n("&Step"), SmallIcon("debug_stepover"), 0, this, TQT_SLOT(slotDebugStepOver()), ac, "debug_stepover"); newaction->setToolTip(i18n("Executes the next line of execution, but does not step into functions or includes")); - newaction = new KAction(i18n("Step &Into"), SmallIcon("debug_stepinto"), 0, this, TQT_SLOT(slotDebugStepInto()), ac, "debug_stepinto"); + newaction = new TDEAction(i18n("Step &Into"), SmallIcon("debug_stepinto"), 0, this, TQT_SLOT(slotDebugStepInto()), ac, "debug_stepinto"); newaction->setToolTip(i18n("Executes the next line of execution and steps into it if it is a function call or inclusion of a file")); - newaction = new KAction(i18n("S&kip"), SmallIcon("debug_skip"), 0, this, TQT_SLOT(slotDebugSkip()), ac, "debug_skip"); + newaction = new TDEAction(i18n("S&kip"), SmallIcon("debug_skip"), 0, this, TQT_SLOT(slotDebugSkip()), ac, "debug_skip"); newaction->setToolTip(i18n("Skips the next command of execution and makes the next command the current one")); - newaction = new KAction(i18n("Step &Out"), SmallIcon("debug_stepout"), 0, this, TQT_SLOT(slotDebugStepOut()), ac, "debug_stepout"); + newaction = new TDEAction(i18n("Step &Out"), SmallIcon("debug_stepout"), 0, this, TQT_SLOT(slotDebugStepOut()), ac, "debug_stepout"); newaction->setToolTip(i18n("Executes the rest of the commands in the current function/file and pauses when it is done (when it reaches a higher level in the backtrace)")); - newaction = new KAction(i18n("&Pause"), SmallIcon("debug_pause"), 0, this, TQT_SLOT(slotDebugPause()), ac, "debug_pause"); + newaction = new TDEAction(i18n("&Pause"), SmallIcon("debug_pause"), 0, this, TQT_SLOT(slotDebugPause()), ac, "debug_pause"); newaction->setToolTip(i18n("Pauses the scripts if it is running or tracing. If a script is currently not being debugged, it will start in paused mode when started")); - newaction = new KAction(i18n("Kill"), SmallIcon("debug_kill"), 0, this, TQT_SLOT(slotDebugKill()), ac, "debug_kill"); + newaction = new TDEAction(i18n("Kill"), SmallIcon("debug_kill"), 0, this, TQT_SLOT(slotDebugKill()), ac, "debug_kill"); newaction->setToolTip(i18n("Kills the currently running script")); - newaction = new KAction(i18n("Start Session"), SmallIcon("debug_connect"), 0, this, TQT_SLOT(slotDebugStartSession()), ac, "debug_connect"); + newaction = new TDEAction(i18n("Start Session"), SmallIcon("debug_connect"), 0, this, TQT_SLOT(slotDebugStartSession()), ac, "debug_connect"); newaction->setToolTip(i18n("Starts the debugger internally (Makes debugging possible)")); - newaction = new KAction(i18n("End Session"), SmallIcon("debug_disconnect"), 0, this, TQT_SLOT(slotDebugEndSession()), ac, "debug_disconnect"); + newaction = new TDEAction(i18n("End Session"), SmallIcon("debug_disconnect"), 0, this, TQT_SLOT(slotDebugEndSession()), ac, "debug_disconnect"); newaction->setToolTip(i18n("Stops the debugger internally (debugging not longer possible)")); // Variables - newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatch"); + newaction = new TDEAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatch"); newaction->setToolTip(i18n("Adds a variable to the watch list")); - newaction = new KAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatchdialog"); + newaction = new TDEAction(i18n("Watch Variable"), SmallIcon("math_brace"), 0, this, TQT_SLOT(slotAddWatch()), ac, "debug_addwatchdialog"); newaction->setToolTip(i18n("Adds a variable to the watch list")); - newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_set"); + newaction = new TDEAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_set"); newaction->setToolTip(i18n("Changes the value of a variable")); - newaction = new KAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_setdialog"); + newaction = new TDEAction(i18n("Set Value of Variable"), SmallIcon("edit"), 0, this, TQT_SLOT(slotVariableSet()), ac, "debug_variable_setdialog"); newaction->setToolTip(i18n("Changes the value of a variable")); - newaction = new KAction(i18n("Open Profiler Output"), SmallIcon("launch"), 0, this, TQT_SLOT(slotProfilerOpen()), ac, "debug_profiler_open"); + newaction = new TDEAction(i18n("Open Profiler Output"), SmallIcon("launch"), 0, this, TQT_SLOT(slotProfilerOpen()), ac, "debug_profiler_open"); newaction->setToolTip(i18n("Opens the profiler output file")); enableAction("*", false); @@ -340,7 +340,7 @@ void DebuggerManager::enableAction(const TQString& action, bool enable) else { // The action may or may not exist, depending on capabilities of the debugger plugin - KActionCollection *ac = quantaApp->actionCollection(); + TDEActionCollection *ac = quantaApp->actionCollection(); if(ac && ac->action(action.ascii())) ac->action(action.ascii())->setEnabled(enable); } diff --git a/quanta/components/debugger/debuggervariable.h b/quanta/components/debugger/debuggervariable.h index 50d28136..af78fde6 100644 --- a/quanta/components/debugger/debuggervariable.h +++ b/quanta/components/debugger/debuggervariable.h @@ -80,8 +80,8 @@ class DebuggerVariable virtual void touch() { m_touched = true;}; virtual bool touched() const { return m_touched;}; - virtual void setItem(KListViewItem* item) { m_item = item;}; - virtual KListViewItem* item() const{ return m_item;}; + virtual void setItem(TDEListViewItem* item) { m_item = item;}; + virtual TDEListViewItem* item() const{ return m_item;}; virtual void copy(DebuggerVariable* v, bool copychldren = true); virtual void append(DebuggerVariable* v); @@ -98,6 +98,6 @@ class DebuggerVariable int m_type; long m_touched; - KListViewItem* m_item; + TDEListViewItem* m_item; }; #endif diff --git a/quanta/components/debugger/variableslistview.cpp b/quanta/components/debugger/variableslistview.cpp index 40df91c0..04eb90a1 100644 --- a/quanta/components/debugger/variableslistview.cpp +++ b/quanta/components/debugger/variableslistview.cpp @@ -48,7 +48,7 @@ namespace VariablesListViewColumns } VariablesListView::VariablesListView(TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { // If you change here, change the VariablesListViewColumns enums above addColumn(i18n("Name")); @@ -59,7 +59,7 @@ VariablesListView::VariablesListView(TQWidget *parent, const char *name) setRootIsDecorated(true); setSorting(-1); // No sorting - m_variablePopup = new KPopupMenu(this); + m_variablePopup = new TDEPopupMenu(this); m_variablePopup->insertItem(SmallIcon("editdelete"), i18n("&Remove"), this, TQT_SLOT(slotRemoveSelected()), 0, removeWatch); if(quantaApp->debugger()->client()->supports(DebuggerClientCapabilities::VariableSetValue)) @@ -69,7 +69,7 @@ VariablesListView::VariablesListView(TQWidget *parent, const char *name) m_variablePopup->insertItem(SmallIcon("editcopy"), i18n("&Copy to Clipboard"), this, TQT_SLOT(slotVariableCopyToClipboard()), 0, copyValue); - connect(this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ), this, TQT_SLOT(slotVariableContextMenu(KListView *, TQListViewItem *, const TQPoint &))); + connect(this, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), this, TQT_SLOT(slotVariableContextMenu(TDEListView *, TQListViewItem *, const TQPoint &))); } @@ -144,7 +144,7 @@ void VariablesListView::addVariable(DebuggerVariable* variable) DebuggerVariable *newvar = new DebuggerVariable(variable); m_variablesList.append(newvar); - KListViewItem * item = new KListViewItem(this); + TDEListViewItem * item = new TDEListViewItem(this); insertItem(item); newvar->setItem(item); replaceVariable(newvar, variable); @@ -152,13 +152,13 @@ void VariablesListView::addVariable(DebuggerVariable* variable) void VariablesListView::clear() { - KListView::clear(); + TDEListView::clear(); m_variablesList.clear(); } void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariable* newvar) { - KListViewItem * item; + TDEListViewItem * item; // Remove children that doesen't exist anymore TQPtrList<DebuggerVariable> oldlist = oldvar->values(); @@ -196,7 +196,7 @@ void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariab if(!found) { DebuggerVariable* child = new DebuggerVariable(); - item = new KListViewItem(oldvar->item()); + item = new TDEListViewItem(oldvar->item()); child->setItem(item); replaceVariable( child, newchild); oldvar->append(child); @@ -219,7 +219,7 @@ void VariablesListView::replaceVariable(DebuggerVariable* oldvar, DebuggerVariab } -void VariablesListView::slotVariableContextMenu(KListView *, TQListViewItem *, const TQPoint& point) +void VariablesListView::slotVariableContextMenu(TDEListView *, TQListViewItem *, const TQPoint& point) { if(!selectedItem()) return; diff --git a/quanta/components/debugger/variableslistview.h b/quanta/components/debugger/variableslistview.h index af3db373..de837241 100644 --- a/quanta/components/debugger/variableslistview.h +++ b/quanta/components/debugger/variableslistview.h @@ -25,7 +25,7 @@ class DebuggerVariable; -class VariablesListView : public KListView +class VariablesListView : public TDEListView { Q_OBJECT @@ -55,7 +55,7 @@ class VariablesListView : public KListView void slotVariableSetValue(); void slotVariableDump(); void slotVariableCopyToClipboard(); - void slotVariableContextMenu(KListView *list, TQListViewItem * item, const TQPoint& point); + void slotVariableContextMenu(TDEListView *list, TQListViewItem * item, const TQPoint& point); signals: void valueChanged(DebuggerVariable*); @@ -66,7 +66,7 @@ class VariablesListView : public KListView void replaceVariable(DebuggerVariable* oldvar, DebuggerVariable* newvar); TQPtrList<DebuggerVariable> m_variablesList; - KPopupMenu *m_variablePopup; + TDEPopupMenu *m_variablePopup; }; #endif |