Fixed by replacing QDialogBottonBox by QPlatformTheme, which seems what
Qt 5.2 (?) and 5.3 (!) needs as the context, to load the right
translations for these button labels.
Also some more cosmetic fixes for the German translation
Some errors crept into the Balalaika definition added yesterday. This is
the fix for them. I have also made a better guess at clef information
although this is still not guaranteed correct
A response to this thread http://musescore.org/en/node/27581 but the
balalaika family was also asked for in 2012:
http://musescore.org/en/node/15908. A little digging this morning
enabled me to find the requisite string data. Not sure I have the clefs
correct though these are pure speculation in the absence of information
from the web
- Measure:
-- firstSegment
-- lastSegment
- MeasureBase:
-- nextMeasure
-- nextMeasureMM (new)
-- prevMeasure
-- prevMeasureMM (new)
- Score:
-- firstMeasure
-- firstMeasureMM (new)
-- (for firstSegment(), see special cases below)
-- lastMeasure
-- lastMeasureMM (new)
-- lastSegment
- Segment:
-- next (renamed from `next1`)
-- nextInMeasure (renamed from `next`)
-- prev (renamed from `prev1`)
-- prevInMeasure (renamed from prev)
Special cases:
- Cursor: The prototype of the `Q_INVOKABLE Ms::Note* Cursor::addNote(int pitch)` was wrong: corrected in `Q_INVOKABLE void Cursor::addNote(int pitch)`.
- QmlPlugin: `Q_INVOKABLE Score* QmlPlugin::readScore()` and `Q_INVOKABLE Score* QmlPlugin::newScore()` has been kept, as they are intended to be called from QML; code has been added to ensure the C++ ownership of the returned object.
- Score: `Q_INVOKABLE Segment* Score::firstSegment(Segment::Type segType)` is kept (as it needs a parameters), but code is added to ensure C++ ownership of the returned Segment*.
- Segment: `Ms::Element* Segment::element(int track)` has been made NOT Q_INVOKABLE; a variant `Q_INVOKABLE Ms::Element* elementAt(int track)` has been added specifically for QML with code to ensure the C++ ownership of the returned Element* (this was the cause for the crash of the Walk plug-in).
- FiguredBass: `Q_INVOKABLE Ms::FiguredBassItem* FiguredBass::addItem()` has been removed; plugin interface for FiguredBass needs to be redesigned anyway.
The few occurrences in the supplied plug-ins of the methods whose names did change have been updated.
A response to this post on the forum: http://musescore.org/en/node/27106
a simple GM Pipe organ has been added to
instruments.xml and the old Pipe Organ which controlled Aeolus has been
renamed to Aeolus Organ. This is part of the preparations required for
the removal of Aeolus should we fail to resolve issues with Fons
Adrianssen.
In the instrument wizard, when a staff is changed to standard type (from a previous different type), the standard clef of the istrument is lost.
Changes:
- Added a member variable to `StaffListItem` storing the default standard clef for the instrument.
- Modified `instruments.xml' to remove <clef> tags from tablature instrument definitions: all these instruments are inited from a standard-staff main entry, recording the default standard clef; this clef is used to init the `StaffListItem::_defaultClef` member variable.
NOTE: Percussion instruments are not covered (an number of percussion instruments seem to have old-style definitions in `instruments.xml`); conversion from percussion to standard staff may yield unexpected results.
Adds support for "/" within chordnames if the portion after the "/" is
not convertible to tpc and hence not a valid bass note. This allows for
C6/9 to be rendered as such. I look at the *last* slash when deciding
how to proceed, so C6/9/E is handled correctly.
As the very concept of "early music" is foggy and there is always a margin of subjectivity, it may be improved and also easily argued upon! :)
(I also added the 7th string to the viola da gamba)
* Replace "Tablature" with "StringData" in instruments.xml
* Remove support for "Tablature" tag from instrtemplate.cpp (but keep it in instrument.cpp for compatibility with existent 2.0 scores)
1) Built-in staff types have been removed.
2) Presets are internally used as source for the staff types of a new score, to match data in Instruments.xml and as reference to check for modifications.
3) Each new score is given by default one staff type for each preset with the same name.
4) The Instrument page of the New Score Wizard lists (under the name of "Staff types") the default staff types applicable to the instrument (actually it lists the preset, as the score does not have any staff type yet).
5) The "Add | Instruments" dlg box lists all the staff types applicable to the instrument: = to the list of 4) + any user-created staff type.
6) The Staff Properties dlg box lists all the staff types applicable to the instrument: = list in 5)
7) The Staff Type Editor lists all the staff types
This should ensure consistency among the several lists of staff types and avoid duplication of similar items
Terminology:
7) A new staff type created in the editor is named by default with the group name ("Standard-", "Perc-", "Tab-") + the index of the new type in its group + the suffix "[*]" marking a user customisation. The user is anyway able to rename it, if he want.
8) The pitched staff type has been renamed everywhere (hopefully!) to "Standard"
9) The term 'preset' have been removed from the UI, except from the Staff Type Editor where it keeps its meaning of ready-made collections of parameters
The commit affects many files, but a fair number of them have only changes in names of literals. The files with significant code changes are:
libmscore/score.cpp
libmscore/stafftype.cpp/.h
mscore/editstafftype.cpp (code for naming a new staff type)
mscore/instrdialog.cpp (building type list)
Note: as score files store staff type indications as integer indices and the number and order of new default staff types is different from the old built-in types, there is a compatibility issue with old 2.0 score which use percussion and tab staves. In Score::read() (libmscore/scorefile.cpp), there is a rudimentary attempt to cope with this.Old scores will need manual fix anyway. There should not be any (new) compatibility issue with 1.x scores, as they did not use staff types.
Tablature information has been added to the Electric Guitar definition
which for some reason had none. MusicXML id information has also been
added which was also missing.
Electronic instruments is now complete, the marching percussion group
has been added, some anomalies caused by use an <init> tag which is not
part of the DTD addressed. Checked for XML correctness and all appears
to be well.
Missing note MIDI #94 has now been fixed in the soundfont. The soundfont
has also been converted to SF3 format. Embedded references to the
filename have also been edited.
A new method is provided generate a chordname directly from a MusicXML
harmony object. This chordname is then parsed and rendered just as for a
chordname typed directly into the score.