Commit graph

151 commits

Author SHA1 Message Date
Dmitri Ovodok
c354eb24c3 Remove read300 functions 2018-09-19 01:57:37 +03:00
Dmitri Ovodok
8fa920b7df Backup old MSC read functions, add a test for fileformats compatibility
Use old read functions for reading 1.x and 2.x fileformats

Assign version number 3.01 to the new MSCX format flavor
2018-08-16 19:08:45 +03:00
ws
10ebbb9080 update text style implementation 2018-08-01 11:46:35 +02:00
ws
2934f93142 new style value frameType replacing hasFrame, circle, square 2018-07-26 13:14:06 +02:00
ws
c3bad12409 fix left alignment of dynamics 2018-07-23 16:50:36 +02:00
ws
be40742eed fix #272630 Entering '_' and '-' as symbols doesn't work in lyrics 2018-06-15 14:03:18 +02:00
ws
5c651e301b fix #272632 Crash when advancing lyric 2018-06-11 15:54:58 +02:00
ws
d5d51b2d81 fix support for input method event (CJK) 2018-06-09 16:24:03 +02:00
ws
bfdc71d710 text editing: implement undo/redo of deleting selected text 2018-06-09 11:35:07 +02:00
ws
1be45c2767 fix #272146 Ctrl+Arrow is not processed during text editing 2018-05-30 11:20:59 +02:00
ws
24014b6b59 fix #232101 Inability to create new text lines in frames 2018-05-25 11:24:32 +02:00
ws
c88175f9b1 chordname/harmony fixes 2018-04-12 12:06:59 +02:00
ws
49068ccf6f more updates for properties/styles 2018-03-28 10:43:28 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
ws
6969419cfc update subStyle implementation 2018-03-21 14:05:43 +01:00
ws
218bf79302 autoplace & other cleanups 2018-02-01 15:36:30 +01:00
ws
478cee24c1 fix #268694 2018-01-29 10:19:38 +01:00
Werner Schweer
e6175c5dda rearrange class hierarchy 2017-12-27 11:51:09 +01:00
Werner Schweer
d92ef8b9d4 update properties/styles, update glissando 2017-12-13 15:50:04 +01:00
Werner Schweer
0e4211e2d0 update let ring, palm mute 2017-11-27 16:55:52 +01:00
Werner Schweer
46eb36cb5b update text editing 2017-07-08 11:35:15 +02:00
Werner Schweer
72e1501be5 fixes for text editing 2017-06-30 12:27:54 +02:00
Werner Schweer
b5b21b2d9e regression fix: newline in text editing 2017-06-29 10:13:55 +02:00
Werner Schweer
f132e3da6f fix symbol handling in text elements 2017-06-23 16:38:01 +02:00
lasconic
dee95b59e9 add screenreader info for text and dynamics 2017-06-15 17:01:47 +02:00
Werner Schweer
6e401ec9c6 text editing: fix handling of score font symbols 2017-05-26 13:09:57 +02:00
Joachim Schmitz
113de440b3 fix warnings introduced by dd97f24 2017-05-22 17:55:55 +02:00
Werner Schweer
dd97f24f77 remove CharFormatType 2017-05-22 15:27:16 +02:00
Werner Schweer
9384654ab7 update text editing 2017-05-19 09:06:58 +02:00
Werner Schweer
f02a489bf8 fix lyrics editing, context menu 2017-05-03 10:31:30 +02:00
Werner Schweer
f94d05e921 update text editing 2017-05-02 14:17:51 +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
Eric Fontaine
bf00271a65 fix #181701 TextTools spinbox minimum set to 1.
This prevents a bug in 3.0 whereby musescore would be killed if set text size to 0.

I also put in a Q_ASSERT into CharFormat::setFontSize() to ensure FontSize is positive real.
2017-03-16 01:40:22 -04:00
lasconic
f28eaf2576 fix #119041: Font name containing a ampersand will corrupt file 2017-03-01 16:58:37 +01:00
Eric Fontaine
faf7693b95 43681 InputMethod position when editing Chinese/Jap text
If editing Chinese or Japanese text, musescore previously did not tell the operating system where to position its InputMethod popup window, and would default in middle of the bottom edge of the scoreview (as is apparently the default for a QWidget).

This code implements inputMethodQuery, which is inheirited from QWidget, and returns a QRectF when receiving an ImCursorRectangle query if the scoreview is currently editing a text object.  Will position the InputMethod just below the cursor, if it exists, or if not just below the text object's bounding rect.
2017-02-28 20:08:11 -05:00
Eric Fontaine
2d6ce9c635 fix #176601 Supplemental Unicode select, insert, paste
Any operations dealing with Supplemental Unicode must operate on high & low surrogates simulatenously, since they belong together as a pair:
-Text::insert method has a new version of which takes two QChars as input (the high & low surrogates), and inserts them together before incrementing the cursor.
-TextBlock::fragment method now has return parameter ridx (relative QChar index) in addition to rcol (relative cursor position).  For Basic Unicode TextFragments, ridx will be same as rcol, since each Basic Unicode char is one QChar.  But for text that has Supplemental Unicode, ridx will be be different since each Supplemental Unicode char is two QChars.
-TextBlock::text method now includes any high surrogate QChars in the returned string.  Previously, this method simply skipped over QChars that were high surrogates.  When iterating over the TextFragment, only increments col when comming across a QChar that is not a high surrogate.
-Text::createLayout, Text::paste and Text::drop methods now uses the new Text::insert method to insert both high & low surrogates together.  Previously, the cursor position would get messed up when each QChar was added seperately.
-TextBlock::remove(int start, int n) will now add both QChars of the surrogate pair to the return string.

Also was issue with adding text after a SMUFL symbol if the cursor mode was already in SMUFL.  Fixed by making sure to append a new TextFragment regardless of state of cursor, and also making TextFragment::TextFragment(TextCursor* cursor, const QString& s) constructor set the type to CharFormatType::TEXT.
2017-02-23 11:51:38 -05:00
Eric Fontaine
1b67e23194 fix #176151 MultiByte char TextBlock::remove()
Previously TextBlock::remove() did not delete Supplementary Multilingual Plane Unicode chars correctly.

Added tests using deletePreviousChar() for SMP Unicode as well as regular BMP Unicode as well as for text that has mixed BMP, SMP, and SMUFL symbols.
2017-02-22 08:33:39 -05:00
Werner Schweer
fc55143b95 update mtest 2017-02-17 15:48:28 +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
63c9ad1234 inspector update 2017-02-13 12:45:37 +01:00
Werner Schweer
902a5f7add remove obsolete 'Album'; style updates 2017-01-31 12:22:05 +01:00
Werner Schweer
e8621b8e2a fingering layout update; fixed layout bugs 2017-01-19 16:06:40 +01:00
Werner Schweer
73d097eec6 cleanup some header files 2017-01-19 09:17:21 +01:00
Werner Schweer
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
5610f94fe3 fix reset button initialization in inspector 2017-01-17 13:12:41 +01:00
Werner Schweer
0c48196551 move systemFlag from Text to Element 2017-01-17 10:16:15 +01:00
Werner Schweer
5433d719d9 replace TextStyle by SubStyle 2017-01-16 20:59:21 +01:00
Werner Schweer
73a2e6a1a4 add fingering panel to inspector 2017-01-05 14:53:21 +01:00
Werner Schweer
0b1aea952f layout for movements 2017-01-05 11:28:45 +01:00