mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Drag and drop support?


Chronological Thread 
  • From: François Poulain <address@hidden>
  • To: Madhusudan Singh <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] Drag and drop support?
  • Date: Tue, 7 Jan 2014 17:26:46 +0100

Le Tue, 7 Jan 2014 21:21:12 +0530,
Madhusudan Singh <address@hidden> a écrit :

> Hmm. Does not work with TeXmacs on Mac OSX Mountain Lion. I have the
> latest version 1.99.1.
>
> Is this a new bleeding edge feature in the SVN?

No. The problem is probably due to the uglyness of the clipboard buffers
under MacOS, wich are not properly handled by Qt because they are not
based on MIME types (like e.g. text/html), but "flavors" [*]. Sometimes,
Mac OS applications use proprietary flavors which are not converted
into mime type by Qt, so they are non accessible via the current used
Qt framework.

(I give few details if someone want to look at it...)

You can easily check accessible flavors by printing the content of
md->formats(), in qt_gui_rep::get_selection (), in
src/Plugins/Qt/qt_gui.cpp.

Specific code may be necessary on the Qt platform to access to all
"flavors" of the clipboard buffer, and to perfectly decode it. I guess
QMacPasteboardMime [**] could help. But I don't know if it allows to
read/write arbitrary flavors on the Mac clipboard (and I didn't took
time to test).

François

* E.g. Safari use a "Apple web archive" flavor instead of text/html.
It is more or less html and we could parse it. But it is not
accessible via QClipboard.

** http://doc-snapshot.qt-project.org/4.8/qmacpasteboardmime.html

--
François Poulain <address@hidden>



Archive powered by MHonArc 2.6.19.

Top of page