Skip to content

New Courtesy Accidentals plugin #21352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
674 changes: 674 additions & 0 deletions share/extensions/courtesy_accidentals/LICENSE

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions share/extensions/courtesy_accidentals/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Courtesy Accidentals
A plugin for MuseScore 4 that adds courtesy accidentals to your score.
Choose from a wide range of settings, to control when to add them and how they look!

## Features
- Add or remove courtesy accidentals from your score
- Choose from a wide variety of settings
- Live updating settings previews, to show you exactly what you get
- Sleek & modern UI styled after MuseScore 4
292 changes: 0 additions & 292 deletions share/extensions/courtesy_accidentals/add.js

This file was deleted.

57 changes: 57 additions & 0 deletions share/extensions/courtesy_accidentals/assets/AddAccItem.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//==============================================
// Cautionary Accidentals v4.0
// https://github.com/XiaoMigros/Cautionary-Accidentals
// Copyright (C)2023 XiaoMigros
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// 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 <http://www.gnu.org/licenses/>.
//==============================================

import QtQuick 2.9
import QtQuick.Layouts 1.2
import MuseScore.Ui 1.0
import MuseScore.UiComponents 1.0 as MU

Item {
id: root

height: bracketBox.height //childrenRect.height
//requires indicated width

property alias checked: checkBox.checked
property alias currentValue: bracketBox.currentValue

signal clicked
signal setv(bool checked, int value)

MU.CheckBox {
id: checkBox
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Add Courtesy Accidentals")
onClicked: {checked = !checked; root.clicked()}
signal setv(bool checked)
onSetv: function(value) {checked = value; root.clicked()}
}
BracketBox {
id: bracketBox
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
enabled: checkBox.checked
onActivated: root.clicked()
}
onSetv: function(checked, value) {
checkBox.setv(checked)
bracketBox.setv(value)
}
}
Loading