Esempio n. 1
0
    void sendPropertyChangeMessage (const Identifier& property, ValueTree::Listener* listenerToExclude = nullptr)
    {
        ValueTree tree (this);

        callListenersForAllParents ([&] (ListenerList<Listener>& list) { list.callExcluding (listenerToExclude, &ValueTree::Listener::valueTreePropertyChanged, tree, property); });
    }
Esempio n. 2
0
 void sendChildRemovedMessage (ValueTree child, int index)
 {
     ValueTree tree (this);
     callListenersForAllParents ([=, &tree, &child] (ListenerList<Listener>& list) { list.call (&ValueTree::Listener::valueTreeChildRemoved, tree, child, index); });
 }
Esempio n. 3
0
 void sendChildOrderChangedMessage (int oldIndex, int newIndex)
 {
     ValueTree tree (this);
     callListenersForAllParents ([=, &tree] (ListenerList<Listener>& list) { list.call (&ValueTree::Listener::valueTreeChildOrderChanged, tree, oldIndex, newIndex); });
 }
Esempio n. 4
0
 void sendChildAddedMessage (ValueTree child)
 {
     ValueTree tree (this);
     callListenersForAllParents ([&] (ListenerList<Listener>& list) { list.call (&ValueTree::Listener::valueTreeChildAdded, tree, child); });
 }
Esempio n. 5
0
 void sendPropertyChangeMessage (const Identifier& property, ValueTree::Listener* listenerToExclude = nullptr)
 {
     ValueTree tree (*this);
     callListenersForAllParents (listenerToExclude, [&] (Listener& l) { l.valueTreePropertyChanged (tree, property); });
 }
Esempio n. 6
0
 void sendChildOrderChangedMessage (int oldIndex, int newIndex)
 {
     ValueTree tree (*this);
     callListenersForAllParents (nullptr, [=, &tree] (Listener& l) { l.valueTreeChildOrderChanged (tree, oldIndex, newIndex); });
 }
Esempio n. 7
0
 void sendChildRemovedMessage (ValueTree child, int index)
 {
     ValueTree tree (*this);
     callListenersForAllParents (nullptr, [=, &tree, &child] (Listener& l) { l.valueTreeChildRemoved (tree, child, index); });
 }
Esempio n. 8
0
 void sendChildAddedMessage (ValueTree child)
 {
     ValueTree tree (*this);
     callListenersForAllParents (nullptr, [&] (Listener& l) { l.valueTreeChildAdded (tree, child); });
 }