aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditorfactory.cpp
blob: d11c8e145c488c82a57945cd3584a765e305c8a6 (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
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "modeleditorfactory.h"

#include "actionhandler.h"
#include "modeleditor.h"
#include "modeleditor_constants.h"
#include "modeleditortr.h"

#include <QCoreApplication>

namespace ModelEditor {
namespace Internal {

ModelEditorFactory::ModelEditorFactory(UiController *uiController, ActionHandler *actionHandler)
{
    setId(Constants::MODEL_EDITOR_ID);
    setDisplayName(Tr::tr("Model Editor"));
    addMimeType(Constants::MIME_TYPE_MODEL);
    setEditorCreator([uiController, actionHandler] { return new ModelEditor(uiController, actionHandler); });
}

} // namespace Internal
} // namespace ModelEditor