Commit 688f5d59 authored by hjk's avatar hjk
Browse files

debugger: more interface cleanup

Looks like DebuggerPlugin::mainWindow() was used after all.
parent 3282c1af
...@@ -3340,6 +3340,11 @@ bool DebuggerPlugin::isActiveDebugLanguage(int language) ...@@ -3340,6 +3340,11 @@ bool DebuggerPlugin::isActiveDebugLanguage(int language)
return theDebuggerCore->isActiveDebugLanguage(language); return theDebuggerCore->isActiveDebugLanguage(language);
} }
DebuggerMainWindow *DebuggerPlugin::mainWindow()
{
return theDebuggerCore->m_mainWindow;
}
QWidget *DebugMode::widget() QWidget *DebugMode::widget()
{ {
if (!m_widget) { if (!m_widget) {
......
...@@ -43,6 +43,7 @@ class RunControl; ...@@ -43,6 +43,7 @@ class RunControl;
namespace Debugger { namespace Debugger {
class DebuggerMainWindow;
class DebuggerRunControl; class DebuggerRunControl;
class DebuggerStartParameters; class DebuggerStartParameters;
...@@ -59,11 +60,15 @@ public: ...@@ -59,11 +60,15 @@ public:
DebuggerPlugin(); DebuggerPlugin();
~DebuggerPlugin(); ~DebuggerPlugin();
// Used by Maemo debugging support.
static DebuggerRunControl *createDebugger(const DebuggerStartParameters &sp, static DebuggerRunControl *createDebugger(const DebuggerStartParameters &sp,
ProjectExplorer::RunConfiguration *rc = 0); ProjectExplorer::RunConfiguration *rc = 0);
static void startDebugger(ProjectExplorer::RunControl *runControl); static void startDebugger(ProjectExplorer::RunControl *runControl);
static void displayDebugger(ProjectExplorer::RunControl *runControl); static void displayDebugger(ProjectExplorer::RunControl *runControl);
// Used by QmlJSInspector.
static bool isActiveDebugLanguage(int language); static bool isActiveDebugLanguage(int language);
static DebuggerMainWindow *mainWindow();
private: private:
// IPlugin implementation. // IPlugin implementation.
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
using namespace Core; using namespace Core;
using namespace Debugger; using namespace Debugger;
using namespace Debugger::Internal;
using namespace ProjectExplorer; using namespace ProjectExplorer;
namespace Qt4ProjectManager { namespace Qt4ProjectManager {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment