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

xtPartName.h (565B)


      1 #pragma once
      2 
      3 #include "jucePluginEditorLib/partbutton.h"
      4 
      5 #include "baseLib/event.h"
      6 
      7 namespace xtJucePlugin
      8 {
      9 	class Editor;
     10 
     11 	class PartName : public jucePluginEditorLib::PartButton<juce::TextButton>
     12 	{
     13 	public:
     14 		explicit PartName(Editor& _editor);
     15 
     16 		bool isInterestedInDragSource(const SourceDetails& _dragSourceDetails) override;
     17 		void mouseDrag(const juce::MouseEvent& _event) override;
     18 
     19 	private:
     20 		void updatePartName();
     21 
     22 		Editor& m_editor;
     23 		baseLib::EventListener<uint8_t> m_onProgramChanged;
     24 		baseLib::EventListener<bool> m_onPlayModeChanged;
     25 	};
     26 }