Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support drag-drop of extension bundles #4610

Open
slicerbot opened this issue Mar 13, 2020 · 2 comments
Open

Support drag-drop of extension bundles #4610

slicerbot opened this issue Mar 13, 2020 · 2 comments
Milestone

Comments

@slicerbot
Copy link
Collaborator

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.

@lassoan lassoan added this to the Backlog milestone Mar 16, 2020
@lassoan lassoan removed the backlog label Mar 16, 2020
@jamesobutler
Copy link
Contributor

This could probably be done by setting up a custom drag and drop event for ZIP files dropped on the ExtensionsManager window.

@lassoan
Copy link
Contributor

lassoan commented Jan 24, 2021

Or even better, a scripted file dialog class can be registered (similarly to this). If the class recognizes the file as an extension package then it can offer to install it (similarly to this).

Zip file handling is already hijacked in qSlicerDataDialog. This special case handling may need to be replaced by a standard FileDialog mechanism, otherwise it could be difficult to ensure all plugins have a chance to analyze the drag-and-dropped files.

It would be also nice to handle drag-and-drop of .py files (load as module if it has a correct module class name, also add it to additional module pahts; otherwise run it as a script).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants