Mercurial > hg > svgui
changeset 346:8f01867cc191
* add icons to colour 3d plot layer toggles
| author | Chris Cannam |
|---|---|
| date | Fri, 11 Jan 2008 18:19:50 +0000 |
| parents | 8c3fb13ef11c |
| children | d3ee7524d39b |
| files | layer/Colour3DPlotLayer.cpp layer/Colour3DPlotLayer.h |
| diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Tue Jan 08 15:48:39 2008 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Jan 11 18:19:50 2008 +0000 @@ -100,6 +100,14 @@ return ""; } +QString +Colour3DPlotLayer::getPropertyIconName(const PropertyName &name) const +{ + if (name == "Normalize Columns") return "normalise-columns"; + if (name == "Normalize Visible Area") return "normalise"; + return ""; +} + Layer::PropertyType Colour3DPlotLayer::getPropertyType(const PropertyName &name) const {
--- a/layer/Colour3DPlotLayer.h Tue Jan 08 15:48:39 2008 +0000 +++ b/layer/Colour3DPlotLayer.h Fri Jan 11 18:19:50 2008 +0000 @@ -75,6 +75,7 @@ virtual PropertyList getProperties() const; virtual PropertyType getPropertyType(const PropertyName &) const; virtual QString getPropertyLabel(const PropertyName &) const; + virtual QString getPropertyIconName(const PropertyName &) const; virtual QString getPropertyGroupName(const PropertyName &) const; virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const;
