Mercurial > hg > svgui
comparison view/View.h @ 268:70537b0434c4
* Use a command for adding layer measurements
author | Chris Cannam |
---|---|
date | Tue, 26 Jun 2007 11:08:21 +0000 |
parents | 4ed1446ad604 |
children | 61a704654497 |
comparison
equal
deleted
inserted
replaced
267:4ed1446ad604 | 268:70537b0434c4 |
---|---|
149 /** | 149 /** |
150 * Return a layer, counted in stacking order. That is, layer 0 is | 150 * Return a layer, counted in stacking order. That is, layer 0 is |
151 * the bottom layer and layer "getLayerCount()-1" is the top one. | 151 * the bottom layer and layer "getLayerCount()-1" is the top one. |
152 */ | 152 */ |
153 virtual Layer *getLayer(int n) { return m_layers[n]; } | 153 virtual Layer *getLayer(int n) { return m_layers[n]; } |
154 | |
155 /** | |
156 * Return the top layer. This is the same as | |
157 * getLayer(getLayerCount()-1) if there is at least one layer, and | |
158 * 0 otherwise. | |
159 */ | |
160 virtual Layer *getTopLayer() { | |
161 return m_layers.empty() ? 0 : m_layers[m_layers.size()-1]; | |
162 } | |
154 | 163 |
155 /** | 164 /** |
156 * Return the layer last selected by the user. This is normally | 165 * Return the layer last selected by the user. This is normally |
157 * the top layer, the same as getLayer(getLayerCount()-1). | 166 * the top layer, the same as getLayer(getLayerCount()-1). |
158 * However, if the user has selected the pane itself more recently | 167 * However, if the user has selected the pane itself more recently |
259 virtual void modelChanged(size_t startFrame, size_t endFrame); | 268 virtual void modelChanged(size_t startFrame, size_t endFrame); |
260 virtual void modelCompletionChanged(); | 269 virtual void modelCompletionChanged(); |
261 virtual void modelReplaced(); | 270 virtual void modelReplaced(); |
262 virtual void layerParametersChanged(); | 271 virtual void layerParametersChanged(); |
263 virtual void layerParameterRangesChanged(); | 272 virtual void layerParameterRangesChanged(); |
273 virtual void layerMeasurementRectsChanged(); | |
264 virtual void layerNameChanged(); | 274 virtual void layerNameChanged(); |
265 | 275 |
266 virtual void globalCentreFrameChanged(unsigned long); | 276 virtual void globalCentreFrameChanged(unsigned long); |
267 virtual void viewCentreFrameChanged(View *, unsigned long); | 277 virtual void viewCentreFrameChanged(View *, unsigned long); |
268 virtual void viewManagerPlaybackFrameChanged(unsigned long); | 278 virtual void viewManagerPlaybackFrameChanged(unsigned long); |