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

dragAndDropObject.h (653B)


      1 #pragma once
      2 
      3 #include "pluginProcessor.h"
      4 #include "juce_core/juce_core.h"
      5 #include "juce_gui_basics/juce_gui_basics.h"
      6 
      7 namespace jucePluginEditorLib
      8 {
      9 	class DragAndDropObject : public juce::ReferenceCountedObject
     10 	{
     11 	public:
     12 		static const DragAndDropObject* fromDragSource(const juce::DragAndDropTarget::SourceDetails& _source)
     13 		{
     14 			return dynamic_cast<const DragAndDropObject*>(_source.description.getObject());
     15 		}
     16 
     17 		virtual std::string getExportFileName(const pluginLib::Processor& _processor) const;
     18 		virtual bool writeToFile(const juce::File& _file) const { return false; }
     19 		virtual bool canDropExternally() const { return false; }
     20 	};
     21 }