diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/components/debugger/debuggermanager.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
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
Diffstat (limited to 'quanta/components/debugger/debuggermanager.h')
-rw-r--r-- | quanta/components/debugger/debuggermanager.h | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/quanta/components/debugger/debuggermanager.h b/quanta/components/debugger/debuggermanager.h new file mode 100644 index 00000000..f7584bdf --- /dev/null +++ b/quanta/components/debugger/debuggermanager.h @@ -0,0 +1,128 @@ +/*************************************************************************** + phpdebuggerinterface.h + ------------------- + begin : 2004-03-12 + copyright : (C) 2004 Linus McCabe <linus@mccabe.nu> + Based on work by Mathieu Kooiman + ***************************************************************************/ + +/**************************************************************************** + * * + * 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 PHPDEBUGGERINTERFACE_H +#define PHPDEBUGGERINTERFACE_H + +#include <qobject.h> +#include <qstring.h> + +class DebuggerClient; +class QuantaDebuggerInterface; +class DebuggerBreakpointList; +class DebuggerUI; +class DebuggerVariable; +class DebuggerBreakpoint; +class PathMapper; +class Document; + +class DebuggerManager : public QObject +{ + Q_OBJECT + private: + // client + DebuggerClient *m_client; + QuantaDebuggerInterface * m_interface; + DebuggerBreakpointList *m_breakpointList; + DebuggerUI * m_debuggerui; + PathMapper * m_pathmapper; + + // Internal help functions + void initActions(); + void initClientActions(); + void saveProperties(); + + void connectBreakpointSignals(Document*); + void disconnectBreakpointSignals(Document*); + + QString m_currentFile; + long m_currentLine; + + public: + DebuggerManager(QObject *myparent); + ~DebuggerManager(); + + // Access to memebers + DebuggerUI * UI() { return m_debuggerui; }; + DebuggerClient * client() { return m_client; }; + PathMapper * Mapper() { return m_pathmapper; }; + + // Breakpoints + void haveBreakpoint (const QString& file, int line); + void havenoBreakpoint (const QString& file, int line); + void refreshBreakpoints(); +// DebuggerBreakpoint *newDebuggerBreakpoint(); + DebuggerBreakpoint * findDebuggerBreakpoint(const QString& key); + void updateBreakpointKey(const DebuggerBreakpoint &bp, const QString& newkey); + + // Public help functions + bool showStatus(const QString& message, bool log); + bool setActiveLine (const QString& file, int line); + void setMark(const QString& filename, long line, bool set, int mark); + + void enableAction(const QString& action, bool enable); + void fileOpened(const QString& file); + + bool hasClient() { return m_client != 0; }; + + public slots: + + // Execution control slots + void slotDebugRequest(); + void slotDebugRun(); + void slotDebugTrace(); + void slotDebugSkip(); + void slotDebugStepOver(); + void slotDebugStepInto(); + void slotDebugStepOut(); + void slotDebugPause(); + void slotDebugKill(); + + // Breakpoint + void toggleBreakpoint(); + void clearBreakpoints(); + void slotConditionalBreakpoint(); + void slotRemoveBreakpoint(DebuggerBreakpoint* bp); + + // Watches + void slotAddWatch(); + void slotRemoveVariable(DebuggerVariable* var); + void slotVariableSet(); + + // Connection related slots + void slotDebugStartSession(); + void slotDebugEndSession(); + + // Profiler + void slotProfilerOpen(); + + // Initiation + void slotNewProjectLoaded(const QString &, const KURL &, const KURL &); + + // Event handling + void slotHandleEvent(const QString &, const QString &, const QString &); + + private slots: + void slotBreakpointMarked(Document*, int); + void slotBreakpointUnmarked(Document*, int); + + signals: + void hideSplash(); +}; + +#endif + |