Commit graph

37 commits

Author SHA1 Message Date
Howard-C
b39f5e3d75 make file size comparisons independent from non-numerical characters 2019-12-24 18:28:27 +08:00
Joachim Schmitz
cf211fd3b2 fix a compiler warning
about reaching end of non-void function
2019-12-05 16:08:55 +01:00
Howard-C
c69c61ff82 fix #295895: language list in Resource Manager sorted by size is sorted in the style of string rather than that of number
Resolves: https://musescore.org/node/295895.

Follows the idea of https://stackoverflow.com/questions/7848683/how-to-sort-data-in-qtablewidget.
Two new classes ExtensionFileSize and LanguageFileSize are setup to overload the `<` operator in order to achieve the correct sorting.
2019-11-18 21:52:54 +08:00
lasconic
2c9935fcd4 Make tours translatable 2018-12-21 23:23:17 +01:00
Joachim Schmitz
f7685e28c1 Fix some warnings C4456 and C4458 2018-08-17 15:06:15 +02:00
anatoly-os
44304ca2fb fix empty Language tab
The bug was introduced after merging extensions from 2.3.2.
2018-08-16 17:20:53 +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
lasconic
cf9fc61f0a Fix #273963: Use slash rather than 'QDir::separator()' for pathnames 2018-07-10 15:27:01 +02:00
anatoly-os
86fe6e860f fix #273837: unable to install MDL on linux
The reason is believed to be a missed delimiter in the tmp directory.
2018-07-09 18:59:09 +02:00
anatoly-os
6bbd9f1de8 Make extensions installation steps async
Blocking UI leads to "not responding" state of the application.

fix application hanging when loading sfs on startup
2018-07-09 18:59:09 +02:00
lasconic
fdf55e1a2f fix #273558: Add a way to uninstall extensions 2018-07-09 18:59:08 +02:00
anatoly-os
4ef682a60b Add more messages to identify the problem when installing packages
Show message while unpacking and loading sfzs
2018-07-09 18:59:08 +02:00
lasconic
94d5442272 fix #273032: Provide an easy way to install soundfont, templates, etc.
Add workspace support in extension.
Use constants instead of magic strings for extension directories
2018-07-09 18:59:08 +02:00
anatoly-os
9ed730e768 fix #273032: provide easy way to destribute soundfonts, templates, etc.
Continue implementing extensions.
Add installed extensions version check and update on MuseScore sturtup, add the
related setting in preferences.
2018-07-09 18:59:08 +02:00
lasconic
37223aaa8e fix #273032: Provide an easy way to install soundfont, templates, etc.
Add soundfonts automatically to default synth settings after
installation is complete
2018-07-09 18:59:08 +02:00
lasconic
f71c339094 fix #273032: Provide an easy way to install soundfont, templates and instruments.xml
Introduce extensions files aka .muxt. These files are archives with additional data to extend MuseScore with soundfonts, templates, custom workspaces, etc.

Update qzip to fix bug with symlink.
Add extensions management to resource manager.
2018-07-09 18:59:08 +02:00
Joachim Schmitz
a96dfec86a Fix #273963: Use "/" rather than QDir::separator() for pathnames 2018-07-05 08:38:23 +02:00
lasconic
440b0a2ee8 pick language updates in resource manager from MuseScore 2.3 2018-06-20 09:33:39 +02:00
lasconic
c8e19ede2c Prepare MuseScore 2.2: get new translations from S3 2018-02-07 16:00:23 +01:00
lasconic
02cbd5b8de do not use dynamic_cast when possible 2017-12-21 11:19:27 +01:00
mirabilos
490dc31d48 spelling fixes, from Debian’s lintian tool
update
2017-08-07 13:55:36 +02:00
Joachim Schmitz
f5e1b2e698 Some small text fixes
and switch to the 2.1 translations
2016-12-31 19:26:25 +01:00
jeetee
109fb7d270 fix #120096 dialogs should remember their previous size 2016-11-10 23:26:12 +01:00
Joachim Schmitz
907c13c2d0 improve disabling tabs 2016-08-24 10:49:19 +02:00
Joachim Schmitz
1457f86fbc some more UI cleanups 2016-07-06 14:33:54 +02:00
lasconic
46c91573de fix #116881: dynamic translation 2016-07-01 15:28:35 +02:00
lasconic
45e9d6247a simplify Qt5Find and remove Qt4 left over. Change deprecated function calls. 2016-04-18 19:23:45 +02:00
Joachim Schmitz
4c465a7990 fix 68281: add Welsh for real
It apparently never worked since it got added to master in 713258b
and to 2.0.2 in f4226744, back in July 2015.
When switching to Cymraeg (Welsh) we actually get Čeština. When
switching to Čeština, it shows as if we got Cymraeg, but that's
just not true.
Also instruments_cy.ts never got created or updated correctly.
While at it, switch the resource manager to use the 2.0.2 translations,
for now.
2016-04-14 17:25:47 +02:00
lasconic
9d488959ae fix #48161: List the active language at the top of the resource manager 2015-02-19 12:28:14 +01:00
lasconic
596d7065a7 fix #42156: Translations are not being updated if only instruments.xml is translated 2014-12-26 19:41:44 +01:00
Joachim Schmitz
f62236688a ignore older translations when checking for updates 2014-08-28 14:51:03 +02:00
lasconic
2a3142704d fix #30986: Updated locale_<lang>.zip files are not getting deleted after unzip 2014-08-27 11:49:03 +02:00
lasconic
7302fa0e8f update resource manager to download instruments_*.qm too 2014-08-17 21:29:05 +02:00
lasconic
272a667ec1 add ability to translate instruments.xml 2014-08-07 10:28:13 +02:00
lasconic
008c5bbbe2 various fix for slurs, slurs no more possible between linked staves and staves in different parts 2013-10-10 15:41:25 +02:00
lasconic
060f5ae7a7 first try to use the system proxy for all network communication 2013-10-02 10:05:54 +02:00
lasconic
b14f79dbd6 add language files manager to download translations from the web 2013-09-30 18:38:05 +02:00