Line data Source code
1 : /*
2 : * SPDX-License-Identifier: GPL-3.0-only
3 : * MuseScore-Studio-CLA-applies
4 : *
5 : * MuseScore Studio
6 : * Music Composition & Notation
7 : *
8 : * Copyright (C) 2021 MuseScore Limited and others
9 : *
10 : * This program is free software: you can redistribute it and/or modify
11 : * it under the terms of the GNU General Public License version 3 as
12 : * published by the Free Software Foundation.
13 : *
14 : * This program is distributed in the hope that it will be useful,
15 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 : * GNU General Public License for more details.
18 : *
19 : * You should have received a copy of the GNU General Public License
20 : * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 : */
22 : #pragma once
23 :
24 : #include "modularity/imoduleinterface.h"
25 : #include "async/channel.h"
26 : #include "io/path.h"
27 :
28 : namespace mu::iex::musicxml {
29 : class IMusicXmlConfiguration : MODULE_GLOBAL_INTERFACE
30 : {
31 16503 : INTERFACE_ID(IMusicXmlConfiguration)
32 :
33 : public:
34 1 : virtual ~IMusicXmlConfiguration() = default;
35 :
36 : virtual bool importBreaks() const = 0;
37 : virtual void setImportBreaks(bool value) = 0;
38 : virtual muse::async::Channel<bool> importBreaksChanged() const = 0;
39 :
40 : virtual bool importLayout() const = 0;
41 : virtual void setImportLayout(bool value) = 0;
42 : virtual muse::async::Channel<bool> importLayoutChanged() const = 0;
43 :
44 : virtual bool exportLayout() const = 0;
45 : virtual void setExportLayout(bool value) = 0;
46 :
47 : virtual bool exportMu3Compat() const = 0;
48 : virtual void setExportMu3Compat(bool value) = 0;
49 :
50 : enum class MusicXmlExportBreaksType {
51 : All, Manual, No
52 : };
53 :
54 : virtual MusicXmlExportBreaksType exportBreaksType() const = 0;
55 : virtual void setExportBreaksType(MusicXmlExportBreaksType breaksType) = 0;
56 :
57 : virtual bool exportInvisibleElements() const = 0;
58 : virtual void setExportInvisibleElements(bool value) = 0;
59 :
60 : virtual bool needUseDefaultFont() const = 0;
61 : virtual void setNeedUseDefaultFont(bool value) = 0;
62 : virtual muse::async::Channel<bool> needUseDefaultFontChanged() const = 0;
63 : virtual void setNeedUseDefaultFontOverride(std::optional<bool> value) = 0;
64 :
65 : virtual bool needAskAboutApplyingNewStyle() const = 0;
66 : virtual void setNeedAskAboutApplyingNewStyle(bool value) = 0;
67 : virtual muse::async::Channel<bool> needAskAboutApplyingNewStyleChanged() const = 0;
68 :
69 : virtual bool inferTextType() const = 0;
70 : virtual void setInferTextType(bool value) = 0;
71 : virtual muse::async::Channel<bool> inferTextTypeChanged() const = 0;
72 : virtual void setInferTextTypeOverride(std::optional<bool> value) = 0;
73 : };
74 : }
|