ipython/ipython — pull request #2233 by bfroehle (2012-08-01 20:55:26+00:00)
Title: Refactored Drag and Drop Support in Qt Console

Currently the Qt console relies on the text edit widgets to handle drops (i.e., dragging chunks of text or files into the widget). This creates some complications (like code to protect against the user to accidentally move text around) and inconsistent behavior over different architectures (you can drag files into the widget in Linux, but not in OS X).

Instead, if we handle drops at the level of the ConsoleWidget, we can impose our own semantics. For example, we can insist that all drop actions are "copies" (and not moves). In addition we can uniformly handle file drops (by inserting the filenames).

This will need some more thorough testing -- I've only given it a once-over in OS X and Linux.

Closes #1488.