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

PartButton.h (486B)


      1 #pragma once
      2 
      3 #include "jucePluginEditorLib/partbutton.h"
      4 
      5 namespace genericVirusUI
      6 {
      7 	class VirusEditor;
      8 
      9 	class PartButton final : public jucePluginEditorLib::PartButton<juce::TextButton>
     10 	{
     11 	public:
     12 		explicit PartButton(VirusEditor& _editor);
     13 
     14 		bool isInterestedInDragSource(const SourceDetails& _dragSourceDetails) override;
     15 
     16 		void paint(juce::Graphics& g) override;
     17 
     18 		void onClick() override;
     19 	private:
     20 		void selectPreset(uint8_t _part) const;
     21 
     22 		VirusEditor& m_editor;
     23 	};
     24 }