aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/scxmleditorplugin.cpp
blob: 5502ab1e1e2e55054ae489e80ba1369d1df98b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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

#include "scxmleditorplugin.h"

#include "scxmleditorfactory.h"

#include <coreplugin/designmode.h>

using namespace Core;

namespace ScxmlEditor {
namespace Internal {

class ScxmlEditorPluginPrivate
{
public:
    ScxmlEditorFactory editorFactory;
};

ScxmlEditorPlugin::~ScxmlEditorPlugin()
{
    delete d;
}

bool ScxmlEditorPlugin::initialize(const QStringList &arguments, QString *errorString)
{
    Q_UNUSED(arguments)
    Q_UNUSED(errorString)

    d = new ScxmlEditorPluginPrivate;

    return true;
}

void ScxmlEditorPlugin::extensionsInitialized()
{
    DesignMode::setDesignModeIsRequired();
}

} // Internal
} // ScxmlEditor