Commit graph

192 commits

Author SHA1 Message Date
Joachim Schmitz
00bf081a08 fix MSVC compiler warnings 2019-10-02 11:35:57 +02:00
Dmitri Ovodok
fdacc32bad Avoid code duplication for creating master palette 2019-10-02 09:54:22 +02:00
Dmitri Ovodok
32a3467dcd Reimplement saving and loading palettes 2019-10-02 09:54:22 +02:00
Dmitri Ovodok
858a2ae60e Remove old PaletteBox widget 2019-10-01 12:48:58 +02:00
Dmitri Ovodok
c64e8fd19f fix #280540, part 1: define palette cell names translation context depending on the element type 2019-09-19 13:04:39 +02:00
Dmitri Ovodok
4646ce633d fix #280830: fix a crash on replacing a timesig with palette while in edit mode
Moved the fix from 7f9f1df8eb to a more
appropriate place so QML palettes can also benefit from it.
Added a test which reproduces this crash without the fix.
2019-09-19 12:50:46 +02:00
anatoly-os
2bfd667b4f Implement changing palette cell properties on fly
* Rename palettedialogs.cpp/h to palettedialog.cpp/h to clarify the purpose of the file
* Made the changes similar to bf0dc85ee2
* Remove obsolete PaletteCellProperties declaration, remove the usage from the old Palette code
* Rename related *.ui file to clarify the meaning of the ui file
* Improve methods naming and parameters usage
2019-09-18 22:37:15 +02:00
anatoly-os
bf0dc85ee2 implement changing palette properties on fly
Rename palette.ui to paletteProperties.ui to keep the purpose of the UI file
Introduce slots for each control within the palette properties dialog. Each slot remembers whether the value was changed and emits signal to apply changes to the model.
All changes are applied on fly.
If a user wants to close the dialog, the message box similar to closing a file with unsaved changes will appear.
The changes are reverted if user cancels the dialog without saving changes and the palette state won't be changed which prevents creating custom workspace if no changes are applied.
Remove "Show More Element" checkbox
Disable "Palette Properties" when a palette is not editable
2019-09-18 14:48:34 +02:00
Marc Sabatella
cc1327f874 fix #293169: read accidentals in key signatures and notes
Added new "makeReadable" function to replace Unicode characters with readable strings,
and called this where needed in the places where the screenreader text is assembled.
2019-09-17 13:33:27 +02:00
Dmitri Ovodok
8a28bd8714 Add initial version of redesigned palettes 2019-08-31 14:16:19 +03:00
Joachim Schmitz
fbd0d67c36 make "Show More" toolTip translatable 2019-07-26 16:20:39 +02:00
Eric Fontaine
1a79a67cb0 fix #290058 translate palette drag painter coords
If the default layout of a palette element resulted in a boundary box with negative x & y coordinates for the top-left corner, the changed line of this commit would attempt to ensure that the entire element's pixelmap would be rendered in positive coordinate space only by offseting its position according to the top-left corner coordinates.  Unfortunately, that code don't seem to work, since vertically-centered elements like hairpins (which have a negative y coordinate for the top of its boundary box) only displayed the elements bottom-half when dragged from palette.

This fix uses alternate code which I think more properly does what that line intended to do, using Qt's QPainter translate function instead of e->setPos() to compensate for layout's adjustment of the element's position.
2019-07-02 12:29:57 -04:00
Marc Sabatella
4efdd0e7b0 fix #281362: allow shift+drag to rearrange palette +collect_artifacts 2019-06-21 16:44:58 -06:00
James Thistlewood
fb2afc8ae1 add chord symbol support for fret diagrams and some small read/write fixes 2019-05-21 21:50:46 +01:00
Marc Sabatella
98b0d26915 fix #276620: allow staff type change to be added by double-click 2019-04-18 07:44:03 -06:00
Marc Sabatella
b99337bb13 fix #285923: wrong properties on double-click line over range 2019-03-25 23:50:23 -06:00
anatoly-os
617a459fd0
Merge pull request #4800 from peterhieuvu/286067-palettehighlighting
fix #286067: only highlight beam properties on palette application
2019-03-18 22:06:35 +02:00
Marc Sabatella
79b9a80716 fix #286276: don't select palette element in note input mode 2019-03-18 12:30:40 -06:00
Peter Hieu Vu
c7d95f0627 fix #286067: only highlight beam properties on palette application 2019-03-15 22:02:17 -07:00
Dmitri Ovodok
7887b71846 Record applying palette elements to test scripts 2019-03-14 15:13:45 +02:00
anatoly-os
85577a1fd1
Merge pull request #4516 from ericfont/280829-volta-tour
fix #280829 spanner-drop-apply.tour
2019-03-07 11:30:40 +02:00
Peter Hieu Vu
c3d0c12df1 fix #281957 beam property highlighting for selected notes 2019-02-24 20:04:12 -08: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
L0uisc
9516f4e6f5 fix #278767: Always position dragged item to the top left of the cursor 2019-02-07 14:18:26 +02:00
Joachim Schmitz
1e24b4d60d fix MSVC/MinGW compiler warnings 2019-02-05 12:13:16 +01:00
anatoly-os
38f9a587ca
Merge pull request #4527 from Jojo-Schmitz/ellipsis
replacing "..." (3 dots) with "…" (ellipsis)
2019-01-10 17:35:02 +02:00
anatoly-os
a0bdb5f217
Merge pull request #4524 from ericfont/280830-double-click-palette-exit-edit-mode
fix #280830 exit edit mode if double-click palette
2019-01-08 01:04:58 +02:00
Joachim Schmitz
48e4952030 replacing "..." (3 dots) with "…" (ellipsis)
see https://musescore.org/en/node/280844
2019-01-02 13:38:38 +01:00
Eric Fontaine
7f9f1df8eb fix #280830 exit edit mode if double-click palette
Previously, if user was in edit mode (by double-clicking an element in score), then applying palette elements by double-clicking would be problematic.  This would be because Palette::applyPaletteElement() doesn't perform score->startCmd() before applying the element nor a score->endCmd() after applying the element, because it assumes that the score is already in a startCmd.

Exiting edit mode fixes #280830 which was a crash when applying a time signature from palette while in editmode.  And fixes another glitch where applying system text from palette while in edit mode.

Turns out that ScoreView::editMode() encompasses more than just plane element edit, so I'm also making sure not inside states for LYRICS_EDIT, HARMONY_FIGBASS_EDIT, and TEXT_EDIT, where it might make sense for user to apply a symbol from a palette by doubleclicking.
2018-12-30 23:29:04 -05:00
Peter Jonas
bb9ec03358 New Score Wizard: KeySig page: enable screen reader on keysig palette 2018-12-31 04:19:02 +00:00
Eric Fontaine
3f158a83b7 fix #280829 spanner-drop-apply.tour
Added new tour message triggered when either dropping or double-clicking spanners from the palette.

Explains how to extend a spanner's range with Shift-Right/Left.
Explains how to add a new spanner across a pre-selected range.
2018-12-29 01:39:51 -05:00
Joachim Schmitz
ff292d98b2 eliminate debug artifacts 2018-12-18 14:55:54 +01:00
anatoly-os
63b545d1c2 fix #279054: actually delete the palette cell instead of leaving empty cell
Delete the palette cell and rearrange other cells. Manual rearrangement still possible via dragging palette cells and holding Ctrl(Cmd)+Shift
2018-12-14 10:36:27 +02:00
anatoly-os
436f9fbd47
Merge pull request #4354 from dmitrio95/279622-palette-ottava
fix #279622: fix styled properties values for palette elements
2018-12-10 12:31:38 +02:00
Dmitri Ovodok
a9af205918 fix #279662: fixup for aeb4919e77
Copying of some selection information is still needed when selection
state can be modified. This commit reverts back to copying Selection
object in such cases.
2018-12-09 18:20:53 +02:00
Dmitri Ovodok
59f1a34c20 fix #279622: fix styled properties values for palette elements 2018-12-08 12:08:54 +02:00
JoshuaBonn1
fc1fb4d466 Fix #279432: Right-click menu on palette items seems dead.
See https://musescore.org/en/node/279432 for explanation
2018-12-05 16:28:31 -08:00
Dmitri Ovodok
aeb4919e77 Avoid copying Selection objects
This also fixes probably an error with not updating a selection
in ScoreView::cmdChangeEnharmonic since the own copy was modified.
2018-11-29 16:06:25 +02:00
L0uisc
f8196fbf86 fix #111096: minor edits 2018-11-15 20:32:47 +02:00
L0uisc
7aeadd5763 fix #111096: Add warning dialog before deleting a palette cell 2018-11-14 19:32:59 +02:00
ws
d2e452040b fix #278099 Crash when inserting a symbol from master palette 2018-11-13 13:32:33 +01:00
anatoly-os
f0f781c7c3
Merge pull request #4104 from songchaow/fix_palette_crash
Fix #105981: Crash when clearing "Show more elements" before adding an element in a new palette
2018-11-07 10:20:12 +02:00
Songchao Wang
0d819a9809 fix #105981: crash when clearing "Show more elements" before adding an element in a new palette, by making _moreElements consistent 2018-11-05 22:59:51 +08:00
mirabilos
65cd276439
remove RCS IDs from (almost) all files
they do not make any sense, nor do they get updated, if the
source code is kept in git
2018-11-02 23:53:21 +01:00
ws
417d89e07d fix layout regressions for Jump and Marker 2018-10-25 18:32:23 +02:00
ws
84dbe94a74 fix styleChanged() 2018-10-25 16:27:18 +02:00
anatoly-os
60b920559e
Merge pull request #4054 from anatoly-os/JoshuaBonn1-tours1_fixes
Applied two fixes to the Tours GSoC project
2018-10-25 13:59:26 +02:00
JoshuaBonn1
7171b32daf Add sample tours
Tours Added:
- Note input toolbar
- Palettes
- Slur
- Multimeasure Rest
- Timeline
2018-10-24 08:53:37 +02:00
ws
d77183b3bb refactoring of Element::userOff and TextBase::offset 2018-10-18 11:56:23 +02:00
anatoly-os
4899a7cd69
Merge pull request #4016 from mattmcclinch/276869-keyboard-modifiers
fix #276869: Adding barline with ctrl+doubleclick does not create a split.
2018-10-14 09:54:02 -07:00