13#include <JuceHeader.h>
44 void setAttachment(juce::String attachmentName, juce::AudioProcessorValueTreeState &processorTreeState);
52 void setMultipleAttachments(std::vector<juce::String> attachmentNames, juce::AudioProcessorValueTreeState &processorTreeState);
68 void paint(juce::Graphics &)
override;
92 const std::map<juce::String, ControlSection::Attachments> attachmentsMap{
93 {
"drawGrid", ControlSection::Attachments::DrawGrid},
94 {
"bufferLength", ControlSection::Attachments::BufferLength},
95 {
"isProfessional", ControlSection::Attachments::IsProfessional},
96 {
"isTriggered", ControlSection::Attachments::IsTriggered},
97 {
"triggerLevel", ControlSection::Attachments::TriggerLevel},
98 {
"slopeButtonTriggered", ControlSection::Attachments::SlopeButtonTriggered},
99 {
"autoTriggered", ControlSection::Attachments::IsAutoTriggered},
100 {
"decayTime", ControlSection::Attachments::DecayTime},
101 {
"muteOutput", ControlSection::Attachments::MuteOutput},
111 Attachments resolveAttachment(juce::String attachmentName);
129 juce::Rectangle<int> toggleOscilloscopeArea;
132 juce::ToggleButton toggleOscilloscope;
133 juce::Label toggleText;
134 std::unique_ptr<juce::AudioProcessorValueTreeState::ButtonAttachment> isProfessionalAttachment;
140 int numHorizontalSections;
~ControlSection() override
void paint(juce::Graphics &) override
void resetNumHorizontalSections()
void setAttachment(juce::String attachmentName, juce::AudioProcessorValueTreeState &processorTreeState)
void setMultipleAttachments(std::vector< juce::String > attachmentNames, juce::AudioProcessorValueTreeState &processorTreeState)