gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

pluginEditorWindow.h (862B)


      1 #pragma once
      2 
      3 #include <juce_audio_processors/juce_audio_processors.h>
      4 
      5 namespace jucePluginEditorLib
      6 {
      7 	class PluginEditorState;
      8 
      9 	//==============================================================================
     10 	class EditorWindow : public juce::AudioProcessorEditor
     11 	{
     12 	public:
     13 	    explicit EditorWindow (juce::AudioProcessor& _p, PluginEditorState& _s, juce::PropertiesFile& _config);
     14 	    ~EditorWindow() override;
     15 
     16 		void mouseDown(const juce::MouseEvent& event) override;
     17 
     18 		void paint(juce::Graphics& g) override {}
     19 
     20 		void resized() override;
     21 
     22 	private:
     23 		void setGuiScale(juce::Component* _comp, float _percent);
     24 		void setUiRoot(juce::Component* _component);
     25 
     26 		PluginEditorState& m_state;
     27 		juce::PropertiesFile& m_config;
     28 
     29 	    juce::ComponentBoundsConstrainer m_sizeConstrainer;
     30 
     31 		JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(EditorWindow)
     32 	};
     33 }