|
|
|
@@ -134,12 +134,17 @@ public: |
|
|
|
/** Creates a reference to another ValueTree. */
|
|
|
|
ValueTree (const ValueTree&) noexcept;
|
|
|
|
|
|
|
|
/** Changes this object to be a reference to the given tree. */
|
|
|
|
ValueTree& operator= (const ValueTree&);
|
|
|
|
|
|
|
|
/** Move constructor */
|
|
|
|
ValueTree (ValueTree&&) noexcept;
|
|
|
|
|
|
|
|
/** Changes this object to be a reference to the given tree.
|
|
|
|
Note that calling this just points this at the new object and invokes the
|
|
|
|
Listener::valueTreeRedirected callback, but it's not an undoable operation. If
|
|
|
|
you're trying to replace an entire tree in an undoable way, you probably want
|
|
|
|
to use copyPropertiesAndChildren() instead.
|
|
|
|
*/
|
|
|
|
ValueTree& operator= (const ValueTree&);
|
|
|
|
|
|
|
|
/** Destructor. */
|
|
|
|
~ValueTree();
|
|
|
|
|
|
|
|
@@ -172,6 +177,19 @@ public: |
|
|
|
/** Returns a deep copy of this tree and all its sub-trees. */
|
|
|
|
ValueTree createCopy() const;
|
|
|
|
|
|
|
|
/** Overwrites all the properties in this tree with the properties of the source tree.
|
|
|
|
Any properties that already exist will be updated; and new ones will be added, and
|
|
|
|
any that are not present in the source tree will be removed.
|
|
|
|
@see copyPropertiesAndChildrenFrom
|
|
|
|
*/
|
|
|
|
void copyPropertiesFrom (const ValueTree& source, UndoManager* undoManager);
|
|
|
|
|
|
|
|
/** Replaces all children and properties of this object with copies of those from
|
|
|
|
the source object.
|
|
|
|
@see copyPropertiesFrom
|
|
|
|
*/
|
|
|
|
void copyPropertiesAndChildrenFrom (const ValueTree& source, UndoManager* undoManager);
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Returns the type of this tree.
|
|
|
|
The type is specified when the ValueTree is created.
|
|
|
|
@@ -261,12 +279,6 @@ public: |
|
|
|
Value getPropertyAsValue (const Identifier& name, UndoManager* undoManager,
|
|
|
|
bool shouldUpdateSynchronously = false);
|
|
|
|
|
|
|
|
/** Overwrites all the properties in this tree with the properties of the source tree.
|
|
|
|
Any properties that already exist will be updated; and new ones will be added, and
|
|
|
|
any that are not present in the source tree will be removed.
|
|
|
|
*/
|
|
|
|
void copyPropertiesFrom (const ValueTree& source, UndoManager* undoManager);
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Returns the number of child trees inside this one.
|
|
|
|
@see getChild
|
|
|
|
|