Mercurial > hg > svgui
diff layer/FlexiNoteLayer.cpp @ 625:1336439dc055 tonioni
fixed flexi note layer and propagated model selection to analyser
author | gyorgyf |
---|---|
date | Sat, 13 Apr 2013 13:39:17 +0100 |
parents | 49afde2dd704 |
children | 7256926d3af1 |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp Tue Mar 26 20:14:08 2013 +0000 +++ b/layer/FlexiNoteLayer.cpp Sat Apr 13 13:39:17 2013 +0100 @@ -39,21 +39,33 @@ #include <utility> FlexiNoteLayer::FlexiNoteLayer() : - SingleColourLayer(), - m_model(0), - m_editing(false), - m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), - m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), - m_editingCommand(0), - m_verticalScale(MIDIRangeScale), - m_scaleMinimum(34), - m_scaleMaximum(77) + SingleColourLayer(), + + m_model(0), + m_editing(false), + m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), + m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), + m_editingCommand(0), + m_verticalScale(AutoAlignScale), + m_scaleMinimum(0), + m_scaleMaximum(0) + + // m_model(0), + // m_editing(false), + // m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), + // m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), + // m_editingCommand(0), + // m_verticalScale(MIDIRangeScale), + // m_scaleMinimum(34), + // m_scaleMaximum(77) { + std::cerr << "NOTE: constructed FlexiNoteLayer" << std::endl; } void -FlexiNoteLayer::setModel(FlexiNoteModel *model) +FlexiNoteLayer::setModel(FlexiNoteModel *model) // THIS FUNCTION FAILS { + std::cerr << "NOTE: FlexiNoteLayer::setModel called" << std::endl; //delete this!! if (m_model == model) return; m_model = model; @@ -63,6 +75,7 @@ m_scaleMinimum = 0; m_scaleMaximum = 0; + std::cerr << "NOTE: FlexiNoteLayer::NoteModel set" << std::endl; //delete this!! emit modelReplaced(); }