Mercurial > hg > svgui
changeset 515:ff1dc4f302bd sv-v1.5pre1
* Add icons for "show segment division lines" in time value layer and
"always opaque" in colour 3d plot
author | Chris Cannam |
---|---|
date | Fri, 27 Feb 2009 14:24:54 +0000 |
parents | 4ba0476ebbb6 |
children | e4e0ae491a48 |
files | layer/TimeValueLayer.cpp layer/TimeValueLayer.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Fri Feb 27 13:33:16 2009 +0000 +++ b/layer/TimeValueLayer.cpp Fri Feb 27 14:24:54 2009 +0000 @@ -103,6 +103,13 @@ return SingleColourLayer::getPropertyLabel(name); } +QString +TimeValueLayer::getPropertyIconName(const PropertyName &name) const +{ + if (name == "Draw Segment Division Lines") return "lines"; + return ""; +} + Layer::PropertyType TimeValueLayer::getPropertyType(const PropertyName &name) const {
--- a/layer/TimeValueLayer.h Fri Feb 27 13:33:16 2009 +0000 +++ b/layer/TimeValueLayer.h Fri Feb 27 14:24:54 2009 +0000 @@ -70,6 +70,7 @@ virtual PropertyList getProperties() const; virtual QString getPropertyLabel(const PropertyName &) const; + virtual QString getPropertyIconName(const PropertyName &) const; virtual PropertyType getPropertyType(const PropertyName &) const; virtual QString getPropertyGroupName(const PropertyName &) const; virtual int getPropertyRangeAndValue(const PropertyName &,