| 37 | using namespace GammaRay; |
| 38 | |
| 39 | ToolManager::ToolManager(QObject *parent) |
| 40 | : ToolManagerInterface(parent) |
| 41 | , m_toolPluginManager(new ToolPluginManager(this)) |
| 42 | { |
| 43 | // built-in tools |
| 44 | addToolFactory(new ObjectInspectorFactory(this)); |
| 45 | addToolFactory(new ResourceBrowserFactory(this)); |
| 46 | addToolFactory(new MetaObjectBrowserFactory(this)); |
| 47 | addToolFactory(new MetaTypeBrowserFactory(this)); |
| 48 | addToolFactory(new MessageHandlerFactory(this)); |
| 49 | addToolFactory(new ProblemReporterFactory(this)); |
| 50 | |
| 51 | Q_FOREACH (ToolFactory *factory, m_toolPluginManager->plugins()) |
| 52 | addToolFactory(factory); |
| 53 | } |
| 54 | |
| 55 | void ToolManager::selectObject(const ObjectId &id, const QString &toolId) |
| 56 | { |