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:
committed by
Oskar Wallgren
parent
7a0b874d17
commit
9981b760e4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user