Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/view/View.h Thu Jun 21 16:12:00 2007 +0000 +++ b/view/View.h Tue Jun 26 11:08:21 2007 +0000 @@ -153,6 +153,15 @@ virtual Layer *getLayer(int n) { return m_layers[n]; } /** + * Return the top layer. This is the same as + * getLayer(getLayerCount()-1) if there is at least one layer, and + * 0 otherwise. + */ + virtual Layer *getTopLayer() { + return m_layers.empty() ? 0 : m_layers[m_layers.size()-1]; + } + + /** * Return the layer last selected by the user. This is normally * the top layer, the same as getLayer(getLayerCount()-1). * However, if the user has selected the pane itself more recently @@ -261,6 +270,7 @@ virtual void modelReplaced(); virtual void layerParametersChanged(); virtual void layerParameterRangesChanged(); + virtual void layerMeasurementRectsChanged(); virtual void layerNameChanged(); virtual void globalCentreFrameChanged(unsigned long);