Commit graph

163 commits

Author SHA1 Message Date
ws
6969419cfc update subStyle implementation 2018-03-21 14:05:43 +01:00
Dag Henning Liodden Sørbø
2b6cb8b432 Change to new preferences model
The old Preferences struct holding all preferences are removed in favor of a
new Preferences class which acts as a proxy for QSettings. The settings stored
in QSettings are accessed directly through access methods like getBool(key),
getInt(key), etc. and changed with setPreference(key, value).

Since we are using QSettings directly the preferences are stored automatically
without the need for a custom write() and read() method like before.

The preferences.cpp/.h and prefdialog.cpp/h are refactored to have fewer
responsibilities than before. The Preferences class are all about storing and
retrieving preferences - it should not contain any code to handle any other
aspect of MuseScore.

Testing:
The Preferences class can be used in tests. All preferences are initialized with
default values in mtest. If a test requires that a preference has a specific
value it can be changed using setPreference() for that single test. In the tests
the preferences are stored in memory only.

The Preference class is supposed to be used as a singleton. In preferences.h an
'extern Preferences preferences' is set and it is defined in preferences.cpp. All
files which includes preferences.h have access to the 'preferences' singleton
and should use this to get and set preferences.
2018-02-08 16:59:10 +01:00
Werner Schweer
e6175c5dda rearrange class hierarchy 2017-12-27 11:51:09 +01:00
Werner Schweer
020f7b1c08 fix vtst 'chord-space-1' 2017-12-11 12:35:23 +01:00
Werner Schweer
ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
Werner Schweer
d435c3e5fc change barline alignment 2017-03-20 18:24:29 +01:00
Werner Schweer
129d508144 move Ottava::Type into OttavaType 2017-03-08 14:18:34 +01:00
Werner Schweer
867f2582f6 move Segment::Type into SegmentType 2017-03-08 13:12:26 +01:00
Werner Schweer
48f2f0897f add parenthesis/bracket to accidental 2017-01-31 17:28:56 +01:00
Werner Schweer
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
5433d719d9 replace TextStyle by SubStyle 2017-01-16 20:59:21 +01:00
Werner Schweer
6e7e05aaec impl. staff type changes 2016-12-18 14:31:34 +01:00
Werner Schweer
660b393b98 change StaffType interface 2016-12-14 15:44:24 +01:00
Werner Schweer
f7d96502c3 update layout, change handling of clefs, system header and trailer 2016-10-25 17:35:55 +02:00
Werner Schweer
4e0b0dbae0 update layout code 2016-10-20 11:32:17 +02:00
Joachim Schmitz
b417f7de92 fix #109136, fix #33201: add some articulations
stringHarmonics and a few fermatas as well as getting these and the ones
from dafb5f3 and ab354df translated. Also getting some of the previously
added articulations to play back properly and import from ove as well as
export to XML (import is missing)
2016-10-16 12:44:06 +02:00
lasconic
44dbd59d96 fix #136326: Add Expression text command. Remove technique text style 2016-10-08 19:06:54 +02:00
Werner Schweer
2b255202d9 change implementation of articulations 2016-10-06 12:21:39 +02:00
lasconic
f966b08d77 add more F and C clefs, refactor clef.cpp and use symId and line when possible 2016-09-29 01:14:03 +02:00
lasconic
db9aeb7388 save 3.00 file in test mode 2016-09-23 22:30:24 +02:00
Werner Schweer
e38215d41c update hairpin; fix drag of lines to staff > 1 2016-09-22 17:28:44 +02:00
AntonioBL
6e1fe19f16 fix #11014 Ove import: import of chordnames is wrong 2016-08-01 18:35:41 +02:00
werner
367f445953 autoplacement for hairpins, pedal lines 2016-07-15 14:07:23 +02:00
lasconic
7483e5bc69 uncomment all tests 2016-07-06 22:36:26 +02:00
lasconic
47992492de fix ove mtest 2016-06-03 15:04:39 +02:00
Joachim Schmitz
5d29ff1261 fix warnings introduced with the newlayout merge 2016-04-15 08:34:02 +02:00
ws
f281db5f22 move more functions to MasterScore() 2016-04-13 11:50:18 +02:00
ws
bbd802f8ae framework for partial relayout 2016-04-13 11:35:21 +02:00
ws
3d8749ffe9 some regression fixes, code cleanups 2016-04-13 11:08:01 +02:00
ws
9f933d8503 Layout reorganization 2016-04-13 11:05:04 +02:00
lasconic
3a350d1ca4 fix drum clef import in ove 2015-08-11 09:33:04 +02:00
lasconic
56e513751c replace last unicode* symbol by met* 2015-07-02 19:20:44 +02:00
AntonioBL
a304fb3abe ove import fixes and tests 2015-05-15 15:39:11 +02:00
lasconic
5c242ac228 fix bad syntax 2015-05-07 18:18:54 +02:00
lasconic
da74238db8 fix some more compilation warnings with gcc5 2015-05-07 14:42:58 +02:00
AntonioBL
5d4d203f3b more ove fixes and tests 2015-04-29 17:43:39 +02:00
ws
892e5887f9 fix #57861 bad import of & in part name 2015-04-27 13:03:52 +02:00
Nicolas Froment
f03ea6b4f3 Merge pull request #1936 from AntonioBL/ove-fix-and-tests
ove files import fixes; initial implementation of mtests for ove files
2015-04-19 10:46:43 +02:00
lasconic
1cd15c5c7d fix regression when reading dotted rests from OVE files 2015-04-12 19:45:50 +02:00
AntonioBL
f9735e909b ove files import fixes; implement mtests for ove files 2015-04-11 13:06:58 +02:00
lasconic
6998b2657c fix more crash and corruption in ove import 2015-04-10 10:44:19 +02:00
Joachim Schmitz
a20b560784 fix OVE import 2015-04-08 21:54:58 +02:00
lasconic
2fb4099ccd fix #52776: crash on OVE import with grace notes 2015-04-08 18:23:42 +02:00
ws
8282094dd6 code cleanups; rename instr() to instrument() 2015-03-26 13:11:46 +01:00
ws
d952c4c11a fix #45231 Undo does not restore sound of deleted instrument change, crash on subsequent undo 2015-03-05 16:55:09 +01:00
ws
cf37ea318a fix #31696 Add Drumset checkbox to the Mixer 2015-02-11 13:17:06 +01:00
Marc Sabatella
d79bd3a502 fix #46401: breath segments placed too early 2015-02-06 22:32:34 -07:00
ws
8b747c1201 fix #22040 No impending save after making changes to Edit Drumset 2015-02-04 19:51:24 +01:00
Marc Sabatella
5900381b0a fix #42601: bad tpc on overture import for keys other than C 2015-01-12 21:58:57 -07:00
lasconic
a21d613329 fix #41436: Corrupted notes when transposing imported .ove 2014-12-20 11:35:51 +01:00