openmolecules.org

 
Home » DataWarrior » Functionality » System clipboard (Copy & paste of structures with the system clipboard)
System clipboard [message #18] Fri, 31 October 2014 15:51 Go to next message
bruno.b is currently offline  bruno.b
Messages: 13
Registered: October 2014
Location: Germaniy
Junior Member
Copy & paste of chemical structures with the system clipboard is not working under Linux (Kubuntu).
I haven't tested under windows or MacOS.
I think it is more convenient than opening or saving a file.

Best regards,

Bruno
Re: System clipboard [message #20 is a reply to message #18] Tue, 11 November 2014 21:57 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 646
Registered: June 2014
Senior Member
Hi Bruno,

Thank you for the message. I could not verify this. Copying cell content from DataWarrior to the Text Editor and back worked on Ubuntu 14.04. Copying structures from cells to the editor works as well.

Which copy/paste operation exactly doesn't work under Kubuntu?

Thomas
Re: System clipboard [message #21 is a reply to message #20] Wed, 12 November 2014 10:44 Go to previous messageGo to next message
bruno.b is currently offline  bruno.b
Messages: 13
Registered: October 2014
Location: Germaniy
Junior Member
Hi Thomas,

>Which copy/paste operation exactly doesn't work under Kubuntu?

Sorry, I should have been more precise.

I wanted to copy a chemical structure from the DW chemical editor to JSME and from JSME to the DW chemical editor. Nothing fancy.

Now, if DW would accept a drag and drop from JSME to the editor, that would be even better.

Bruno


PS: I don't receive a forum notification when someone replies to my message, although I checked the option
Re: System clipboard [message #22 is a reply to message #21] Sat, 22 November 2014 15:20 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 646
Registered: June 2014
Senior Member
Hi Bruno,

sorry for the late reply. I don't get notifications of messages either.
I need to play around with the forum software to get it right.

I checked Peter Ertl's JSME demo page. The only way I found to copy the molecule
to the clipboard is to generate a molfile (or smiles) in a text field and then manually
copy the selected text into the clipboard. This way the clipboard content's mime type
is text/plain rather than 'molfile'. DataWarrior does not interpret text, whether it is
actually a molfile. On Linux it it currently does not support molfile mime types either.
I will discuss the matter with Peter, whether we both can support molfile clipboard data
flavors.

Kind regards,

Thomas
Re: System clipboard [message #27 is a reply to message #22] Thu, 04 December 2014 09:14 Go to previous messageGo to next message
bruno.b is currently offline  bruno.b
Messages: 13
Registered: October 2014
Location: Germaniy
Junior Member
Hi Thomas,

I am pretty sure it would not be easy to provide a mime type for a copy operation from a pure JavaScript web application because of browser security paranoia.

IMO, DW should accept text/plain and be smart to recognise its type. There are many web sites that show the SMILES of a compound as a text that can be selected and copied.

I tried once a ChemAxon molecule drawing program on a Window 8 computer. This program accepted the drag and drop (D&D) from JSME, which is very convenient. I guess that the molecule drawing program needs only to accept a paste operation with text/plain mime type for D&D to work.


Bruno

PS: I implemented the copy/paste and D&D in JSME
Re: System clipboard [message #35 is a reply to message #27] Thu, 11 December 2014 21:11 Go to previous message
thomas is currently offline  thomas
Messages: 646
Registered: June 2014
Senior Member
Hi Bruno,

you are right. Allowing text and check for smiles or even molfiles is a simple matter.
I will put that on the list for the upcoming version 4.

Thank you,

Thomas
Previous Topic: 2D view
Next Topic: entering IC50s (or other data row by row)
Goto Forum:
  


Current Time: Fri Mar 29 12:11:58 CET 2024

Total time taken to generate the page: 0.07286 seconds