Ghost notes improvements.

* Make a copy of a pattern it’s notes instead of pointing to a pattern.
* Save/load the ghost notes in/from the DOM document.
This commit is contained in:
CYBERDEViLNL
2019-02-05 15:47:41 +01:00
committed by Oskar Wallgren
parent 7a0b874d17
commit 9981b760e4
3 changed files with 54 additions and 9 deletions

View File

@@ -92,6 +92,7 @@ public:
void setCurrentPattern( Pattern* newPattern );
void setGhostPattern( Pattern* newPattern );
void loadGhostNotes( const QDomElement & de );
inline void stopRecording()
{
@@ -325,7 +326,13 @@ private:
static const QVector<double> m_zoomLevels;
Pattern* m_pattern;
Pattern* m_ghostPattern;
NoteVector m_ghostNotes;
inline const NoteVector & ghostNotes() const
{
return m_ghostNotes;
}
QScrollBar * m_leftRightScroll;
QScrollBar * m_topBottomScroll;