eclewlow / Prophet6SoundLibrarian

Prophet 6 Sound Librarian software for organizing Sequential Circuits Prophet 6 patches
https://eclewlow.github.io/Prophet6SoundLibrarian/
Eclipse Public License 2.0
3 stars 0 forks source link

Allow drag drop of p6program/SysEx files #17

Closed eclewlow closed 1 year ago

eclewlow commented 1 year ago

It would be nice to detect p6program / SysEx files being dragged from the Finder into the current working library.

eclewlow commented 1 year ago

After doing some reading and programming, Mac OS java doesn't have file information on Drag over. It only has file information on Drop.

I'd really like to be able to detect how many files are being dragged preemptively to do two things:

  1. determine if the files are authentic sysex/p6program files
  2. determine how many files are selected so I can highlight which rows will be overwritten.

Unfortunately Mac OS java fails to do number (2).

The alternative is to allow file drag drops without highlighting. Unfortunately the user will not get a feel for what will be overwritten until after the fact.

eclewlow commented 1 year ago

Another alternative is to open the merge window on file drop, where the files that were dropped would appear in the merge source list.

eclewlow commented 1 year ago

As always, I referred to the good ol' Opsix Sound Librarian to see how it behaves.

It does not highlight rows preemptively. I will move forward with implementing this feature as it behaves on the Opsix SL.

eclewlow commented 1 year ago

https://github.com/eclewlow/Prophet6SoundLibrarian/commit/2b60087f9fb6c3fea79e6706bf3f59bea19fa055

Added with release https://github.com/eclewlow/Prophet6SoundLibrarian/releases/tag/v1.2.1