analyzer: finish split of tools into "tools-with-modes"

Change-Id: I82b61c07172a33b861a7d6db903ac2516019498b
Reviewed-on: http://codereview.qt.nokia.com/1054
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-07-01 14:19:12 +02:00
committed by hjk
parent d6bf0c3732
commit 2086d94866
18 changed files with 176 additions and 152 deletions

View File

@@ -159,7 +159,7 @@ void QmlProfilerEngine::stop()
void QmlProfilerEngine::stopped()
{
d->m_running = false;
AnalyzerManager::stopTool(tool());
AnalyzerManager::stopTool(tool(), mode());
emit finished();
}

View File

@@ -121,6 +121,7 @@ public:
QmlProfilerTool::QmlProfilerTool(QObject *parent)
: IAnalyzerTool(parent), d(new QmlProfilerToolPrivate(this))
{
setObjectName("QmlProfilerTool");
d->m_client = 0;
d->m_connectionAttempts = 0;
d->m_traceWindow = 0;
@@ -163,7 +164,7 @@ QString QmlProfilerTool::description() const
"applications using QML.");
}
IAnalyzerTool::ToolMode QmlProfilerTool::mode() const
IAnalyzerTool::ToolMode QmlProfilerTool::toolMode() const
{
return AnyMode;
}

View File

@@ -51,7 +51,7 @@ public:
QByteArray id() const;
QString displayName() const;
QString description() const;
ToolMode mode() const;
ToolMode toolMode() const;
void extensionsInitialized() {}
void initializeDockWidgets();

View File

@@ -68,6 +68,7 @@ AnalyzerStartParameters localStartParameters(ProjectExplorer::RunConfiguration *
QmlProjectAnalyzerRunControlFactory::QmlProjectAnalyzerRunControlFactory(QObject *parent)
: IRunControlFactory(parent)
{
setObjectName(QLatin1String("QmlProjectAnalyzerRunControlFactory"));
}
bool QmlProjectAnalyzerRunControlFactory::canRun(RunConfiguration *runConfiguration, const QString &mode) const