mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Implement drag'n'drop for the Mastodon launcher (Issue 208) #214

Closed stefanhahmann closed 1 year ago

stefanhahmann commented 1 year ago

Closes #208

tinevez commented 1 year ago

Hello.

Again, I think the drag & drop is already implemented, but does not work in Fiji because of a bug in LOCI libs.

maarzt commented 1 year ago

Again, I think the drag & drop is already implemented, but does not work in Fiji because of a bug in LOCI libs.

@tinevez You're absolutely right, drag and drop is already implemented. A user can drag and drop a Mastodon file into the Fiji main window. And unfortunately, due to a bug in a LOCI library, a strange error message appears. (We need to file a bug report about this!)

But this PR tries to implement a slightly different drag and drop behavior. A user can drag and drop a mastodon file into the mastodon launcher (instead of the main Fiji window). This would allow for a very nice workflow:

Let's say a user has two Mastodon projects (Project A and project B) in a folder. The user wants to open project B. The user launches the Mastodon Launcher. Project A is in the list of recently opened files. The user double-clicks on project A. This causes Mastodon to launch the system's file browser to show the containing folder. The folder also contains project B. The user can now simply drag and drop Project B into the Mastodon Launcher. And the Mastodon Launcher opens it. Voila!

tinevez commented 1 year ago

@tinevez You're absolutely right, drag and drop is already implemented. A user can drag and drop a Mastodon file into the Fiji main window. And unfortunately, due to a bug in a LOCI library, a strange error message appears. (We need to file a bug report about this!)

Ok! The PR is already done AFAIK. Curtis is in charge of this part.

But this PR tries to implement a slightly different drag and drop behavior. A user can drag and drop a mastodon file into the mastodon launcher (instead of the main Fiji window). This would allow for a very nice workflow:

Let's say a user has two Mastodon projects (Project A and project B) in a folder. The user wants to open project B. The user launches the Mastodon Launcher. Project A is in the list of recently opened files. The user double-clicks on project A. This causes Mastodon to launch the system's file browser to show the containing folder. The folder also contains project B. The user can now simply drag and drop Project B into the Mastodon Launcher. And the Mastodon Launcher opens it. Voila!

Oh Ok! I get it now.