From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/components/debugger/debuggerui.h | 90 +++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 quanta/components/debugger/debuggerui.h (limited to 'quanta/components/debugger/debuggerui.h') diff --git a/quanta/components/debugger/debuggerui.h b/quanta/components/debugger/debuggerui.h new file mode 100644 index 00000000..a86e4706 --- /dev/null +++ b/quanta/components/debugger/debuggerui.h @@ -0,0 +1,90 @@ +/*************************************************************************** + debuggerui.h + ------------------------ + begin : 2004-04-04 + copyright : (C) 2004 Thiago Silva + + ***************************************************************************/ + +/**************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef DEBUGGERUI_H +#define DEBUGGERUI_H + +#include +#include +#include +#include "backtracelistview.h" + +class VariablesListView; +class DebuggerBreakpointView; +class BacktraceListview; +class DebuggerBreakpoint; +class DebuggerVariable; +class WHTMLPart; +class KURL; + +class DebuggerUI : public QObject +{ + Q_OBJECT + + public: + enum DebuggerStatus + { + NoSession = 0, + AwaitingConnection, + Connected, + Paused, + Running, + Tracing, + HaltedOnError, + HaltedOnBreakpoint + }; + + DebuggerUI(QObject *parent = 0, const char *name = 0); + ~DebuggerUI(); + + // Watches + void addVariable(DebuggerVariable* var); + void showBreakpoint(const DebuggerBreakpoint& bp); + void deleteBreakpoint(const DebuggerBreakpoint& bp); + void parsePHPVariables(const QString &); + void sendRequest(const KURL &url); + VariablesListView* watches() { return m_variablesListView; }; + + void showMenu(); + void hideMenu(); + + void backtraceClear(); + void backtraceShow(long level, BacktraceType type, const QString &filename, long line, const QString& func); + + private: + VariablesListView* m_variablesListView; + KMdiToolViewAccessor* m_variableListViewTVA; + KMdiToolViewAccessor* m_previewTVA; + + DebuggerBreakpointView* m_debuggerBreakpointView; + KMdiToolViewAccessor* m_debuggerBreakpointViewTVA; + + BacktraceListview* m_backtraceListview; + KMdiToolViewAccessor* m_backtraceListviewTVA; + + int m_debuggerMenuID; + + WHTMLPart *m_preview; + + public slots: + // Status indication + void slotStatus(DebuggerUI::DebuggerStatus status); + +}; + +#endif -- cgit v1.2.1