editor-on-fire icon indicating copy to clipboard operation
editor-on-fire copied to clipboard

Support drag and drop?

Open GoogleCodeExporter opened this issue 10 years ago • 7 comments

I'm not sure if this is feasible with Allegro, but if drag and drop can be 
supported natively with support for Win/Lin/Mac, then it will add more 
convenience.  Initially, the "load via command line" logic could be used.  
Later on, mechanisms like dragging and dropping a new audio file into EOF to 
perform "load OGG" could be provided.

Original issue reported on code.google.com by raynebc on 7 Sep 2010 at 11:23

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

Asking on the Allegro IRC channel, it doesn't look like Allegro supports this.  
The most likely solution I found so far would involve using the wxWidgets 
library.

Original comment by raynebc on 8 Sep 2010 at 3:17

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

wxWidgets might also provide a cross-platform way of accessing the clipboard, 
but adding yet another dependency to EOF will make it more difficult for people 
to build.

Original comment by raynebc on 8 Sep 2010 at 7:04

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

It may be worth seeing if Allegro 5 has any built in support for drag and drop. 
 At least one other third party library supports drag and drop:
https://github.com/axilmar/algui

But I don't know if it's worth adding a new library just for this functionality.

Original comment by raynebc on 8 Feb 2011 at 7:29

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

On hold until the port to Allegro 5.

Original comment by raynebc on 22 Mar 2011 at 12:22

  • Changed state: On_Hold

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

Allegro 5 still not supports Drag&Drop.

Original comment by ul0fka on 15 Oct 2013 at 8:46

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

This would take a lot of coding for what amounts to a slight convenience.  It 
may not be worth the effort.

Original comment by raynebc on 16 Oct 2013 at 12:08

GoogleCodeExporter avatar Aug 27 '15 22:08 GoogleCodeExporter

Allegro 5.1.12 adds the ability to detect, read and set text contents on the OS clipboard. Making full use of this would require capturing copy/cut/paste keyboard shortcuts within the dialog handlers.

raynebc avatar Sep 30 '15 16:09 raynebc