mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Cleaned-up class inheritance visibilities and encapsulation for some internal classes.
This commit is contained in:
parent
246cb94bb0
commit
df729be74a
72 changed files with 373 additions and 375 deletions
|
|
@ -785,7 +785,7 @@ Identifier ValueTree::getPropertyName (const int index) const
|
|||
|
||||
//==============================================================================
|
||||
class ValueTreePropertyValueSource : public Value::ValueSource,
|
||||
public ValueTree::Listener
|
||||
private ValueTree::Listener
|
||||
{
|
||||
public:
|
||||
ValueTreePropertyValueSource (const ValueTree& tree_, const Identifier& property_,
|
||||
|
|
@ -803,6 +803,11 @@ public:
|
|||
var getValue() const { return tree [property]; }
|
||||
void setValue (const var& newValue) { tree.setProperty (property, newValue, undoManager); }
|
||||
|
||||
private:
|
||||
ValueTree tree;
|
||||
const Identifier property;
|
||||
UndoManager* const undoManager;
|
||||
|
||||
void valueTreePropertyChanged (ValueTree& treeWhosePropertyHasChanged,
|
||||
const Identifier& changedProperty)
|
||||
{
|
||||
|
|
@ -815,11 +820,6 @@ public:
|
|||
void valueTreeChildOrderChanged (ValueTree&) {}
|
||||
void valueTreeParentChanged (ValueTree&) {}
|
||||
|
||||
private:
|
||||
ValueTree tree;
|
||||
const Identifier property;
|
||||
UndoManager* const undoManager;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE (ValueTreePropertyValueSource);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue