mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
54 lines
1.7 KiB
C++
54 lines
1.7 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file was auto-generated by the Jucer!
|
|
|
|
It contains the basic startup code for a Juce application.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifndef __PLUGINEDITOR_H_4ACCBAA__
|
|
#define __PLUGINEDITOR_H_4ACCBAA__
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
#include "PluginProcessor.h"
|
|
|
|
|
|
//==============================================================================
|
|
/** This is the editor component that our filter will display.
|
|
*/
|
|
class JuceDemoPluginAudioProcessorEditor : public AudioProcessorEditor,
|
|
private Timer
|
|
{
|
|
public:
|
|
JuceDemoPluginAudioProcessorEditor (JuceDemoPluginAudioProcessor&);
|
|
~JuceDemoPluginAudioProcessorEditor();
|
|
|
|
//==============================================================================
|
|
void paint (Graphics&) override;
|
|
void resized() override;
|
|
void timerCallback() override;
|
|
|
|
private:
|
|
class ParameterSlider;
|
|
|
|
MidiKeyboardComponent midiKeyboard;
|
|
Label timecodeDisplayLabel, gainLabel, delayLabel;
|
|
ScopedPointer<ParameterSlider> gainSlider, delaySlider;
|
|
ScopedPointer<ResizableCornerComponent> resizer;
|
|
ComponentBoundsConstrainer resizeLimits;
|
|
|
|
AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
|
|
|
|
//==============================================================================
|
|
JuceDemoPluginAudioProcessor& getProcessor() const
|
|
{
|
|
return static_cast<JuceDemoPluginAudioProcessor&> (processor);
|
|
}
|
|
|
|
void updateTimecodeDisplay (AudioPlayHead::CurrentPositionInfo);
|
|
};
|
|
|
|
|
|
#endif // __PLUGINEDITOR_H_4ACCBAA__
|