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