5 : label(l), customParameter(param)
7 label.addListener(
this);
8 auto paramValue = param.
getValue().toString();
17 label.setText(newValue, sendNotificationAsync);
22 if (&
label == labelThatHasChanged)
24 auto value = labelThatHasChanged->getTextValue();
A wrapper around juce::ValueTree designed to store custom plugin state (strings, arrays,...
Definition CustomParameter.h:9
const var & getValue() const
Definition CustomParameter.cpp:39
void setValue(const var &newValue, bool selfUpdate=false)
Definition CustomParameter.cpp:46
Label & label
Definition LabelCustomParameterAttachment.h:15
void labelTextChanged(Label *labelThatHasChanged) override
Definition LabelCustomParameterAttachment.cpp:20
CustomParameter & customParameter
Definition LabelCustomParameterAttachment.h:16
bool ignoreCallbacks
Definition LabelCustomParameterAttachment.h:17
LabelCustomParameterAttachment(CustomParameter ¶meter, Label &label, UndoManager *undoManager=nullptr)
Definition LabelCustomParameterAttachment.cpp:3
~LabelCustomParameterAttachment() override
Definition LabelCustomParameterAttachment.cpp:12
void setValue(String &newValue)
Definition LabelCustomParameterAttachment.cpp:14
Definition AirAbsorptionFilter.cpp:2