comparison src/Analyser.cpp @ 47:0909a7bda224

instrument is now "click" -- some other minor changes I don't remember
author matthiasm
date Thu, 20 Jun 2013 13:47:36 +0100
parents f4ee3c11eba9
children c30b624cb7b8
comparison
equal deleted inserted replaced
46:a2050445818c 47:0909a7bda224
36 { 36 {
37 } 37 }
38 38
39 Analyser::~Analyser() 39 Analyser::~Analyser()
40 { 40 {
41 if (m_flexiNoteLayer) delete m_flexiNoteLayer;
41 } 42 }
42 43
43 void 44 void
44 Analyser::newFileLoaded(Document *doc, WaveFileModel *model, 45 Analyser::newFileLoaded(Document *doc, WaveFileModel *model,
45 PaneStack *paneStack, Pane *pane) 46 PaneStack *paneStack, Pane *pane)
82 layer = addLayerForNotes(notes); 83 layer = addLayerForNotes(notes);
83 84
84 if (layer) { 85 if (layer) {
85 FlexiNoteLayer *nl = qobject_cast<FlexiNoteLayer *>(layer); 86 FlexiNoteLayer *nl = qobject_cast<FlexiNoteLayer *>(layer);
86 if (nl) { 87 if (nl) {
88 m_flexiNoteLayer = nl;
87 nl->setBaseColour(ColourDatabase::getInstance()-> 89 nl->setBaseColour(ColourDatabase::getInstance()->
88 getColourIndex(QString("Bright Blue"))); 90 getColourIndex(QString("Bright Blue")));
89 nl->setVerticalScale(FlexiNoteLayer::AutoAlignScale); 91 nl->setVerticalScale(FlexiNoteLayer::AutoAlignScale);
90 // nl->setDisplayExtents(80.f,600.f); // temporary values: better get the real extents of the data form the model 92 // nl->setDisplayExtents(80.f,600.f); // temporary values: better get the real extents of the data form the model
91 } 93 }
162 } 164 }
163 165
164 return layer; 166 return layer;
165 } 167 }
166 168
169 void
170 Analyser::setIntelligentActions(bool on)
171 {
172 std::cerr << "toggle setIntelligentActions " << on << std::endl;
173 m_flexiNoteLayer->setIntelligentActions(on);
174 }