Valgrind: Clean up tools interface a bit

Mainly move tool specific code from plugin.cpp to *tool.cpp.
Clean up includes etc.

Change-Id: Ic968ead9d93099c59abe9f99a9db529305160f95
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-03-02 12:05:30 +01:00
parent c0b9565de7
commit 7a5226aa47
10 changed files with 451 additions and 564 deletions

View File

@@ -28,8 +28,6 @@
#include <QObject>
namespace ProjectExplorer { class RunConfiguration; }
namespace Valgrind {
namespace Internal {
@@ -41,27 +39,10 @@ const char CallgrindCalleesDockId[] = "Callgrind.Callees.Dock";
const char CallgrindFlatDockId[] = "Callgrind.Flat.Dock";
const char CallgrindVisualizationDockId[] = "Callgrind.Visualization.Dock";
class ValgrindRunControl;
const char CALLGRIND_RUN_MODE[] = "CallgrindTool.CallgrindRunMode";
class CallgrindToolPrivate;
class CallgrindTool : public QObject
{
Q_OBJECT
public:
CallgrindTool(QObject *parent);
~CallgrindTool();
ValgrindRunControl *createRunControl(ProjectExplorer::RunConfiguration *runConfiguration);
QWidget *createWidgets();
void handleShowCostsOfFunction();
private:
CallgrindToolPrivate *d;
};
void initCallgrindTool(QObject *parent);
void destroyCallgrindTool();
} // namespace Internal
} // namespace Valgrind