2009-12-11 14:56:04 +10:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2010-03-05 11:25:49 +01:00
|
|
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
2009-12-11 14:56:04 +10:00
|
|
|
**
|
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
|
**
|
|
|
|
|
** Commercial Usage
|
|
|
|
|
**
|
|
|
|
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
|
|
|
|
** accordance with the Qt Commercial License Agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Nokia.
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** If you are unsure which license is appropriate for your use, please
|
|
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
|
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
2010-06-28 17:46:42 +02:00
|
|
|
#ifndef QMLJSINSPECTORPLUGIN_H
|
|
|
|
|
#define QMLJSINSPECTORPLUGIN_H
|
2009-12-11 14:56:04 +10:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
2010-06-29 15:52:40 +02:00
|
|
|
#include <qmljs/qmljsmodelmanagerinterface.h>
|
2010-08-18 13:54:12 +02:00
|
|
|
#include <debugger/debuggerconstants.h>
|
2009-12-11 14:56:04 +10:00
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
#include <QtCore/QPointer>
|
2010-02-09 20:44:40 +01:00
|
|
|
#include <QtCore/QTimer>
|
2009-12-11 14:56:04 +10:00
|
|
|
|
2010-06-28 17:15:45 +02:00
|
|
|
QT_FORWARD_DECLARE_CLASS(QStringList)
|
2009-12-11 14:56:04 +10:00
|
|
|
|
2010-02-17 11:56:12 +01:00
|
|
|
namespace Core {
|
|
|
|
|
class IMode;
|
|
|
|
|
}
|
2009-12-11 14:56:04 +10:00
|
|
|
|
2010-02-09 20:44:40 +01:00
|
|
|
namespace ProjectExplorer {
|
|
|
|
|
class Project;
|
|
|
|
|
}
|
2009-12-11 14:56:04 +10:00
|
|
|
|
2010-06-28 17:46:42 +02:00
|
|
|
namespace QmlJSInspector {
|
2010-06-28 17:15:45 +02:00
|
|
|
namespace Internal {
|
2010-02-09 20:44:40 +01:00
|
|
|
|
2010-06-29 12:46:55 +02:00
|
|
|
class ClientProxy;
|
2010-08-13 14:18:10 +02:00
|
|
|
class InspectorUi;
|
2010-06-29 12:41:26 +02:00
|
|
|
|
|
|
|
|
class InspectorPlugin : public ExtensionSystem::IPlugin
|
2009-12-11 14:56:04 +10:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2010-06-29 12:41:26 +02:00
|
|
|
InspectorPlugin();
|
|
|
|
|
virtual ~InspectorPlugin();
|
2009-12-11 14:56:04 +10:00
|
|
|
|
2010-06-29 12:41:26 +02:00
|
|
|
static InspectorPlugin *instance();
|
2010-06-29 12:31:07 +02:00
|
|
|
|
2010-06-29 15:52:40 +02:00
|
|
|
QmlJS::ModelManagerInterface *modelManager() const;
|
2010-08-13 14:18:10 +02:00
|
|
|
InspectorUi *inspector() const;
|
2010-06-29 12:46:55 +02:00
|
|
|
|
2010-06-29 12:31:07 +02:00
|
|
|
// ExtensionSystem::IPlugin interface
|
2009-12-11 14:56:04 +10:00
|
|
|
virtual bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
|
virtual void extensionsInitialized();
|
2010-07-14 15:38:16 +02:00
|
|
|
virtual ExtensionSystem::IPlugin::ShutdownFlag aboutToShutdown();
|
2009-12-11 14:56:04 +10:00
|
|
|
|
|
|
|
|
private slots:
|
2010-08-13 14:18:10 +02:00
|
|
|
void objectAdded(QObject *object);
|
|
|
|
|
void aboutToRemoveObject(QObject *obj);
|
2010-10-04 13:18:40 +02:00
|
|
|
void clientProxyConnected();
|
2010-06-29 12:41:26 +02:00
|
|
|
|
2010-07-08 11:34:51 +02:00
|
|
|
private:
|
|
|
|
|
void createActions();
|
|
|
|
|
|
2010-06-29 12:41:26 +02:00
|
|
|
private:
|
2010-08-11 16:11:35 +02:00
|
|
|
ClientProxy *m_clientProxy;
|
2010-08-13 14:18:10 +02:00
|
|
|
InspectorUi *m_inspectorUi;
|
2009-12-11 14:56:04 +10:00
|
|
|
};
|
|
|
|
|
|
2010-06-28 17:15:45 +02:00
|
|
|
} // end of namespace Internal
|
2010-06-28 17:46:42 +02:00
|
|
|
} // end of QmlJSInspector
|
2009-12-11 14:56:04 +10:00
|
|
|
|
|
|
|
|
#endif // QMLINSPECTORPLUGIN_H
|