summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/valgrindplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-08-02 11:41:02 +0200
committerhjk <hjk121@nokiamail.com>2013-08-05 09:50:28 +0200
commit1ec636cbd642e1cb43b2273068000232a8839fe6 (patch)
tree90d8ab0f6b38f7b28131ab5283f13440eefc04d5 /src/plugins/valgrind/valgrindplugin.cpp
parent92e8f8e59bd312a9da8252bc0eb95ab7d44b45ef (diff)
downloadqt-creator-1ec636cbd642e1cb43b2273068000232a8839fe6.tar.gz
Analyzer: Move common startTool implementations to IAnalyzerTool base
Change-Id: I963cb2d025a10cee75b9a9648531c4daeb1b70aa Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'src/plugins/valgrind/valgrindplugin.cpp')
-rw-r--r--src/plugins/valgrind/valgrindplugin.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/plugins/valgrind/valgrindplugin.cpp b/src/plugins/valgrind/valgrindplugin.cpp
index bef11e453b..f62d963eca 100644
--- a/src/plugins/valgrind/valgrindplugin.cpp
+++ b/src/plugins/valgrind/valgrindplugin.cpp
@@ -34,62 +34,16 @@
#include "memchecktool.h"
#include "valgrindruncontrolfactory.h"
-#include <analyzerbase/analyzerconstants.h>
#include <analyzerbase/analyzermanager.h>
-#include <analyzerbase/analyzerrunconfigwidget.h>
-#include <analyzerbase/analyzerruncontrol.h>
-#include <analyzerbase/analyzerstartparameters.h>
-#include <analyzerbase/startremotedialog.h>
-
-#include <projectexplorer/localapplicationrunconfiguration.h>
-#include <projectexplorer/projectexplorer.h>
-
#include <utils/hostosinfo.h>
-#include <utils/qtcassert.h>
-#include <QDebug>
-#include <QStringList>
#include <QtPlugin>
-#include <QAction>
using namespace Analyzer;
-using namespace ProjectExplorer;
-
namespace Valgrind {
namespace Internal {
-static void startRemoteTool(IAnalyzerTool *tool)
-{
- Q_UNUSED(tool);
- StartRemoteDialog dlg;
- if (dlg.exec() != QDialog::Accepted)
- return;
-
- AnalyzerStartParameters sp;
- sp.startMode = StartRemote;
- sp.connParams = dlg.sshParams();
- sp.debuggee = dlg.executable();
- sp.debuggeeArgs = dlg.arguments();
- sp.displayName = dlg.executable();
- sp.workingDirectory = dlg.workingDirectory();
-
- //AnalyzerRunControl *rc = new AnalyzerRunControl(tool, sp, 0);
- AnalyzerRunControl *rc = tool->createRunControl(sp, 0);
- //m_currentRunControl = rc;
- QObject::connect(AnalyzerManager::stopAction(), SIGNAL(triggered()), rc, SLOT(stopIt()));
-
- ProjectExplorerPlugin::instance()->startRunControl(rc, tool->runMode());
-}
-
-void ValgrindPlugin::startValgrindTool(IAnalyzerTool *tool, StartMode mode)
-{
- if (mode == StartLocal)
- AnalyzerManager::startLocalTool(tool);
- if (mode == StartRemote)
- startRemoteTool(tool);
-}
-
bool ValgrindPlugin::initialize(const QStringList &, QString *)
{
StartModes modes;