Commit graph

16 commits

Author SHA1 Message Date
Johan Temmerman
79d4227534 fix #148276 end Open Volta before next startRepeat as well
fix #269603 unwind followup especially with regards to DS having playRepeats enabled
2018-03-07 12:55:07 +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
lasconic
c9dfc3ae37 save spos doesn't work with mmRest 2017-05-10 13:34:21 +02:00
Werner Schweer
867f2582f6 move Segment::Type into SegmentType 2017-03-08 13:12:26 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
Werner Schweer
bb7d535ce5 add score ptr to XmlReader and Xml 2016-11-19 10:31:14 +01:00
ws
d8e4373435 make DPI=72 constant 2015-11-16 14:24:47 +01:00
lasconic
739cb9c995 more options to export positions 2014-07-13 18:33:26 +02:00
Joachim Schmitz
e6e7436177 move SegmentType to Segment::Type and make int again
needed to make it available to the plugin framework
and the memory saved is not worth the performance penalty
2014-06-26 11:57:39 +02:00
ws
e1b1246e0c make SegmentType an global enum class 2014-06-01 20:24:29 +02:00
ws
e534cccef8 bug fixes for concert pitch switch 2014-04-09 16:09:21 +02:00
Joachim Schmitz
7c3d869ddd many (f)printf to qDebug 2014-03-22 10:40:59 +01:00
ws
9ebabcc2e5 add namespace Ms 2013-05-13 19:43:59 +02:00
ws
f41fbba2df cleanups for text; simplify SyntiParameter 2013-02-14 12:24:00 +01:00
Werner Schweer
550bf01671 fix pos output format; scale position to 100dpi 2013-02-02 21:36:37 +01:00
Werner Schweer
fc7fc3aff3 add new output file format for segment positions 2013-02-02 16:27:41 +01:00