comparison src/Analyser.h @ 164:62ceae757fe0

Re-analyse frames when selection changes (this only pulls up a set of new candidates for now, can't do anything with them and the old ones are never removed)
author Chris Cannam
date Thu, 30 Jan 2014 17:33:55 +0000
parents ec196bd2f068
children ebcfb8dce020
comparison
equal deleted inserted replaced
163:ec196bd2f068 164:62ceae757fe0
20 20
21 #include <map> 21 #include <map>
22 #include <vector> 22 #include <vector>
23 23
24 #include "framework/Document.h" 24 #include "framework/Document.h"
25 #include "base/Selection.h"
25 26
26 class WaveFileModel; 27 class WaveFileModel;
27 class Pane; 28 class Pane;
28 class PaneStack; 29 class PaneStack;
29 class Layer; 30 class Layer;
80 float getPan(Component c) const; 81 float getPan(Component c) const;
81 void setPan(Component c, float pan); 82 void setPan(Component c, float pan);
82 83
83 void getEnclosingSelectionScope(size_t f, size_t &f0, size_t &f1); 84 void getEnclosingSelectionScope(size_t f, size_t &f0, size_t &f1);
84 85
86 /**
87 * Analyse the selection and add candidates layers for the region
88 * it contains. Returns "" on success or a user-readable error
89 * string on failure.
90 */
91 QString reAnalyseSelection(Selection sel);
92
85 signals: 93 signals:
86 void layersChanged(); 94 void layersChanged();
87 95
88 protected: 96 protected:
89 Document *m_document; 97 Document *m_document;
94 102
95 QString addVisualisations(); 103 QString addVisualisations();
96 QString addWaveform(); 104 QString addWaveform();
97 QString addAnalyses(); 105 QString addAnalyses();
98 106
99 QString addTestCandidates(); 107 QString addTestCandidates(Selection sel);
100 108
101 // Document::LayerCreationHandler method 109 // Document::LayerCreationHandler method
102 void layersCreated(std::vector<Layer *>, std::vector<Layer *>); 110 void layersCreated(std::vector<Layer *>, std::vector<Layer *>);
103 111
104 void saveState(Component c) const; 112 void saveState(Component c) const;