comparison layer/NoteLayer.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 4806715f7a19
children 7256926d3af1
comparison
equal deleted inserted replaced
623:49afde2dd704 625:1336439dc055
47 m_editingCommand(0), 47 m_editingCommand(0),
48 m_verticalScale(AutoAlignScale), 48 m_verticalScale(AutoAlignScale),
49 m_scaleMinimum(0), 49 m_scaleMinimum(0),
50 m_scaleMaximum(0) 50 m_scaleMaximum(0)
51 { 51 {
52 52 SVDEBUG << "constructed NoteLayer" << endl;
53 } 53 }
54 54
55 void 55 void
56 NoteLayer::setModel(NoteModel *model) 56 NoteLayer::setModel(NoteModel *model)
57 { 57 {
58 std::cerr << "NOTE: called NoteLayer::setModel" << std::endl; //delete this!!
59
58 if (m_model == model) return; 60 if (m_model == model) return;
59 m_model = model; 61 m_model = model;
60 62
61 connectSignals(m_model); 63 connectSignals(m_model);
62 64
63 // SVDEBUG << "NoteLayer::setModel(" << model << ")" << endl; 65 // SVDEBUG << "NoteLayer::setModel(" << model << ")" << endl;
64 66
65 m_scaleMinimum = 0; 67 m_scaleMinimum = 0;
66 m_scaleMaximum = 0; 68 m_scaleMaximum = 0;
69
70 std::cerr << "NOTE: NoteLayer::NoteModel set" << std::endl; //delete this!!
67 71
68 emit modelReplaced(); 72 emit modelReplaced();
69 } 73 }
70 74
71 Layer::PropertyList 75 Layer::PropertyList