Mercurial > hg > svgui
comparison layer/WaveformLayer.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 | b9380f679f70 |
children | cd2492c5fe45 |
comparison
equal
deleted
inserted
replaced
284:1284955856ab | 285:9dd432665059 |
---|---|
44 virtual QString getFeatureDescription(View *v, QPoint &) const; | 44 virtual QString getFeatureDescription(View *v, QPoint &) const; |
45 | 45 |
46 virtual int getVerticalScaleWidth(View *v, QPainter &) const; | 46 virtual int getVerticalScaleWidth(View *v, QPainter &) const; |
47 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; | 47 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; |
48 | 48 |
49 virtual bool hasLightBackground() const; | |
50 | |
49 void setModel(const RangeSummarisableTimeValueModel *model); | 51 void setModel(const RangeSummarisableTimeValueModel *model); |
50 | 52 |
51 virtual PropertyList getProperties() const; | 53 virtual PropertyList getProperties() const; |
52 virtual QString getPropertyLabel(const PropertyName &) const; | 54 virtual QString getPropertyLabel(const PropertyName &) const; |
53 virtual PropertyType getPropertyType(const PropertyName &) const; | 55 virtual PropertyType getPropertyType(const PropertyName &) const; |
72 */ | 74 */ |
73 void setAutoNormalize(bool); | 75 void setAutoNormalize(bool); |
74 bool getAutoNormalize() const { return m_autoNormalize; } | 76 bool getAutoNormalize() const { return m_autoNormalize; } |
75 | 77 |
76 /** | 78 /** |
77 * Set the basic display colour for waveforms. | 79 * Set the basic display colour for waveforms. The parameter is |
78 * | 80 * a ColourDatabase index. |
79 * The default is black. | 81 * |
82 * The default is the first colour in the database. | |
80 *!!! NB should default to white if the associated View !hasLightBackground() | 83 *!!! NB should default to white if the associated View !hasLightBackground() |
81 */ | 84 */ |
82 void setBaseColour(QColor); | 85 void setBaseColour(int); |
83 QColor getBaseColour() const { return m_colour; } | 86 int getBaseColour() const; |
84 | 87 |
85 /** | 88 /** |
86 * Set whether to display mean values as a lighter-coloured area | 89 * Set whether to display mean values as a lighter-coloured area |
87 * beneath the peaks. Rendering will be slightly faster without | 90 * beneath the peaks. Rendering will be slightly faster without |
88 * but arguably prettier with. | 91 * but arguably prettier with. |
207 | 210 |
208 float getValueForY(const View *v, int y, size_t &channel) const; | 211 float getValueForY(const View *v, int y, size_t &channel) const; |
209 | 212 |
210 float m_gain; | 213 float m_gain; |
211 bool m_autoNormalize; | 214 bool m_autoNormalize; |
212 QColor m_colour; | 215 int m_colour; |
213 bool m_showMeans; | 216 bool m_showMeans; |
214 bool m_greyscale; | 217 bool m_greyscale; |
215 ChannelMode m_channelMode; | 218 ChannelMode m_channelMode; |
216 int m_channel; | 219 int m_channel; |
217 Scale m_scale; | 220 Scale m_scale; |