Mercurial > hg > tony
comparison src/Analyser.cpp @ 325:ef75afbe4c67
Wire up "analyse now"
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2014 14:36:30 +0100 |
parents | 2a2fd6eb8fa8 |
children | b176ea403ee8 |
comparison
equal
deleted
inserted
replaced
324:ac662fca8058 | 325:ef75afbe4c67 |
---|---|
76 m_pane = pane; | 76 m_pane = pane; |
77 | 77 |
78 connect(doc, SIGNAL(layerAboutToBeDeleted(Layer *)), | 78 connect(doc, SIGNAL(layerAboutToBeDeleted(Layer *)), |
79 this, SLOT(layerAboutToBeDeleted(Layer *))); | 79 this, SLOT(layerAboutToBeDeleted(Layer *))); |
80 | 80 |
81 return doAllAnalyses(); | |
82 } | |
83 | |
84 QString | |
85 Analyser::analyseExistingFile() | |
86 { | |
87 if (!m_document) return "Internal error: Analyser::analyseExistingFile() called with no document present"; | |
88 | |
89 if (!m_pane) return "Internal error: Analyser::analyseExistingFile() called with no pane present"; | |
90 | |
91 if (m_layers[PitchTrack]) { | |
92 m_document->removeLayerFromView(m_pane, m_layers[PitchTrack]); | |
93 m_layers[PitchTrack] = 0; | |
94 } | |
95 if (m_layers[Notes]) { | |
96 m_document->removeLayerFromView(m_pane, m_layers[Notes]); | |
97 m_layers[Notes] = 0; | |
98 } | |
99 | |
100 return doAllAnalyses(); | |
101 } | |
102 | |
103 QString | |
104 Analyser::doAllAnalyses() | |
105 { | |
81 m_reAnalysingSelection = Selection(); | 106 m_reAnalysingSelection = Selection(); |
82 m_reAnalysisCandidates.clear(); | 107 m_reAnalysisCandidates.clear(); |
83 m_currentCandidate = -1; | 108 m_currentCandidate = -1; |
84 m_candidatesVisible = false; | 109 m_candidatesVisible = false; |
85 | 110 |