forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user