2021-04-19 16:06:08 +02:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
* MuseScore-CLA-applies
|
|
|
|
*
|
|
|
|
* MuseScore
|
|
|
|
* Music Composition & Notation
|
|
|
|
*
|
|
|
|
* Copyright (C) 2021 MuseScore BVBA and others
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 3 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2021-01-18 08:15:02 +01:00
|
|
|
#ifndef MU_UI_IUIENGINE_H
|
|
|
|
#define MU_UI_IUIENGINE_H
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2020-09-01 17:27:52 +02:00
|
|
|
#include <QString>
|
2020-04-25 18:50:24 +02:00
|
|
|
#include "framework/global/modularity/imoduleexport.h"
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2020-04-25 18:50:24 +02:00
|
|
|
class QQmlEngine;
|
2020-04-25 18:50:24 +02:00
|
|
|
|
2021-01-18 08:15:02 +01:00
|
|
|
namespace mu::ui {
|
2020-04-25 18:50:24 +02:00
|
|
|
class IUiEngine : MODULE_EXPORT_INTERFACE
|
|
|
|
{
|
2021-01-18 08:15:02 +01:00
|
|
|
INTERFACE_ID(IUiEngine)
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2020-04-25 18:50:24 +02:00
|
|
|
public:
|
|
|
|
virtual ~IUiEngine() {}
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2020-04-25 18:50:24 +02:00
|
|
|
virtual void updateTheme() = 0;
|
|
|
|
virtual QQmlEngine* qmlEngine() const = 0;
|
|
|
|
virtual void clearComponentCache() = 0;
|
2020-09-01 17:27:52 +02:00
|
|
|
|
|
|
|
virtual void addSourceImportPath(const QString& path) = 0;
|
2020-04-25 18:50:24 +02:00
|
|
|
};
|
|
|
|
}
|
2020-03-19 12:37:36 +01:00
|
|
|
|
2021-01-18 08:15:02 +01:00
|
|
|
#endif // MU_UI_UIENGINEMODULE_H
|