forked from mia/Aegisub
626df4db05
Remove hardcoded assumptions about where in the menu items are and instead bind menu items directly to commands so that customizing the menu actually works. Add support for user menu files that override the default one. Add better support for multiple menus so that all of the menus can potentially be created by the dynamic menu system rather than just the main menu bar. Add support for commands whose names change based on the current project state so that undo and redo can work properly. Simplify the menu json format and make commands responsible for controlling what type of menu item is created rather than allowing nonsensical configurations. The Automation menu is currently not implemented. Originally committed to SVN as r5554.
176 lines
6.4 KiB
JSON
176 lines
6.4 KiB
JSON
{
|
|
"main" : [
|
|
{ "submenu" : "main/file", "text" : "&File" },
|
|
{ "submenu" : "main/edit", "text" : "&Edit" },
|
|
{ "submenu" : "main/subtitle", "text" : "&Subtitle" },
|
|
{ "submenu" : "main/timing", "text" : "&Timing" },
|
|
{ "submenu" : "main/video", "text" : "&Video" },
|
|
{ "submenu" : "main/audio", "text" : "&Audio" },
|
|
{ "submenu" : "main/automation", "text" : "A&utomation" },
|
|
{ "submenu" : "main/view", "text" : "&View" },
|
|
{ "submenu" : "main/help", "text" : "&Help", "special" : "help" }
|
|
],
|
|
"main/file" : [
|
|
{ "command" : "subtitle/new" },
|
|
{ "command" : "subtitle/open" },
|
|
{ "command" : "subtitle/open/charset" },
|
|
{ "command" : "subtitle/open/video" },
|
|
{ "command" : "subtitle/save" },
|
|
{ "command" : "subtitle/save/as" },
|
|
{ "command" : "tool/export" },
|
|
{ "recent" : "Subtitle" },
|
|
{},
|
|
{ "command" : "subtitle/properties" },
|
|
{ "command" : "subtitle/attachment" },
|
|
{ "command" : "tool/font_collector" },
|
|
{},
|
|
{ "command" : "app/new_window" },
|
|
{ "command" : "app/exit", "special" : "exit" }
|
|
],
|
|
"main/edit" : [
|
|
{ "command" : "edit/undo" },
|
|
{ "command" : "edit/redo" },
|
|
{},
|
|
{ "command" : "edit/line/cut" },
|
|
{ "command" : "edit/line/copy" },
|
|
{ "command" : "edit/line/paste" },
|
|
{ "command" : "edit/line/paste/over" },
|
|
{},
|
|
{ "command" : "subtitle/find" },
|
|
{ "command" : "subtitle/find/next" },
|
|
{ "command" : "edit/search_replace" }
|
|
],
|
|
"main/subtitle" : [
|
|
{ "command" : "tool/style/manager" },
|
|
{ "command" : "tool/style/assistant" },
|
|
{ "command" : "tool/translation_assistant" },
|
|
{ "command" : "tool/resampleres" },
|
|
{ "command" : "subtitle/spellcheck" },
|
|
{},
|
|
{ "command" : "tool/assdraw" },
|
|
{ "submenu" : "main/subtitle/insert lines", "text" : "&Insert Lines" },
|
|
{ "command" : "edit/line/duplicate" },
|
|
{ "command" : "edit/line/duplicate/shift" },
|
|
{ "command" : "edit/line/delete" },
|
|
{},
|
|
{ "submenu" : "main/subtitle/join lines", "text" : "Join Lines" },
|
|
{ "command" : "edit/line/recombine" },
|
|
{ "command" : "edit/line/split/by_karaoke" },
|
|
{},
|
|
{ "submenu" : "main/subtitle/sort lines", "text" : "Sort Lines" },
|
|
{ "command" : "edit/line/swap" },
|
|
{ "command" : "tool/line/select" }
|
|
],
|
|
"main/subtitle/insert lines" : [
|
|
{ "command" : "subtitle/insert/before" },
|
|
{ "command" : "subtitle/insert/after" },
|
|
{ "command" : "subtitle/insert/before/videotime" },
|
|
{ "command" : "subtitle/insert/after/videotime" }
|
|
],
|
|
"main/subtitle/join lines" : [
|
|
{ "command" : "edit/line/join/concatenate" },
|
|
{ "command" : "edit/line/join/keep_first" },
|
|
{ "command" : "edit/line/join/as_karaoke" }
|
|
],
|
|
"main/subtitle/sort lines" : [
|
|
{ "command" : "time/sort/start" },
|
|
{ "command" : "time/sort/end" },
|
|
{ "command" : "time/sort/style" }
|
|
],
|
|
"main/timing" : [
|
|
{ "command" : "time/shift" },
|
|
{ "command" : "tool/time/postprocess" },
|
|
{ "command" : "tool/time/kanji" },
|
|
{},
|
|
{ "command" : "time/snap/start_video" },
|
|
{ "command" : "time/snap/end_video" },
|
|
{ "command" : "time/snap/scene" },
|
|
{ "command" : "time/frame/current" },
|
|
{},
|
|
{ "submenu" : "main/timing/make times continuous", "text" : "Make Times Continuous" }
|
|
],
|
|
"main/timing/make times continuous" : [
|
|
{ "command" : "time/continuous/start" },
|
|
{ "command" : "time/continuous/end" }
|
|
],
|
|
"main/video" : [
|
|
{ "command" : "video/open" },
|
|
{ "command" : "video/close" },
|
|
{ "recent" : "Video" },
|
|
{ "command" : "video/open/dummy" },
|
|
{ "command" : "video/details" },
|
|
{},
|
|
{ "command" : "timecode/open" },
|
|
{ "command" : "timecode/save" },
|
|
{ "command" : "timecode/close" },
|
|
{ "recent" : "Timecodes" },
|
|
{},
|
|
{ "command" : "keyframe/open" },
|
|
{ "command" : "keyframe/save" },
|
|
{ "command" : "keyframe/close" },
|
|
{ "recent" : "Keyframes" },
|
|
{},
|
|
{ "command" : "video/detach" },
|
|
{ "submenu" : "main/video/set zoom", "text" : "Set Zoom" },
|
|
{ "submenu" : "main/video/override ar", "text" : "Override AR" },
|
|
{ "command" : "video/show_overscan" },
|
|
{},
|
|
{ "command" : "video/jump" },
|
|
{ "command" : "video/jump/start" },
|
|
{ "command" : "video/jump/end" }
|
|
],
|
|
"main/video/set zoom" : [
|
|
{ "command" : "video/zoom/50" },
|
|
{ "command" : "video/zoom/100" },
|
|
{ "command" : "video/zoom/200" }
|
|
],
|
|
"main/video/override ar" : [
|
|
{ "command" : "video/aspect/default" },
|
|
{ "command" : "video/aspect/full" },
|
|
{ "command" : "video/aspect/wide" },
|
|
{ "command" : "video/aspect/cinematic" },
|
|
{ "command" : "video/aspect/custom" }
|
|
],
|
|
"main/audio" : [
|
|
{ "command" : "audio/open" },
|
|
{ "command" : "audio/open/video" },
|
|
{ "command" : "audio/close" },
|
|
{ "recent" : "Audio" },
|
|
{},
|
|
{ "command" : "audio/view/spectrum" },
|
|
{ "command" : "audio/view/waveform" },
|
|
{ "command" : "audio/open/blank" },
|
|
{ "command" : "audio/open/noise" }
|
|
],
|
|
"main/automation" : [
|
|
{ "command" : "am/manager" },
|
|
{}
|
|
],
|
|
"main/view" : [
|
|
{ "command" : "app/language" },
|
|
{ "command" : "app/options", "special" : "options" },
|
|
{},
|
|
{ "command" : "app/display/subs" },
|
|
{ "command" : "app/display/video_subs" },
|
|
{ "command" : "app/display/audio_subs" },
|
|
{ "command" : "app/display/full" },
|
|
{},
|
|
{ "command" : "grid/tags/show" },
|
|
{ "command" : "grid/tags/simplify" },
|
|
{ "command" : "grid/tags/hide" }
|
|
],
|
|
"main/help" : [
|
|
{ "command" : "help/contents" },
|
|
{},
|
|
{ "command" : "help/files" },
|
|
{ "command" : "help/website" },
|
|
{ "command" : "help/forums" },
|
|
{ "command" : "help/bugs" },
|
|
{},
|
|
{ "command" : "help/irc" },
|
|
{ "command" : "app/updates" },
|
|
{ "command" : "app/about", "special" : "about" },
|
|
{ "command" : "app/log" }
|
|
]
|
|
}
|