Oops. I didn’t see that most of the subclasses of PropertyComponent
takes a Value in the constructor. Thus i waw thinking to use a ValueTree
that i could serialize as XML into the PropertySet. But it seems not possible (as reported in post linked below).
Hello,
I liked the PropertiesDemo example in the Juce Demo, but stuck with the choice made of adding pointers of class DemoSliderPropertyComponent to an array of PropertyComponent*.
Could someone be kind enough to illustrate the way we can get callback from the sliders in this specific example ?
I have a valueTree that contains a load of project properties. Thanks to some very elegant methods I can easily write these properties to a settings files using:
ScopedPointer<XmlElement> data (propertyValueTree.createXml());
getUserSettings()->setValue ("PROJECT_SETTINGS", data);
However, I can’t seem to load the properties from my settings file into a new ValueTree? I thought that after I call setValue() I might be able to do something like this:
ScopedPointer<XmlElement> xmlData = getUse…