-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Allow plugins/extensions to request specific positions in menus, choose order of commands, layout of dialogs #1498
Comments
Adding "menu priority" wouldn't be too hard. Maybe there's a way to add it to "Build|Insert{32}" to indicate the priority. I guess you also want to add an "order" attribute to change the sort of the "userOptions"? Makes sense. |
Exactly that would be perfect :) |
See #1501 I'll have to do some work on the "order" attribute. |
Fix OpenChemistry#1498 Signed-off-by: Geoff Hutchison <[email protected]>
Here are the build results |
Remind me to add stuff to the docs about this before you close the issue! |
Here are the build results |
Currently anything added to a menu or dialog by a plugin seems to be displayed in alphabetical order. Ideally the plugin could choose how these things are displayed.
If I understand correctly, in the code, menu options are given an integer as a sort of "priority" and are ordered by that, and dividers are added every 100. So ideally what would be implemented:
--menu-path
, it would be able to provide a number to use for sorting at each level so that it could affect both the plugin's location in the menus, but also the relative order of the plugin's commands if it has multiple.Secondly, the options for customizing script-specific dialogs are fantastic and allow for a lot of flexibility, but the way things are displayed is not controllable:
"userOptions"
should be settable.I am not sure what the mechanism is for the latter in other dialogs in the program.
The text was updated successfully, but these errors were encountered: