# HG changeset patch # User Chris Cannam # Date 1200075590 0 # Node ID 8f01867cc191772ad8c1d162a5e98fedcd33bb23 # Parent 8c3fb13ef11cfe83b328ad2ee70e261a93f78a0f * add icons to colour 3d plot layer toggles diff -r 8c3fb13ef11c -r 8f01867cc191 layer/Colour3DPlotLayer.cpp --- 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 { diff -r 8c3fb13ef11c -r 8f01867cc191 layer/Colour3DPlotLayer.h --- 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;