Changed QML Inspector from a separate global mode to a plugin.

The new QML Inspector depends on DebuggerPlugin. Also added a dropdown menu into
the debugger toolbar from which the user can select the used debugging
language, e.g. C++ or QML.
This commit is contained in:
Lasse Holmstedt
2010-02-09 20:44:40 +01:00
parent 70c47334bf
commit 580280af26
25 changed files with 1220 additions and 567 deletions

View File

@@ -33,19 +33,24 @@
#include <QtCore/QObject>
#include <QtCore/QPointer>
QT_BEGIN_NAMESPACE
#include <QtCore/QTimer>
class QStringList;
class QmlInspectorMode;
class InspectorOutputPane;
namespace ProjectExplorer {
class Project;
}
namespace Core
{
namespace Core {
class IMode;
}
namespace Qml {
class QmlInspector;
class InspectorOutputPane;
const int MaxConnectionAttempts = 20;
class QmlInspectorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
@@ -58,14 +63,23 @@ public:
virtual void extensionsInitialized();
virtual void shutdown();
public slots:
void activateDebugger(const QString &langName);
void activateDebuggerForProject(ProjectExplorer::Project *project);
void setDockWidgetArrangement(const QString &activeLanguage);
private slots:
void currentModeChanged(Core::IMode *mode);
void pollInspector();
void prepareDebugger(Core::IMode *mode);
private:
QmlInspectorMode *m_inspectMode;
QmlInspector *m_inspector;
InspectorOutputPane *m_outputPane;
QTimer *m_connectionTimer;
int m_connectionAttempts;
};
}
QT_END_NAMESPACE