quantumVERB  1.0.0
A FOSS convolution reverb plugin
UIHeaderBlock.h
1 /*
2  ==============================================================================
3 
4  GUIHeaderBlock.h
5 
6  ==============================================================================
7 */
8 
9 #pragma once
10 
11 #include "../JuceLibraryCode/JuceHeader.h"
12 
13 #include "PluginProcessor.h"
14 #include "UIBlock.h"
15 
16 namespace reverb
17 {
18 
19  //==============================================================================
20  class UIHeaderBlock : public UIBlock
21  {
22  public:
23  //==============================================================================
24  UIHeaderBlock(AudioProcessor& processor);
25 
26  //==============================================================================
27  using Ptr = std::unique_ptr<UIHeaderBlock>;
28 
29  //==============================================================================
30  void paint(juce::Graphics&) override;
31  void resized() override;
32 
33  //==============================================================================
34  juce::TextButton isOn;
35  juce::TextButton irChoice;
36  juce::TextButton sampleRate;
37 
38  juce::AudioProcessorValueTreeState& parameters;
39  juce::StringArray previousSelectedIRs;
40 
41  protected:
42  //==============================================================================
44 
45  //==============================================================================
46  juce::Label isOnLabel;
47  std::unique_ptr<ButtonAttachment> isOnAttachment;
48 
49  juce::Label irChoiceLabel;
50 
51  juce::Label sampleRateLabel;
52 
53  private:
54  //==============================================================================
56  };
57 
58 }
float getParam(const juce::AudioProcessorValueTreeState &params, const juce::String &blockId) const
Internal method used to get (and check) a parameter&#39;s value.
Definition: Task.h:111
void resized() override
Manages the layout of UIHeaderBlock when the block is resized.