Commit graph

54 commits

Author SHA1 Message Date
Joachim Schmitz
632f830f5f Fix #275218: fix MSVC compiler warnings
* Warnings C4304, C4804 and C4838.
* Warnings C4065 and most C4702 (all but two).
* Warnings C4701.
* Warnings C4244.
* Warnings C4457.
* Warnings C4459.
* Some warnings C4456, due to nested `foreach` loops.
2018-08-14 10:03:49 +02:00
Dag Henning Liodden Sørbø
c6fa1ea1f7 fix #273080 - Visible mixer with no score leads to instant crash on startup 2018-06-05 20:19:35 +02:00
lasconic
94b68b3588 fix #272687: Unable to select an SFZ playback for a drum instrument 2018-05-24 12:01:38 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02: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
f26ebf688f fix #268110 2018-01-04 12:41:42 +01:00
IsaacWeiss
a715fb24c8 Fix #184381: Unnecessary "MuseScore: " prepended to most window titles and wrong title of Split Staff dialog
Also remove spacer at top of Section Break Properties
2017-03-28 12:54:49 -04:00
Werner Schweer
cf89207aca fix #128081: mute and solo don't ork in the mixer 2016-10-10 19:39:51 +02:00
lasconic
09a2b713af UI Color palette and stylesheet are not hardcoded anymore and can be loaded from Documents folder 2016-10-03 12:05:37 +02:00
Werner Schweer
8b4d8f1f15 mixer update 2016-09-16 18:53:25 +02:00
Werner Schweer
5a194acf2f add playback control for voices 2016-09-16 12:07:58 +02:00
jeetee
8c7969868e fix #119376 utility functions for save/restore geometry 2016-07-28 14:15:31 +02:00
lasconic
46c91573de fix #116881: dynamic translation 2016-07-01 15:28:35 +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
igevorse
6d4458609f Warning on changing to an existing MIDI mapping 2015-07-16 08:39:03 +05:00
igevorse
7d6bf59322 Mixer: added control synchronization (no Undo) 2015-07-15 21:07:34 +05:00
igevorse
d562805158 Mixer: added placeholder for PartEdit::midiChannelChanged(int) 2015-07-15 21:07:34 +05:00
igevorse
8a52704f0b Preferences: Added 'Show Midi controls in Mixer' checkbox 2015-07-15 21:07:34 +05:00
lasconic
073ba0a052 fix display of channel in mixer 2015-06-02 18:49:21 +02:00
lasconic
16bf3651b4 fix display of channel in mixer 2015-06-02 17:09:46 +02:00
Joachim Schmitz
ee9c2c639d fix #57461: translate instruments' channel
Needs a further change in the Python script that extracts strings
from instruments.xml, @lasconic is having that ready, as per IRC.

While at it also make the channel description translatable, even it
that currently isn't used in instruments.xml.
2015-05-28 14:19:06 +02:00
lasconic
1143189da1 fix #56151: instrument change not muting on solo 2015-04-14 21:17:52 +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
Igevorse
dd0a599ef8 fix #49651: Changes in mixer do not affect instruments with 'Use Jack MIDI' enabled 2015-03-05 12:16:36 +05:00
lasconic
8dad37fabf fix #48166: Sounds change upon access of Mixer 2015-02-20 23:30:02 +01:00
Nicolas Froment
0f4605d092 Merge pull request #1752 from andreituicu/fix_branch
Fix play panel, synthesizer, mixer not getting focus when opened using keyboard.
2015-02-11 14:58:52 +01:00
ws
cf37ea318a fix #31696 Add Drumset checkbox to the Mixer 2015-02-11 13:17:06 +01:00
Andrei Tuicu
cf06f42ea0 Fix play panel, synthesizer, mixer not getting focus when opened using keyboard. 2015-02-11 11:48:53 +02:00
Andrei Tuicu
ddaf8b363e Accessibility for play panel, mixer and synthesizer. 2015-02-06 23:00:36 +02:00
ws
24419cbf95 fix #45961 Adding measures does not mark the file as changed 2015-02-03 13:42:37 +01:00
Werner Schweer
024c73c61d Merge pull request #1668 from MarcSabatella/45141-reset-mixer-knobs
fix #45141: double click or backspace to reset mixer knobs
2015-01-26 10:29:58 +01:00
Marc Sabatella
a115337608 fix #45141: double click or backspace to reset mixer knobs 2015-01-23 09:15:02 -07:00
ws
a78eec8ad7 alsa driver update 2015-01-23 14:41:08 +01:00
ws
ac1a75a68d change some top level window type from dialog to tool 2015-01-07 17:28:14 +01:00
ws
1d4556b526 fix #42171: Dialogs should not be on top of all apps 2015-01-07 15:33:24 +01:00
lasconic
ad2f8cad9a fix #15629: Mac: Play Panel doesn't float above main window 2014-12-01 23:05:16 +01:00
Joachim Schmitz
facd9bce0b fix 2 compiler warnings
and convert enum DrumsetKi9nd into an enum class in the due course
2014-08-17 12:50:22 +02:00
Joachim Schmitz
5977488174 eliminating needless \n in qDebug() calls
searching for 'qDebug.*\\n\'
2014-03-25 14:59:32 +01:00
Marc Sabatella
5759286aca fix #24788: suppress 'normal' in channel name 2014-02-21 13:11:08 -07:00
ws
c513dd7b31 fix #18308 2013-07-16 18:30:31 +02:00
lasconic
5f0de4bd95 remove drumset checkbox from Mixer 2013-05-24 12:09:01 +02:00
ws
9ebabcc2e5 add namespace Ms 2013-05-13 19:43:59 +02:00
lasconic
3d46ca7d84 standardize dialog/menu state interaction 2013-05-12 23:13:28 +02:00
ws
8899ed81d3 fix toggle of synthcontrol 2013-04-25 09:51:15 +02:00
ws
fd2d6c7a6b initialize Channel() with default synthesizer Fluid 2013-04-04 14:32:12 +02:00
ws
110fb17ef2 fix small gui bugs for synthesizer 2013-04-03 20:20:36 +02:00
ws
1b81ddac8b fix regression: switch patch for fluid in mixer 2013-04-03 19:38:16 +02:00
ws
bc46048cd3 update synthesizer implementation 2013-04-03 12:50:21 +02:00