Mercurial > hg > svcore
comparison base/PropertyContainer.cpp @ 47:bac8b14ab355
* Add menu for re-adding existing layers
* Fix layer tree window so that it at least approximates correct
* Add bundled operations in command history, for use with things like
multiple consecutive changes to a parameter value
* Disambiguate plugins that happen to have identical descriptions
* Add spectral centroid plugin (could use some parameters!)
* Some other fixes
author | Chris Cannam |
---|---|
date | Fri, 17 Mar 2006 17:38:28 +0000 |
parents | 5364a9d338a2 |
children | 39ae3dee27b9 |
comparison
equal
deleted
inserted
replaced
46:5364a9d338a2 | 47:bac8b14ab355 |
---|---|
55 { | 55 { |
56 int currentValue = getPropertyRangeAndValue(name, 0, 0); | 56 int currentValue = getPropertyRangeAndValue(name, 0, 0); |
57 if (value == currentValue) return; | 57 if (value == currentValue) return; |
58 | 58 |
59 CommandHistory::getInstance()->addCommand | 59 CommandHistory::getInstance()->addCommand |
60 (new SetPropertyCommand(this, name, value)); | 60 (new SetPropertyCommand(this, name, value), true, true); // bundled |
61 } | 61 } |
62 | 62 |
63 PropertyContainer::SetPropertyCommand::SetPropertyCommand(PropertyContainer *pc, | 63 PropertyContainer::SetPropertyCommand::SetPropertyCommand(PropertyContainer *pc, |
64 const PropertyName &pn, | 64 const PropertyName &pn, |
65 int value) : | 65 int value) : |