Commit graph

102 commits

Author SHA1 Message Date
Igor Korsukov cbf22b6070 renamed element to engravingitem 2021-09-02 15:36:45 +02:00
Igor Korsukov 48432c8e1b moved MasterScore to separate file 2021-07-23 17:26:48 +02:00
vpereverzev fe45ef6b8b Updated license headers for .cpp/.h files 2021-04-19 17:08:37 +02:00
Casper Jeukendrup 4a0c972296 Adjust uncrustify configuration to add space after comma 2021-04-16 19:54:50 +03:00
Igor Korsukov ec18e98ae7 removed OMR, OCR, AVSOMR 2020-12-02 17:10:39 +02:00
Andrei Tuicu 77a6062010 Braille Export 2020-11-24 10:13:58 +02:00
Joachim Schmitz 5c9d0e2157 Fix #295588: Add Petaluma font
and use Steinberg's naming to easy further updates
2020-10-19 13:24:49 +02:00
Eism afd0a8e035 fix #311036 Fixed Mtest 2020-09-30 10:11:15 +02:00
Igor Korsukov bfb2183f88 fixed build mtest 2020-09-02 12:53:23 +02:00
Igor Korsukov b6dabf5e0b fixed ctor colon 2020-05-29 21:15:25 +02:00
Igor Korsukov 45b9887603 changed code style 2020-05-28 09:50:45 +02:00
anatoly-os 1ef7929046 Moved midi, synthesizers, drives, exports to audio module 2020-04-16 12:23:51 +02:00
Marlon Volganli 39c53b41a1 rebase + isolate gp7-specific code 2020-03-27 13:41:24 +01:00
Joachim Schmitz 917d8b5ea4 fix #44796: enable ptb import 2020-01-01 17:16:07 +01:00
Dmitri Ovodok 4deac5f6d0 EditData cleanup
- Remove unused EditData::init() function
 - Remove unused EditData::duration field
 - Prevent memory leaks with ElementEditData descendants
2019-12-24 14:14:55 +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
Dmitri Ovodok c06f096c5b Make it possible to link mtests with mscoreapp 2019-12-04 11:11:31 +02:00
ws ec3be9a99a Replacd integer midi tick values by fractions.
- tick names a position on the time axis
- tick is always a Fraction()
- only Measure() and Segment() (and Tuplet?) have a tick value
- tick() for an generic element return only a sensible value if isMeasure() or isSegment() or isSegment(parent())

- "ticks" names a duration stored in a Fraction()
- the tick value for an Segment is relative to its measure

- rename "duration" to "ticks"
- rename afrac() to tick()
- rename rfrac() to rtick()
- rename some variables, changing "fraction" into "tick"
  (example: actualFraction() into actualTicks())

- Lyrics ticks are written as Fraction, on read if xmlreader sees a "/" it reads a fraction
  else midi ticks for backwards compatibility
2019-02-18 11:46:05 +01:00
ws 1edd676aa7 fix #277699 Staff properties corrupted on MusicXML import after Master Palette opened
The problem is deep in the initialization of staff types in Staff.
This commit also tries to make handling of StaffType more "const correct" and adds some
assertions which may lead to crashes (and helps detecting bad code).
2018-11-08 15:50:00 +01:00
ws 9b1af1a4fd fix scripting regression test 2018-10-24 12:31:53 +02:00
alexandr df114f189c Compile under MSVC: this commit caontais all changes to run MSVC build
1) fix some bugs which appear in runtime:  replace QString::tostdstring() to Foo.toUtf8().constData().

2) Enable start center online community. To use it you need download webengine in your QT lib. see instruction https://musescore.org/en/handbook/developers-handbook/compilation/compile-instructions-windows-visual-studio-2017-wip

3) update install steps. Add additional dlls for webEngine. Add copying dlls and musescore.exe to /msvc.install/bin folder. Run project will work with the "$(ProjectDir)\..\..\msvc.install\bin\MuseScore.exe" specified in Debugging field in mscore project

4) Moving AppVeyor from MinGW to MSVC. Exclude ALL MSVC project from INSTALL project. Exclude ALL from PACKAGE. Remove migw-cmake in script build, add .bat instead. Remove xcopy from 7z archive step

5) Fix warning : Warning C4703 potentially uninitialized local pointer variable '' used; Warning C4456 declaration of '' hides previous local declaration; Warning C4458 declaration of '' hides class member

6) Change path to 11 version wix toolset which created .msi installer package
2018-08-04 12:17:31 +02:00
ws d639d7e4ea update 2.x import 2018-06-27 09:04:22 +02:00
ws 33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
Joachim Schmitz 5dbabfeb55 reversing the order in which mtest compares reference and test file
reference being the older and 'should-be' case, so should be diff's 1st
arg, so the + and - of the diff show what got added or removed in the
test
2018-03-11 13:44:37 +01:00
anatoly-os 8915b35db2 Fixed clang warnings:
- removed obsolete Score* _score from XmlReader
- removed not used variables
- added braces for initializer list
- fixed using similar var names in one scope
2018-02-21 19:41:36 +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
IsaacWeiss cee6fe54bf Fix #235516: support .musicxml file extension 2017-08-01 18:38:50 -04:00
Werner Schweer f4c70e5bb7 fix for foto mode 2017-06-20 09:57:18 +02:00
Werner Schweer 16b977031a fix mtest 2017-05-03 17:31:50 +02:00
wschweer 51372d8018 update undo/redo infrastructure for text editing 2017-04-11 11:34:47 +02:00
Werner Schweer ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
Werner Schweer fc55143b95 update mtest 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 0b1aea952f layout for movements 2017-01-05 11:28:45 +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
AntonioBL e0242aaf55 fix compilation of tests under Windows 2016-10-10 14:16:13 +02:00
Werner Schweer 8c18761d3b change accidental file format 2016-09-22 12:02:41 +02:00
liang-chen fb677fc998 Fix #110306: Enable and improve OMR module 2016-05-17 11:48:38 -04:00
ws 4ae2df635a update mtest 2016-04-20 09:30:26 +02:00
ws 8ae62e9ed9 more mtest fixes 2016-04-13 13:07:32 +02:00
ws 097ac65733 fix more regressions; comment out all failing mtest 2016-04-13 12:07:48 +02:00
ws 073fd90f8c fix layout for moved beams 2016-04-13 12:07:47 +02:00
ws 5bee246125 some regression fixes 2016-04-13 12:05:47 +02:00
ws 0e91812a34 fix measure numbers for multi measure rests 2016-04-13 12:05:47 +02:00
ws f281db5f22 move more functions to MasterScore() 2016-04-13 11:50:18 +02:00
ws 2874c409ae specialize MasterScore() from Score() 2016-04-13 11:46:21 +02:00
ws d8e4373435 make DPI=72 constant 2015-11-16 14:24:47 +01:00
lasconic eb2031e285 do not call the obsolete QPrinter::setDoubleSidedPrinting, hopefully it will solve weird behavior with some printers 2015-04-29 19:53:35 +02:00
AntonioBL 42d1c83b9b make travis output verbose on failure 2015-04-20 14:38:13 +02:00