Commit graph

204 commits

Author SHA1 Message Date
anatoly-os
b2640e0ab6
Merge pull request #5788 from agusterol/master
fix #153656: Added advanced preference key io/midi/pedalEventsMinTicks for tweaking the amount of ticks between a pedal off event and a pedal on event
2020-04-14 14:13:13 +03:00
Agus Terol
ea046a2305 fix #153656: Added advanced preference key io/midi/pedalEventsMinTicks
This preference key represents the minimal amount of ticks that can occur
between a pedal off event and a pedal on event. Currently, its default
value is 1, thus there is no difference with the previous implementation.
When increasing its value, the pedal off event will be moving backwards by
the specified amount of ticks (i.e. it will happen earlier), so that the
distance with the next pedal on (if any) event will grow.
2020-03-06 22:42:18 +01:00
Howard-C
7b476dbbf7 Improve error message from flip command
Besides notes and slurs there're many other elements which can be flipped.
2020-01-28 16:16:59 +08:00
Joachim Schmitz
c1d2d1844c fix colors 2019-12-19 16:47:02 +01:00
anatoly-os
41e64aa332 update basic MuseScore colours
Change the colours of voices, buttons, highlight
@dmitrio95 Palettes highlighting must be adapted (fixed) asap
2019-12-19 16:56:49 +02:00
Dmitri Ovodok
c194377dc7 Improve testing infrastructure
- Improve ability to test mscoreapp in mtest framework
 - Expand testutils
2019-12-04 11:11:58 +02:00
Marc Sabatella
ab88cf9210 add Campania font + collect_artifacts 2019-08-27 08:53:39 -06:00
Joachim Schmitz
855956e508 Fix #286666: Error message when no note selected untranslatable + collect_artifacts
Also translate the string for the "Unknown error" case
2019-07-08 18:40:53 +02:00
anatoly-os
929cbab218 Change colours to unify colour scheme 2019-06-17 11:23:16 +02:00
Marc Sabatella
6b7f33ec64 fix #278999, fix #288474: autoplace customization 2019-05-01 07:52:11 -06:00
anatoly-os
cfeaa32803
Merge pull request #4854 from Jojo-Schmitz/translate-error-messages
fix #286666: some error messages are not translated
2019-04-04 13:50:27 +02:00
Joachim Schmitz
6817a34032 fix #286666: some error messages are not translated
seems `lupdate` is too dumb for such preprocessor trickery
2019-04-01 17:19:54 +02:00
Dmitri Ovodok
b0df6adbde Move FileIO plugin API out of libmscore 2019-03-22 17:55:47 +02:00
Dmitri Ovodok
d26bd056de Assign PIDs and names for some properties 2019-03-14 15:13:43 +02:00
Dmitri Ovodok
ea81a9338c Add a new QML plugins API
- Move Qml plugin engine out of libmscore
 - Add Pid::TICK handling to Element class
 - Make tick QML property correspond to absolute tick in all contexts
     That is a temporary solution though, a proper solution would
     require revising Pid::TICK handling
 - Move plugins API to api directory
 - Rename ElementW -> Element (PluginAPI namespace)
 - Remove Qt meta-object macros from Score in libmscore
 - Remove string-based access to properties from QML
 - Remove unused functions from Note
 - Rename QML properties names to camel case
     Two reasons:
       - They were named so in MuseScore 2.X.
       - Using underscored_names is less consistent with MuseScore
         coding style.
2019-01-24 17:36:05 +03:00
Joachim Schmitz
ff292d98b2 eliminate debug artifacts 2018-12-18 14:55:54 +01:00
Joachim Schmitz
df4aa9b612 more pre-translation text fixes
removing some, correcting others, capitalization, pluralization,
commenting to aid translators, ec.
2018-11-24 22:28:34 +01:00
lasconic
bcf4309d98 fix preprocessor endif position for SCRIPT_INTERFACE 2018-11-21 10:17:47 +01:00
ws
89ac0a6115 Fix page layout. "layoutPage()" was sometimes called with negativ restHeight
resulting in fancy system positions.
2018-11-02 12:02:01 +01:00
Dmitri Ovodok
613a81da6e Add a conversion from Fraction to QString 2018-10-29 17:32:55 +02:00
ws
96af32eee7 fix regressions: layout of misc. elements 2018-10-25 15:44:21 +02:00
Joachim Schmitz
474e8152cd fix #275218: fix MSVC C4456 warnings
reg. a declaration shadowing a previously declared local
variable,
"Warning C4456: declaration of 'XXX' hides previous local
declaration"
2018-09-27 17:38:19 +02:00
ws
a64d5d81d3 add preparations for 'skyline' algorithm to calculate system distance 2018-09-03 09:54:20 +02:00
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
Andres Fernandez de Prado
3acc363498 Solved all compilation errors on MSVC
This commit contains changes required for MuseScore to compile under MSVC with no errors.

There are several general categories of problems that resulted in errors with the compilation. Main issues:
- Variable Length Arrays (VLA). This is a non-standard extension to C++, supported by clang toolchains, but not by MSVC. The initial workaround is to use std::vector<> instead of VLAs, eventually (if needed) with the original variable pointing to the beginning of the allocated array. More efficient alternatives are possible if profiling shows any code using VLAs to be timing-critical.
- Floating-point constants not suffixed with "f" are doubles by default; in some instances, this leads to narrowing conversion errors (in other instances, just warnings).
- MSVC does not support "or"/"and"/"not" in lieu of "||"/"&&"/"!". Changed unconditionally to use standard C++ symbols.
- MSVC does not support the "__builtin_unreachable()" compiler hint. A similar, albeit not exactly equal, alternative is "__assume(0)", which is MSVC-specific.
- MSVC does not support ranges in case statements. Replaced with list of cases instead of range (non-conditionally)

Detailed changes, with per-file comments:

- all.h: opt-in to deprecated features, include <io.h> and <process.h> instead of POSIX <unistd.h>, undefine "STRING_NONE" and "small", which Microsoft defines as macros, which result in compilation errors.
- effects/compressor/zita.cpp: eliminated narrowing conversion error by appending "f" to float constants.
- fluid/voice.cpp: appended "f" to float constants to eliminate narrowing conversion errors/warnings
- libmscore/beam.cpp: conditionally replaced VLA
- libmscore/edit.cpp: conditionally replaced VLA
- libmscore/element.cpp: appended "f" to float constant
- libmscore/fret.cpp: changed or -> ||
- libmscore/layout.cpp: conditionally replaced VLA
- libmscore/mscore.cpp: conditionally replaced "__builtin_unreachable()" with "__assume(0)" for MSVC
- libmscore/scorefile.coo: use correct char representation conversion for MSVC
- libmscore/stringdata.cpp: conditionally replaced VLA
- libmscore/system.cpp: conditionally replaced VLA
- libmscroe/text.cpp: replaced range in case statement.
- manual/genManual.cpp: use getopt() replacement.
- midi/midifile.cpp: conditionally replaced VLA. This does not use the default replacement.
- mscore/bb.cpp: replaced range in case statement.
- mscore/capella.cpp: conditionally replaced VLA. Changed and -> &&
- mscore/driver:cpp: preclude errors due to macro redefinitions.
- mscore/editstyle.cpp: conditionally replaced "__builtin_unreachable()" with "__assume(0)" for MSVC
- mscore/importgtp-gp6.cpp: conditionally replaced VLA.
- mscore/instrwidget.cpp: conditionally replaced VLA.
- mscore/jackaudio.cpp: conditionally replaced VLA. Preclude errors due to macro redefinitions.
- mscore/jackweakapi.cpp: Preclude errors due to macro redefinitions. Replacement for __atribute__((constructor)) through static object construction for MSVC. Force use of LoadLibraryA instead of LoadLibrary.
- mscore/mididriver.h: Changed not -> !
- mscore/musescore.cpp: Changed not -> !. Conditionally replaced VLA.
- mscore/resourceManager.cpp: conditionally replaced VLA.
- mscore/timeline.cpp: conditionally replaced VLA.
- omr/omrpage.cpp: conditionally replaced VLA.
- synthesizer/msynthesizer.cpp: replaced UNIX sleep(1) method with MSVC Sleep(1000) (equivalent, but in ms instead of seconds)
- synthesizer/msynthsizer.h: appended "f" to float constant
- thirdparty/poppler/config.h: set defines for MSVC to preclude the use of inexistent libraries.
- thirdparty/poppler/poppler/poppler-config.h: set defines for MSVC to preclude the use of inexistent libraries. Eliminated #defines for fmin and fmax which where causing problems.
- thirdparty/poppler/poppler/PSOutputDev.cc: added #include <algorithm> for  std::min() and std::max(). Note this is required per-C++ standard.
- thirdparty/portmidi/pm_win/pmwinmm.c: undefined UNICODE to use char-based library functions.
- thirdparty/qzip/qzip.cpp: changed or -> ||
- thirdparty/rtf2html/rtf_keyword.h: file format changed from Apple to UNIX, as MSVC does not supported the former.

(NOT error related, just improvement on previous commit; manual/getopt/README.md: added link to source article)
2018-08-03 09:15:42 +02:00
Dag Henning Liodden Sørbø
b1cb83acab Use new preference model for part style 2018-02-16 00:05:38 +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
ws
35265cd358 implement new fermata element 2018-01-16 13:38:28 +01:00
Werner Schweer
020f7b1c08 fix vtst 'chord-space-1' 2017-12-11 12:35:23 +01:00
Werner Schweer
7365542a18 debugging option: disable slur autoplace 2017-08-16 16:59:04 +02:00
Joachim Schmitz
264b0386d4 Fix #243656: Warnings/Errors from lupdate
All but one...
2017-08-11 11:51:37 +02:00
Werner Schweer
3ab304d157 scripting update 2017-06-29 10:13:55 +02:00
Werner Schweer
e6d9ddcf3f more reset buttons for style values 2017-06-27 09:40:01 +02:00
Werner Schweer
4241b93649 update scripting interface 2017-06-22 12:42:14 +02:00
Werner Schweer
847d3656cf updates to scripting, text editing 2017-05-19 09:06:58 +02:00
lasconic
4d5cd902c2 export bitmap to svg with lower resolution than original when applicable 2017-05-17 19:39:21 +02:00
Werner Schweer
ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
Werner Schweer
9d6dcb816a fix style loading 2017-03-15 13:35:27 +01:00
Werner Schweer
7554cafc1d move static MStyle behind styleTypes 2017-03-09 18:41:13 +01:00
Werner Schweer
cf42a3a377 fix #179926: add scale property for time signature 2017-03-09 13:37:53 +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
e23ca8c80a update script interface 2017-02-27 12:19:30 +01:00
Werner Schweer
90b1991912 replace Q_OBJECT with Q_GADGET for all Element based classes 2017-02-17 15:48:28 +01:00
Werner Schweer
9a9dedf774 change PageFormat to simple style values 2017-01-23 21:53:51 +01:00
Werner Schweer
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
6ab16d83a3 enhance tick() method for text 2017-01-17 09:58:51 +01:00
Werner Schweer
5433d719d9 replace TextStyle by SubStyle 2017-01-16 20:59:21 +01:00
Werner Schweer
0b1aea952f layout for movements 2017-01-05 11:28:45 +01:00
Werner Schweer
01e5df432b fix #140266: no system header after horizontal frame; code cleanups 2016-12-12 10:31:37 +01:00