2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2016-09-15 17:55:28 +02:00
|
|
|
|
|
|
|
|
#include "scxmleditorplugin.h"
|
2020-02-06 08:38:54 +01:00
|
|
|
|
2016-09-15 17:55:28 +02:00
|
|
|
#include "scxmleditorfactory.h"
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/designmode.h>
|
|
|
|
|
|
|
|
|
|
using namespace Core;
|
|
|
|
|
|
2018-02-08 09:42:38 +01:00
|
|
|
namespace ScxmlEditor {
|
|
|
|
|
namespace Internal {
|
2016-09-15 17:55:28 +02:00
|
|
|
|
2020-02-06 08:38:54 +01:00
|
|
|
class ScxmlEditorPluginPrivate
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ScxmlEditorFactory editorFactory;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ScxmlEditorPlugin::~ScxmlEditorPlugin()
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-15 17:55:28 +02:00
|
|
|
bool ScxmlEditorPlugin::initialize(const QStringList &arguments, QString *errorString)
|
|
|
|
|
{
|
|
|
|
|
Q_UNUSED(arguments)
|
|
|
|
|
Q_UNUSED(errorString)
|
|
|
|
|
|
2020-02-06 08:38:54 +01:00
|
|
|
d = new ScxmlEditorPluginPrivate;
|
2016-09-15 17:55:28 +02:00
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ScxmlEditorPlugin::extensionsInitialized()
|
|
|
|
|
{
|
2018-01-23 09:09:46 +01:00
|
|
|
DesignMode::setDesignModeIsRequired();
|
2016-09-15 17:55:28 +02:00
|
|
|
}
|
|
|
|
|
|
2018-02-08 09:42:38 +01:00
|
|
|
} // Internal
|
|
|
|
|
} // ScxmlEditor
|