comparison view/View.h @ 285:9dd432665059

* Add a colour database, and Add New Colour function to the colour combo in property box. The colour property is only correctly handled in the waveform layer so far. * Add en_GB translation, to translate those annoying Color texts in the Qt colour picker dialog.
author Chris Cannam
date Wed, 11 Jul 2007 17:21:37 +0000
parents 8acd30ed735c
children cd2492c5fe45
comparison
equal deleted inserted replaced
284:1284955856ab 285:9dd432665059
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) { 153 virtual Layer *getLayer(int n) {
154 if (n < m_layers.size()) return m_layers[n]; else return 0; 154 if (n < int(m_layers.size())) return m_layers[n]; else return 0;
155 } 155 }
156 156
157 /** 157 /**
158 * Return the top layer. This is the same as 158 * Return the top layer. This is the same as
159 * getLayer(getLayerCount()-1) if there is at least one layer, and 159 * getLayer(getLayerCount()-1) if there is at least one layer, and