[nostalgia] Rename Studio Plugins to Modules, add support for builtin Studio modules, make existing modules builtin
This commit is contained in:
@@ -3,13 +3,13 @@ set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
add_library(
|
||||
NostalgiaCore-Studio SHARED
|
||||
NostalgiaCore-Studio OBJECT
|
||||
imgconv.cpp
|
||||
import_tilesheet_wizard.cpp
|
||||
module.cpp
|
||||
new_tilesheet_wizard.cpp
|
||||
newpalettewizard.cpp
|
||||
paletteeditor.cpp
|
||||
plugin.cpp
|
||||
tilesheeteditor.cpp
|
||||
util.cpp
|
||||
rsrc.qrc
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 - 2019 gtalent2@gmail.com
|
||||
* Copyright 2016 - 2020 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -12,11 +12,11 @@
|
||||
#include "paletteeditor.hpp"
|
||||
#include "tilesheeteditor.hpp"
|
||||
|
||||
#include "plugin.hpp"
|
||||
#include "module.hpp"
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
QVector<studio::WizardMaker> Plugin::newWizards(const studio::Context *ctx) {
|
||||
QVector<studio::WizardMaker> Module::newWizards(const studio::Context *ctx) {
|
||||
return {
|
||||
{
|
||||
tr("Palette"),
|
||||
@@ -37,7 +37,7 @@ QVector<studio::WizardMaker> Plugin::newWizards(const studio::Context *ctx) {
|
||||
};
|
||||
}
|
||||
|
||||
QVector<studio::WizardMaker> Plugin::importWizards(const studio::Context *ctx) {
|
||||
QVector<studio::WizardMaker> Module::importWizards(const studio::Context *ctx) {
|
||||
return {
|
||||
{
|
||||
tr("Tile Sheet"),
|
||||
@@ -51,7 +51,7 @@ QVector<studio::WizardMaker> Plugin::importWizards(const studio::Context *ctx) {
|
||||
};
|
||||
}
|
||||
|
||||
QVector<studio::EditorMaker> Plugin::editors(const studio::Context *ctx) {
|
||||
QVector<studio::EditorMaker> Module::editors(const studio::Context *ctx) {
|
||||
return {
|
||||
{
|
||||
{"ng"},
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
class Plugin: public QObject, studio::Plugin {
|
||||
class Module: public QObject, public studio::Module {
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "net.drinkingtea.nostalgia.core.studio.Plugin" FILE "core-studio.json")
|
||||
Q_INTERFACES(nostalgia::studio::Plugin)
|
||||
Q_PLUGIN_METADATA(IID "net.drinkingtea.nostalgia.core.studio.Module" FILE "core-studio.json")
|
||||
Q_INTERFACES(nostalgia::studio::Module)
|
||||
|
||||
public:
|
||||
QVector<studio::WizardMaker> newWizards(const studio::Context *ctx) override;
|
||||
Reference in New Issue
Block a user