forked from qt-creator/qt-creator
EffektComposer: Move plugin class definition to .cpp
And clean up a bit. Change-Id: Ib3d69555ed3e05741570c9aa386e6b9c8ea449fa Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -6,7 +6,7 @@ add_qtc_plugin(EffectComposer
|
|||||||
Qt::Core Qt::CorePrivate Qt::Widgets Qt::Qml Qt::QmlPrivate Qt::Quick
|
Qt::Core Qt::CorePrivate Qt::Widgets Qt::Qml Qt::QmlPrivate Qt::Quick
|
||||||
QtCreator::Utils
|
QtCreator::Utils
|
||||||
SOURCES
|
SOURCES
|
||||||
effectcomposerplugin.cpp effectcomposerplugin.h
|
effectcomposerplugin.cpp
|
||||||
effectcomposerwidget.cpp effectcomposerwidget.h
|
effectcomposerwidget.cpp effectcomposerwidget.h
|
||||||
effectcomposerview.cpp effectcomposerview.h
|
effectcomposerview.cpp effectcomposerview.h
|
||||||
effectcomposermodel.cpp effectcomposermodel.h
|
effectcomposermodel.cpp effectcomposermodel.h
|
||||||
|
@@ -1,29 +1,12 @@
|
|||||||
// Copyright (C) 2023 The Qt Company Ltd.
|
// Copyright (C) 2023 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "effectcomposerplugin.h"
|
#include <effectcomposerview.h>
|
||||||
|
|
||||||
#include "effectcomposerview.h"
|
|
||||||
|
|
||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
|
||||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
|
||||||
#include <coreplugin/coreconstants.h>
|
|
||||||
#include <coreplugin/icore.h>
|
|
||||||
#include <coreplugin/imode.h>
|
|
||||||
#include <coreplugin/modemanager.h>
|
|
||||||
#include <coreplugin/messagemanager.h>
|
|
||||||
#include <coreplugin/externaltool.h>
|
|
||||||
#include <coreplugin/externaltoolmanager.h>
|
|
||||||
|
|
||||||
#include <componentcore_constants.h>
|
|
||||||
#include <designeractionmanager.h>
|
|
||||||
#include <viewmanager.h>
|
|
||||||
#include <qmldesigner/dynamiclicensecheck.h>
|
|
||||||
#include <qmldesignerplugin.h>
|
#include <qmldesignerplugin.h>
|
||||||
#include <modelnodeoperations.h>
|
|
||||||
|
|
||||||
#include <QJsonDocument>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include <QMap>
|
|
||||||
|
|
||||||
namespace EffectComposer {
|
namespace EffectComposer {
|
||||||
|
|
||||||
@@ -32,7 +15,16 @@ static bool enableEffectComposer()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EffectComposerPlugin::delayedInitialize()
|
class EffectComposerPlugin : public ExtensionSystem::IPlugin
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "EffectComposer.json")
|
||||||
|
|
||||||
|
public:
|
||||||
|
EffectComposerPlugin() {}
|
||||||
|
~EffectComposerPlugin() override {}
|
||||||
|
|
||||||
|
bool delayedInitialize() override
|
||||||
{
|
{
|
||||||
if (m_delayedInitialized)
|
if (m_delayedInitialized)
|
||||||
return true;
|
return true;
|
||||||
@@ -50,4 +42,10 @@ bool EffectComposerPlugin::delayedInitialize()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool m_delayedInitialized = false;
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace EffectComposer
|
} // namespace EffectComposer
|
||||||
|
|
||||||
|
#include "effectcomposerplugin.moc"
|
||||||
|
@@ -1,32 +0,0 @@
|
|||||||
// Copyright (C) 2023 The Qt Company Ltd.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
|
||||||
#include <utils/process.h>
|
|
||||||
|
|
||||||
namespace Core {
|
|
||||||
class ActionContainer;
|
|
||||||
class ExternalTool;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace EffectComposer {
|
|
||||||
|
|
||||||
class EffectComposerPlugin : public ExtensionSystem::IPlugin
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "EffectComposer.json")
|
|
||||||
|
|
||||||
public:
|
|
||||||
EffectComposerPlugin() {}
|
|
||||||
~EffectComposerPlugin() override {}
|
|
||||||
|
|
||||||
bool delayedInitialize() override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_delayedInitialized = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace EffectComposer
|
|
||||||
|
|
Reference in New Issue
Block a user