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-08-27 13:20:03 +02:00
|
|
|
#ifndef MU_NOTATION_INOTATIONCONFIGURATION_H
|
|
|
|
#define MU_NOTATION_INOTATIONCONFIGURATION_H
|
2020-06-16 11:36:39 +02:00
|
|
|
|
|
|
|
#include <QColor>
|
|
|
|
|
|
|
|
#include "modularity/imoduleexport.h"
|
2020-08-27 11:09:44 +02:00
|
|
|
#include "async/channel.h"
|
|
|
|
#include "retval.h"
|
2020-08-27 18:40:26 +02:00
|
|
|
#include "io/path.h"
|
2020-12-26 09:56:40 +01:00
|
|
|
#include "notationtypes.h"
|
2021-01-20 12:31:14 +01:00
|
|
|
#include "global/globaltypes.h"
|
2020-06-16 11:36:39 +02:00
|
|
|
|
2020-11-25 12:44:08 +01:00
|
|
|
namespace mu::notation {
|
2020-06-16 11:36:39 +02:00
|
|
|
class INotationConfiguration : MODULE_EXPORT_INTERFACE
|
|
|
|
{
|
|
|
|
INTERFACE_ID(INotationConfiguration)
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual ~INotationConfiguration() = default;
|
|
|
|
|
2020-08-27 11:09:44 +02:00
|
|
|
virtual QColor backgroundColor() const = 0;
|
2021-03-16 12:46:25 +01:00
|
|
|
virtual void setBackgroundColor(const QColor& color) = 0;
|
|
|
|
|
|
|
|
virtual io::path backgroundWallpaperPath() const = 0;
|
|
|
|
virtual void setBackgroundWallpaperPath(const io::path& path) = 0;
|
|
|
|
|
2021-03-16 13:19:43 +01:00
|
|
|
virtual bool backgroundUseColor() const = 0;
|
|
|
|
virtual void setBackgroundUseColor(bool value) = 0;
|
2021-03-16 12:46:25 +01:00
|
|
|
virtual async::Notification backgroundChanged() const = 0;
|
2020-08-27 11:09:44 +02:00
|
|
|
|
2021-03-16 13:19:43 +01:00
|
|
|
virtual QColor foregroundColor() const = 0;
|
|
|
|
virtual void setForegroundColor(const QColor& color) = 0;
|
|
|
|
|
|
|
|
virtual io::path foregroundWallpaperPath() const = 0;
|
|
|
|
virtual void setForegroundWallpaperPath(const io::path& path) = 0;
|
2020-10-26 12:18:51 +01:00
|
|
|
|
2020-08-31 14:16:44 +02:00
|
|
|
virtual bool foregroundUseColor() const = 0;
|
2021-03-16 13:19:43 +01:00
|
|
|
virtual void setForegroundUseColor(bool value) = 0;
|
|
|
|
virtual async::Notification foregroundChanged() const = 0;
|
|
|
|
|
2021-03-18 17:42:18 +01:00
|
|
|
virtual io::path wallpapersDefaultDirPath() const = 0;
|
|
|
|
|
2021-03-16 13:19:43 +01:00
|
|
|
virtual QColor borderColor() const = 0;
|
|
|
|
virtual int borderWidth() const = 0;
|
2020-08-27 11:09:44 +02:00
|
|
|
|
2020-08-31 14:16:44 +02:00
|
|
|
virtual QColor anchorLineColor() const = 0;
|
2020-12-21 12:26:03 +01:00
|
|
|
|
2020-08-27 11:09:44 +02:00
|
|
|
virtual QColor playbackCursorColor() const = 0;
|
2021-02-09 17:39:29 +01:00
|
|
|
virtual QColor loopMarkerColor() const = 0;
|
2020-12-21 12:26:03 +01:00
|
|
|
virtual int cursorOpacity() const = 0;
|
|
|
|
|
|
|
|
virtual QColor selectionColor(int voiceIndex = 0) const = 0;
|
2021-03-26 15:05:37 +01:00
|
|
|
virtual void setSelectionColor(int voiceIndex, const QColor& color) = 0;
|
2021-03-26 16:33:18 +01:00
|
|
|
virtual async::Channel<int> selectionColorChanged() = 0;
|
2020-08-27 11:09:44 +02:00
|
|
|
|
2020-12-26 09:56:40 +01:00
|
|
|
virtual QColor layoutBreakColor() const = 0;
|
|
|
|
|
2020-08-27 11:09:44 +02:00
|
|
|
virtual int selectionProximity() const = 0;
|
2021-03-24 11:04:05 +01:00
|
|
|
virtual void setSelectionProximity(int proxymity) = 0;
|
|
|
|
|
|
|
|
virtual ZoomType defaultZoomType() const = 0;
|
|
|
|
virtual void setDefaultZoomType(ZoomType zoomType) = 0;
|
|
|
|
|
|
|
|
virtual int defaultZoom() const = 0;
|
|
|
|
virtual void setDefaultZoom(int zoomPercentage) = 0;
|
2020-08-27 11:09:44 +02:00
|
|
|
|
|
|
|
virtual ValCh<int> currentZoom() const = 0;
|
|
|
|
virtual void setCurrentZoom(int zoomPercentage) = 0;
|
|
|
|
|
2021-06-01 16:50:23 +02:00
|
|
|
virtual QList<int> possibleZoomPercentageList() const = 0;
|
|
|
|
|
2021-03-24 11:04:05 +01:00
|
|
|
virtual int mouseZoomPrecision() const = 0;
|
|
|
|
virtual void setMouseZoomPrecision(int precision) = 0;
|
|
|
|
|
2020-12-26 09:56:40 +01:00
|
|
|
virtual std::string fontFamily() const = 0;
|
2020-08-27 11:09:44 +02:00
|
|
|
virtual int fontSize() const = 0;
|
|
|
|
|
2021-06-29 13:34:19 +02:00
|
|
|
virtual io::path userStylesPath() const = 0;
|
|
|
|
virtual void setUserStylesPath(const io::path& path) = 0;
|
|
|
|
virtual async::Channel<io::path> userStylesPathChanged() const = 0;
|
2020-08-24 14:02:47 +02:00
|
|
|
|
2021-03-28 17:55:57 +02:00
|
|
|
virtual io::path defaultStyleFilePath() const = 0;
|
|
|
|
virtual void setDefaultStyleFilePath(const io::path& path) = 0;
|
|
|
|
|
|
|
|
virtual io::path partStyleFilePath() const = 0;
|
|
|
|
virtual void setPartStyleFilePath(const io::path& path) = 0;
|
|
|
|
|
2020-08-24 14:02:47 +02:00
|
|
|
virtual bool isMidiInputEnabled() const = 0;
|
2021-01-28 16:45:03 +01:00
|
|
|
virtual void setIsMidiInputEnabled(bool enabled) = 0;
|
2020-10-15 16:29:59 +02:00
|
|
|
|
2021-02-02 16:56:03 +01:00
|
|
|
virtual bool isAutomaticallyPanEnabled() const = 0;
|
|
|
|
virtual void setIsAutomaticallyPanEnabled(bool enabled) = 0;
|
|
|
|
|
|
|
|
virtual bool isPlayRepeatsEnabled() const = 0;
|
|
|
|
virtual void setIsPlayRepeatsEnabled(bool enabled) = 0;
|
|
|
|
|
|
|
|
virtual bool isMetronomeEnabled() const = 0;
|
|
|
|
virtual void setIsMetronomeEnabled(bool enabled) = 0;
|
|
|
|
|
|
|
|
virtual bool isCountInEnabled() const = 0;
|
|
|
|
virtual void setIsCountInEnabled(bool enabled) = 0;
|
|
|
|
|
2020-10-15 16:29:59 +02:00
|
|
|
virtual float guiScaling() const = 0;
|
2020-10-29 11:03:03 +01:00
|
|
|
virtual float notationScaling() const = 0;
|
2020-11-25 12:44:08 +01:00
|
|
|
|
2021-02-20 15:52:36 +01:00
|
|
|
virtual std::string notationRevision() const = 0;
|
2021-03-30 11:24:18 +02:00
|
|
|
virtual int notationDivision() const = 0;
|
2021-02-20 15:52:36 +01:00
|
|
|
|
2021-02-17 18:14:32 +01:00
|
|
|
virtual ValCh<framework::Orientation> canvasOrientation() const = 0;
|
|
|
|
virtual void setCanvasOrientation(framework::Orientation orientation) = 0;
|
2021-03-22 18:10:02 +01:00
|
|
|
|
2021-03-24 11:04:05 +01:00
|
|
|
virtual bool isLimitCanvasScrollArea() const = 0;
|
|
|
|
virtual void setIsLimitCanvasScrollArea(bool limited) = 0;
|
|
|
|
|
2021-03-22 18:10:02 +01:00
|
|
|
virtual bool colorNotesOusideOfUsablePitchRange() const = 0;
|
|
|
|
virtual void setColorNotesOusideOfUsablePitchRange(bool value) = 0;
|
|
|
|
|
|
|
|
virtual int delayBetweenNotesInRealTimeModeMilliseconds() const = 0;
|
|
|
|
virtual void setDelayBetweenNotesInRealTimeModeMilliseconds(int delayMs) = 0;
|
|
|
|
|
|
|
|
virtual int notePlayDurationMilliseconds() const = 0;
|
|
|
|
virtual void setNotePlayDurationMilliseconds(int durationMs) = 0;
|
2021-06-21 17:44:26 +02:00
|
|
|
|
|
|
|
virtual void setTemplateModeEnalbed(bool enabled) = 0;
|
|
|
|
virtual void setTestModeEnabled(bool enabled) = 0;
|
2021-07-13 10:08:54 +02:00
|
|
|
|
|
|
|
virtual io::paths instrumentListPaths() const = 0;
|
|
|
|
virtual async::Notification instrumentListPathsChanged() const = 0;
|
|
|
|
|
|
|
|
virtual io::paths userInstrumentListPaths() const = 0;
|
|
|
|
virtual void setUserInstrumentListPaths(const io::paths& paths) = 0;
|
|
|
|
|
|
|
|
virtual io::paths scoreOrderListPaths() const = 0;
|
|
|
|
virtual async::Notification scoreOrderListPathsChanged() const = 0;
|
|
|
|
|
|
|
|
virtual io::paths userScoreOrderListPaths() const = 0;
|
|
|
|
virtual void setUserScoreOrderListPaths(const io::paths& paths) = 0;
|
2020-06-16 11:36:39 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-08-27 13:20:03 +02:00
|
|
|
#endif // MU_NOTATION_INOTATIONCONFIGURATION_H
|