Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.cpp @ 627:640c3792977f tonioni
removed additional prints, midi playback still broken
author | gyorgyf |
---|---|
date | Sat, 13 Apr 2013 17:18:28 +0100 |
parents | 7256926d3af1 |
children | 764a9452a71a |
comparison
equal
deleted
inserted
replaced
626:7256926d3af1 | 627:640c3792977f |
---|---|
39 #include <utility> | 39 #include <utility> |
40 | 40 |
41 FlexiNoteLayer::FlexiNoteLayer() : | 41 FlexiNoteLayer::FlexiNoteLayer() : |
42 SingleColourLayer(), | 42 SingleColourLayer(), |
43 | 43 |
44 m_model(0), | 44 // m_model(0), |
45 m_editing(false), | 45 // m_editing(false), |
46 m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), | 46 // m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), |
47 m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), | 47 // m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), |
48 m_editingCommand(0), | 48 // m_editingCommand(0), |
49 m_verticalScale(AutoAlignScale), | 49 // m_verticalScale(AutoAlignScale), |
50 m_scaleMinimum(0), | 50 // m_scaleMinimum(0), |
51 m_scaleMaximum(0) | 51 // m_scaleMaximum(0) |
52 | 52 |
53 // m_model(0), | 53 m_model(0), |
54 // m_editing(false), | 54 m_editing(true), |
55 // m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), | 55 m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), |
56 // m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), | 56 m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), |
57 // m_editingCommand(0), | 57 m_editingCommand(0), |
58 // m_verticalScale(MIDIRangeScale), | 58 m_verticalScale(MIDIRangeScale), |
59 // m_scaleMinimum(34), | 59 m_scaleMinimum(34), |
60 // m_scaleMaximum(77) | 60 m_scaleMaximum(77) |
61 { | 61 { |
62 std::cerr << "NOTE: constructed FlexiNoteLayer" << std::endl; | |
63 } | 62 } |
64 | 63 |
65 void | 64 void |
66 FlexiNoteLayer::setModel(FlexiNoteModel *model) | 65 FlexiNoteLayer::setModel(FlexiNoteModel *model) |
67 { | 66 { |
68 if (m_model == model) return; | 67 if (m_model == model) return; |
69 m_model = model; | 68 m_model = model; |
70 | 69 |
71 connectSignals(m_model); | 70 connectSignals(m_model); |
72 | |
73 // SVDEBUG << "FlexiNoteLayer::setModel(" << model << ")" << endl; | |
74 | 71 |
75 m_scaleMinimum = 0; | 72 m_scaleMinimum = 0; |
76 m_scaleMaximum = 0; | 73 m_scaleMaximum = 0; |
77 | 74 |
78 emit modelReplaced(); | 75 emit modelReplaced(); |