2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2009-04-22 15:21:04 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2009-04-22 15:21:04 +02:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
2010-04-23 13:19:28 +02:00
|
|
|
|
2014-02-11 21:55:42 +02:00
|
|
|
namespace Utils { class JsonSchemaManager; }
|
2012-02-07 15:30:33 +01:00
|
|
|
|
2010-01-15 17:20:03 +01:00
|
|
|
namespace QmlJSEditor {
|
2018-02-21 11:47:01 +01:00
|
|
|
class QuickToolBar;
|
2009-04-22 15:21:04 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2011-04-15 16:19:23 +02:00
|
|
|
class QmlJSQuickFixAssistProvider;
|
2009-04-22 15:21:04 +02:00
|
|
|
|
2020-01-29 04:15:25 +03:00
|
|
|
class QmlJSEditorPlugin final : public ExtensionSystem::IPlugin
|
2009-04-22 15:21:04 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "QmlJSEditor.json")
|
2009-04-22 15:21:04 +02:00
|
|
|
|
|
|
|
|
public:
|
2010-01-15 17:20:03 +01:00
|
|
|
QmlJSEditorPlugin();
|
2018-02-15 09:50:02 +01:00
|
|
|
~QmlJSEditorPlugin() final;
|
2009-04-22 15:21:04 +02:00
|
|
|
|
2018-02-15 09:50:02 +01:00
|
|
|
static QmlJSQuickFixAssistProvider *quickFixAssistProvider();
|
|
|
|
|
static Utils::JsonSchemaManager *jsonManager();
|
2018-02-21 11:47:01 +01:00
|
|
|
static QuickToolBar *quickToolBar();
|
2010-02-08 12:50:10 +01:00
|
|
|
|
2016-06-27 22:25:11 +03:00
|
|
|
private:
|
2018-02-15 09:50:02 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
|
|
|
|
void extensionsInitialized() final;
|
|
|
|
|
ShutdownFlag aboutToShutdown() final;
|
2011-11-07 15:14:43 +01:00
|
|
|
|
2018-02-15 09:50:02 +01:00
|
|
|
class QmlJSEditorPluginPrivate *d = nullptr;
|
2009-04-22 15:21:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2010-01-15 17:20:03 +01:00
|
|
|
} // namespace QmlJSEditor
|