Mercurial > hg > tony
comparison src/Analyser.h @ 402:a0eedd10dee3 cxx11-types
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 10:33:32 +0000 |
parents | ffd1a89a68fa 6f7133733032 |
children | cc33cdb114f6 |
comparison
equal
deleted
inserted
replaced
400:4b9b7ff3f19c | 402:a0eedd10dee3 |
---|---|
106 FrequencyRange() : min(0), max(0) { } | 106 FrequencyRange() : min(0), max(0) { } |
107 FrequencyRange(double min_, double max_) : min(min_), max(max_) { } | 107 FrequencyRange(double min_, double max_) : min(min_), max(max_) { } |
108 bool isConstrained() const { return min != max; } | 108 bool isConstrained() const { return min != max; } |
109 double min; | 109 double min; |
110 double max; | 110 double max; |
111 bool operator==(const FrequencyRange &r) { | |
112 return min == r.min && max == r.max; | |
113 } | |
111 }; | 114 }; |
112 | 115 |
113 /** | 116 /** |
114 * Analyse the selection and schedule asynchronous adds of | 117 * Analyse the selection and schedule asynchronous adds of |
115 * candidate layers for the region it contains. Returns "" on | 118 * candidate layers for the region it contains. Returns "" on |
213 void initialAnalysisCompleted(); | 216 void initialAnalysisCompleted(); |
214 | 217 |
215 protected slots: | 218 protected slots: |
216 void layerAboutToBeDeleted(Layer *); | 219 void layerAboutToBeDeleted(Layer *); |
217 void layerCompletionChanged(); | 220 void layerCompletionChanged(); |
221 void reAnalyseRegion(int, int, float, float); | |
222 void materialiseReAnalysis(); | |
218 | 223 |
219 protected: | 224 protected: |
220 Document *m_document; | 225 Document *m_document; |
221 WaveFileModel *m_fileModel; | 226 WaveFileModel *m_fileModel; |
222 PaneStack *m_paneStack; | 227 PaneStack *m_paneStack; |
224 | 229 |
225 mutable std::map<Component, Layer *> m_layers; | 230 mutable std::map<Component, Layer *> m_layers; |
226 | 231 |
227 Clipboard m_preAnalysis; | 232 Clipboard m_preAnalysis; |
228 Selection m_reAnalysingSelection; | 233 Selection m_reAnalysingSelection; |
234 FrequencyRange m_reAnalysingRange; | |
229 std::vector<Layer *> m_reAnalysisCandidates; | 235 std::vector<Layer *> m_reAnalysisCandidates; |
230 int m_currentCandidate; | 236 int m_currentCandidate; |
231 bool m_candidatesVisible; | 237 bool m_candidatesVisible; |
232 Document::LayerCreationAsyncHandle m_currentAsyncHandle; | 238 Document::LayerCreationAsyncHandle m_currentAsyncHandle; |
233 QMutex m_asyncMutex; | 239 QMutex m_asyncMutex; |