MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / isInterestedInFileDrag

Method isInterestedInFileDrag

Source/PluginEditor.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool GRainbowAudioProcessorEditor::isInterestedInFileDrag(const juce::StringArray& files) {
345 // Only accept 1 file of wav/mp3/gbow at a time
346 if (files.size() == 1) {
347 juce::String extension = files[0].fromLastOccurrenceOf(".", false, false);
348 if (extension == "wav" || extension == "mp3" || extension == "gbow") {
349 return true;
350 }
351 }
352 return false;
353}
354void GRainbowAudioProcessorEditor::fileDragEnter(const juce::StringArray&, int, int) {
355 mIsFileHovering = true;
356 repaint();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected