The idea is to implement a method in the engine to specify which menu items should be moved to the app menu. I'm thinking a multi-dimensional global array property which would default to about and preferences:
Code: Select all
applicationMenuItems
[item order 1..n]
["menuName"] -> the name of the button the item is in
["tag"] -> a tag for the button
["menuItem"] -> the item - a fallback if the tag isn't found and only
match the length of the menuItem so
for "About Appname" you could use "About"
["removeSeparatorLine"] -> 1...n or -n...-1 or empty
["line"] -> 1...n or -n...-1
Code: Select all
applicationMenuItems
[1]["menuName"] -> "Edit"
["tag"] -> "preferences"
["menuItem"] -> "Preferences"
["removeSeparatorLine"] -> -2
["line"] -> -1
[2]["menuName"] -> "Help"
["tag"] -> "about"
["menuItem"] -> "About"
["removeSeparatorLine"] -> -2
["line"] -> -1