Mercurial > hg > svcore
diff base/PropertyContainer.h @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 576be7933ec7 |
children | c01cbe41aeb5 |
line wrap: on
line diff
--- a/base/PropertyContainer.h Thu Mar 01 14:43:40 2018 +0000 +++ b/base/PropertyContainer.h Thu Mar 01 18:02:22 2018 +0000 @@ -36,13 +36,13 @@ typedef std::vector<PropertyName> PropertyList; enum PropertyType { - ToggleProperty, // on or off - RangeProperty, // range of integers - ValueProperty, // range of integers given string labels - ColourProperty, // colours, get/set as ColourDatabase indices + ToggleProperty, // on or off + RangeProperty, // range of integers + ValueProperty, // range of integers given string labels + ColourProperty, // colours, get/set as ColourDatabase indices ColourMapProperty, // colour maps, get/set as ColourMapper::StandardMap enum UnitsProperty, // unit from UnitDatabase, get/set unit id - InvalidProperty, // property not found! + InvalidProperty, // property not found! }; /** @@ -82,14 +82,14 @@ * passed as NULL if their values are not required. */ virtual int getPropertyRangeAndValue(const PropertyName &, - int *min, int *max, int *deflt) const; + int *min, int *max, int *deflt) const; /** * If the given property is a ValueProperty, return the display * label to be used for the given value for that property. */ virtual QString getPropertyValueLabel(const PropertyName &, - int value) const; + int value) const; /** * If the given property is a ValueProperty, return the icon to be @@ -159,18 +159,18 @@ class SetPropertyCommand : public Command { public: - SetPropertyCommand(PropertyContainer *pc, const PropertyName &pn, int); - virtual ~SetPropertyCommand() { } + SetPropertyCommand(PropertyContainer *pc, const PropertyName &pn, int); + virtual ~SetPropertyCommand() { } - virtual void execute(); - virtual void unexecute(); - virtual QString getName() const; + virtual void execute(); + virtual void unexecute(); + virtual QString getName() const; protected: - PropertyContainer *m_pc; - PropertyName m_pn; - int m_value; - int m_oldValue; + PropertyContainer *m_pc; + PropertyName m_pn; + int m_value; + int m_oldValue; }; virtual bool convertPropertyStrings(QString nameString, QString valueString,