From 3699a359885baf01e1100dc83fdcd719b0d925d1 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 18 May 2012 05:02:43 +0000 Subject: [PATCH] Add OS X-specific default config, hotkey and menu files Originally committed to SVN as r6816. --- aegisub/src/libresrc/Makefile.inc | 5 + aegisub/src/libresrc/manifest_osx.respack | 7 + aegisub/src/libresrc/osx/default_config.json | 578 +++++++++++++++ aegisub/src/libresrc/osx/default_hotkey.json | 694 +++++++++++++++++++ aegisub/src/libresrc/osx/default_menu.json | 218 ++++++ 5 files changed, 1502 insertions(+) create mode 100644 aegisub/src/libresrc/manifest_osx.respack create mode 100644 aegisub/src/libresrc/osx/default_config.json create mode 100644 aegisub/src/libresrc/osx/default_hotkey.json create mode 100644 aegisub/src/libresrc/osx/default_menu.json diff --git a/aegisub/src/libresrc/Makefile.inc b/aegisub/src/libresrc/Makefile.inc index ae45f5aa7..4d2a0b876 100644 --- a/aegisub/src/libresrc/Makefile.inc +++ b/aegisub/src/libresrc/Makefile.inc @@ -9,8 +9,13 @@ HEADER += \ libresrc/bitmap.cpp libresrc/bitmap.h: ../tools/common-respack ../tools/common-respack bitmaps/manifest.respack libresrc/bitmap.cpp libresrc/bitmap.h +ifeq (yes, $(BUILD_DARWIN)) +libresrc/default_config.cpp libresrc/default_config.h: ../tools/common-respack libresrc/*.json libresrc/osx/*.json + ../tools/common-respack libresrc/manifest_osx.respack libresrc/default_config.cpp libresrc/default_config.h +else libresrc/default_config.cpp libresrc/default_config.h: ../tools/common-respack libresrc/*.json ../tools/common-respack libresrc/manifest.respack libresrc/default_config.cpp libresrc/default_config.h +endif CLEANFILES += \ libresrc/bitmap.cpp \ diff --git a/aegisub/src/libresrc/manifest_osx.respack b/aegisub/src/libresrc/manifest_osx.respack new file mode 100644 index 000000000..be39a3ed1 --- /dev/null +++ b/aegisub/src/libresrc/manifest_osx.respack @@ -0,0 +1,7 @@ +osx/default_config.json +default_config_platform.json +osx/default_hotkey.json +osx/default_menu.json +default_mru.json +default_path.json +default_toolbar.json diff --git a/aegisub/src/libresrc/osx/default_config.json b/aegisub/src/libresrc/osx/default_config.json new file mode 100644 index 000000000..7598a5f62 --- /dev/null +++ b/aegisub/src/libresrc/osx/default_config.json @@ -0,0 +1,578 @@ +{ + "App" : { + "Auto" : { + "Backup" : true, + "Check For Updates" : true, + "Load Linked Files" : 2, + "Save" : true, + "Save Every Seconds" : 60, + "Save on Every Change" : false + }, + "Call Tips" : false, + "First Start" : true, + "Locale" : -1, + "Maximized" : false, + "Save Charset" : "UTF-8", + "Show Toolbar" : true, + "Toolbar Icon Size" : 16 + }, + + + "Audio" : { + "Auto" : { + "Commit" : false, + "Focus" : false, + "Scroll" : true + }, + "Cache" : { + "HD" : { + "Location" : "default", + "Name" : "audio%02i.tmp" + }, + "Type" : 1 + }, + "Colour Schemes" : [ + { "string" : "Green" }, + { "string" : "Icy Blue" } + ], + "Display Height" : 200, + "Display" : { + "Draw" : { + "Cursor Time" : true, + "Inactive Comments" : true, + "Keyframes in Dialogue Mode" : true, + "Keyframes in Karaoke Mode" : true, + "Seconds" : false, + "Video Position" : false + }, + "Waveform Style" : 1 + }, + "Downmixer" : "ConvertToMono", + "Drag Timing" : true, + "Inactive Lines Display Mode" : 1, + "Karaoke" : { + "Font Face" : "Verdana", + "Font Size" : 9 + }, + "Lead" : { + "IN" : 200, + "OUT" : 300 + }, + "Line Boundaries Thickness" : 2, + "Link" : true, + "Lock Scroll on Cursor" : false, + "Medusa Timing Hotkeys" : false, + "Next Line on Commit" : true, + "Player" : "", + "Plays When Stepping Video" : false, + "Provider" : "ffmpegsource", + "Renderer" : { + "Spectrum" : { + "Cutoff" : 0, + "Memory Max" : 128, + "Quality" : 1 + } + }, + "Snap" : { + "Distance" : 10, + "Enable" : false + }, + "Spectrum" : true, + "Start Drag Sensitivity" : 3, + "Volume" : 50, + "Wheel Default to Zoom" : false, + "Zoom" : { + "Horizontal" : 0, + "Vertical" : 50 + } + }, + + + "Automation" : { + "Autoreload Mode" : 1, + "Thread Priority" : 1, + "Trace Level" : 3 + }, + + + "Colour" : { + "Audio Display" : { + "Keyframe" : "rgb(255,0,255)", + "Line Boundary Inactive Line" : "rgb(190,190,190)", + "Line boundary End" : "rgb(0, 0, 216)", + "Line boundary Start" : "rgb(216, 0, 0)", + "Play Cursor" : "rgb(255,255,255)", + "Seconds Line" : "rgb(0,100,255)", + "Spectrum" : "Icy Blue", + "Syllable Boundaries" : "rgb(255,255,0)", + "Waveform" : "Green" + }, + "Schemes" : { + "Green" : { + "Normal" : { + "Hue Offset" : 85.0, + "Hue Scale" : 0.0, + "Saturation Offset" : 255.0, + "Saturation Scale" : 0.0, + "Lightness Offset" : 0.0, + "Lightness Scale" : 200.0 + }, + "Inactive" : { + "Hue Offset" : 85.0, + "Hue Scale" : 0.0, + "Saturation Offset" : 255.0, + "Saturation Scale" : 0.0, + "Lightness Offset" : 0.0, + "Lightness Scale" : 100.0 + }, + "Selection" : { + "Hue Offset" : 80.0, + "Hue Scale" : 0.0, + "Saturation Offset" : 255.0, + "Saturation Scale" : 0.0, + "Lightness Offset" : 10.0, + "Lightness Scale" : 175.0 + }, + "Primary" : { + "Hue Offset" : 85.0, + "Hue Scale" : 0.0, + "Saturation Offset" : 128.0, + "Saturation Scale" : 0.0, + "Lightness Offset" : 25.0, + "Lightness Scale" : 300.0 + }, + "UI" : { + "Light" : "rgb(0, 200, 0)", + "Dark" : "rgb(0, 10, 0)", + "Selection" : "rgb(0, 80, 0)" + }, + "UI Focused" : { + "Light" : "rgb(50, 255, 50)", + "Dark" : "rgb(0, 10, 0)", + "Selection" : "rgb(0, 80, 0)" + } + }, + "Icy Blue" : { + "Normal" : { + "Hue Offset" : 191.0, + "Hue Scale" : -128.0, + "Saturation Offset" : 127.0, + "Saturation Scale" : 128.0, + "Lightness Offset" : 0.0, + "Lightness Scale" : 255.0 + }, + "Inactive" : { + "Hue Offset" : 191.0, + "Hue Scale" : -128.0, + "Saturation Offset" : 63.0, + "Saturation Scale" : 192.0, + "Lightness Offset" : 32.0, + "Lightness Scale" : 192.0 + }, + "Selection" : { + "Hue Offset" : 191.0, + "Hue Scale" : -128.0, + "Saturation Offset" : 127.0, + "Saturation Scale" : 128.0, + "Lightness Offset" : 32.0, + "Lightness Scale" : 192.0 + }, + "Primary" : { + "Hue Offset" : 191.0, + "Hue Scale" : -128.0, + "Saturation Offset" : 127.0, + "Saturation Scale" : 128.0, + "Lightness Offset" : 64.0, + "Lightness Scale" : 192.0 + }, + "UI" : { + "Light" : "rgb(89, 145, 220)", + "Dark" : "rgb(8, 4, 13)", + "Selection" : "rgb(65, 34, 103)" + }, + "UI Focused" : { + "Light" : "rgb(205, 240, 226)", + "Dark" : "rgb(8, 4, 13)", + "Selection" : "rgb(82, 107, 213)" + } + } + }, + "Style Editor" : { + "Background" : { + "Preview" : "rgb(125, 153, 176)" + } + }, + "Subtitle Grid" : { + "Active Border" : "rgb(255, 91, 239)", + "Background" : { + "Background" : "rgb(255,255,255)", + "Comment" : "rgb(216, 222, 245)", + "Inframe" : "rgb(255, 253, 234)", + "Selected Comment" : "rgb(211, 238, 238)", + "Selection" : "rgb(206, 255, 231)" + }, + "Collision" : "rgb(255,0,0)", + "Header" : "rgb(165, 207, 231)", + "Left Column" : "rgb(196, 236, 201)", + "Lines" : "rgb(190,190,190)", + "Selection" : "rgb(0,0,0)", + "Standard" : "rgb(0,0,0)" + }, + "Subtitle" : { + "Syntax" : { + "Background" : { + "Brackets" : "", + "Comment" : "", + "Drawing" : "", + "Error" : "rgb(255, 200, 200)", + "Karaoke Template" : "", + "Karaoke Variable" : "", + "Line Break" : "", + "Normal" : "", + "Parameters" : "", + "Slashes" : "", + "Tags" : "" + }, + "Bold" : { + "Brackets" : false, + "Comment" : true, + "Drawing" : true, + "Error" : false, + "Karaoke Template" : true, + "Karaoke Variable" : true, + "Line Break" : true, + "Normal" : false, + "Parameters" : false, + "Slashes" : false, + "Tags" : true + }, + "Brackets" : "rgb(20, 50, 255)", + "Comment" : "rgb(0,0,0)", + "Drawing" : "rgb(0,0,0)", + "Error" : "rgb(200, 0, 0)", + "Karaoke Template" : "rgb(128, 0, 192)", + "Karaoke Variable" : "rgb(128, 0, 192)", + "Line Break" : "rgb(160, 160, 160)", + "Normal" : "rgb(0,0,0)", + "Parameters" : "rgb(40, 90, 40)", + "Slashes" : "rgb(255, 0, 200)", + "Tags" : "rgb(90, 90, 90)" + } + }, + "Video Dummy" : { + "Last Colour" : "rgb(47, 163, 254)" + } + }, + + "Limits" : { + "Find Replace" : 16, + "MRU" : 16, + "Undo Levels" : 50 + }, + + "Path" : { + "Auto" : { + "Backup" : "?user/autoback", + "Save" : "?user/autosave" + }, + "Automation" : { + "Autoload" : "?user/automation/autoload/|?data/automation/autoload/", + "Base" : "?data/automation/", + "Include" : "?user/automation/include/|?data/automation/include/" + }, + "Dictionary" : "?user/dictionaries", + "Fonts Collector Destination" : "?script", + "Last" : { + "Audio" : "", + "Automation" : "", + "Keyframes" : "", + "Subtitles" : "", + "Timecodes" : "", + "Video" : "" + }, + "Screenshot" : "?video" + }, + + + "Player" : { + "Audio" : { + "ALSA" : { + "Device" : "default" + }, + "DirectSound" : { + "Buffer Latency" : 100, + "Buffer Length" : 5 + }, + "OSS" : { + "Device" : "/dev/dsp" + }, + "PortAudio" : { + "Device Name" : "Default" + } + } + }, + + + "Provider" : { + "Audio" : { + "AVS" : { + "Sample Rate" : 0 + }, + "FFmpegSource" : { + "Decode Error Handling" : "stop" + }, + "PCM" : { + "Disable" : false + } + }, + "Avisynth" : { + "Allow Ancient" : false, + "Memory Max" : 64 + }, + "FFmpegSource" : { + "Cache" : { + "Files" : 20, + "Size" : 42 + }, + "Index All Tracks" : true, + "Log Level" : "quiet" + }, + "Video" : { + "Cache" : { + "Size" : 32 + }, + "FFmpegSource" : { + "Decoding Threads" : -1, + "Unsafe Seeking" : false + } + } + }, + + "Subtitle" : { + "Default Resolution" : { + "Auto" : true, + "Height" : 720, + "Width" : 1280 + }, + "Edit Box" : { + "Font Face" : "", + "Font Size" : 10 + }, + "Grid" : { + "Column" : [ + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true}, + {"bool" : true} + ], + "Focus Allow" : true, + "Font Face" : "Tahoma", + "Font Size" : 8, + "Hide Overrides" : 1, + "Hide Overrides Char" : "☀", + "Highlight Subtitles in Frame" : true + }, + "Highlight" : { + "Syntax" : true + }, + "Provider" : "libass", + "Time Edit" : { + "Insert Mode" : true + } + }, + + "Subtitle Format" : { + "EBU STL" : { + "Display Standard" : 0, + "Inclusive End Times" : true, + "Line Wrapping Mode" : 1, + "Max Line Length" : 42, + "TV Standard" : 0, + "Text Encoding" : 0, + "Timecode Offset" : { + "H" : 0, + "M" : 0, + "S" : 0, + "F" : 0 + }, + "Translate Alignments" : true + } + }, + + "Timing" : { + "Default Duration" : 2000 + }, + + "Tool" : { + "Colour Picker" : { + "Mode" : 4, + "Recent" : "&H000000& &H0000FF& &H00FFFF& &H00FF00& &HFFFF00& &HFF0000& &HFF00FF& &HFFFFFF&", + "Last" : { + "X" : -1, + "Y" : -1 + }, + "Maximized" : false + }, + "Fonts Collector" : { + "Action" : 0 + }, + "Import" : { + "Text" : { + "Actor Separator" : ":", + "Comment Starter" : "#" + } + }, + "Kanji Timer" : { + "Interpolation" : true + }, + "Paste Lines Over" : { + "Fields" : [ + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : false}, + {"bool" : true} + ] + }, + "Preferences" : { + "Page" : 0 + }, + "Search Replace" : { + "Affect" : 0, + "Field" : 0, + "Match Case" : false, + "RegExp" : false, + "Video Update" : false + }, + "Select Lines" : { + "Action" : 0, + "Condition" : 0, + "Field" : 0, + "Match" : { + "Case" : false, + "Comment" : false, + "Dialogue" : true + }, + "Mode" : 1, + "Text" : "" + }, + "Shift Times" : { + "Affect" : 0, + "ByTime" : true, + "Direction" : true, + "Frames" : 0, + "Time" : 0, + "Type" : 0 + }, + "Spell Checker" : { + "Backend" : "hunspell", + "Language" : "en_US", + "Skip Comments" : false + }, + "Style Editor" : { + "Last" : { + "Height" : -1, + "Width" : -1, + "X" : -1, + "Y" : -1 + }, + "Maximized" : false, + "Preview Text" : "Aegisub\\N0123 月語" + }, + "Style Manager" : { + "Last" : { + "X" : -1, + "Y" : -1 + }, + "Maximized" : false + }, + "Styling Assistant" : { + "Last" : { + "X" : -1, + "Y" : -1 + }, + "Maximized" : false + }, + "Thesaurus" : { + "Language" : "en_US" + }, + "Timing Post Processor" : { + "Adjacent Bias" : 0.9000000000000000222, + "Enable" : { + "Adjacent" : true, + "Keyframe" : true, + "Lead" : { + "IN" : true, + "OUT" : true + } + }, + "Only Selection" : false, + "Threshold" : { + "Adjacent Gap" : 300, + "Adjacent Overlap" : 50, + "Key End After" : 250, + "Key End Before" : 200, + "Key Start After" : 150, + "Key Start Before" : 200 + } + }, + "Translation Assistant" : { + "Last" : { + "X" : -1, + "Y" : -1 + }, + "Maximized" : false + }, + "Visual" : { + "Autohide": false + } + }, + + "Version" : { + "Id" : "$Id$", + "Last Version" : 4040, + "Next Check" : 0 + }, + + "Video" : { + "Check Script Res" : 1, + "Default Zoom" : 7, + "Detached" : { + "Enabled" : false, + "Last" : { + "X" : -1, + "Y" : -1 + }, + "Maximized" : false + }, + "Dummy" : { + "FPS" : 23.975999999999999091, + "Last" : { + "Height" : 480, + "Length" : 40000, + "Width" : 640 + }, + "Pattern" : false + }, + "Force BT.601" : true, + "Open Audio" : false, + "Overscan Mask" : false, + "Provider" : "ffmpegsource", + "Slider" : { + "Fast Jump Step" : 10, + "Show Keyframes" : true + }, + "Subtitle Sync" : true + } +} diff --git a/aegisub/src/libresrc/osx/default_hotkey.json b/aegisub/src/libresrc/osx/default_hotkey.json new file mode 100644 index 000000000..dfea1c960 --- /dev/null +++ b/aegisub/src/libresrc/osx/default_hotkey.json @@ -0,0 +1,694 @@ +{ + "Always" : { + "audio/play/selection" : [ + { + "modifiers" : [], + "key" : "KP_5" + } + ], + "audio/stop" : [ + { + "modifiers" : [], + "key" : "KP_8" + } + ], + "timing shift start backward" : [ + { + "modifiers" : [], + "key" : "KP_4" + } + ], + "timing shift start forward" : [ + { + "modifiers" : [], + "key" : "KP_6" + } + ], + "timing shift end backward" : [ + { + "modifiers" : [], + "key" : "KP_7" + } + ], + "timing shift end forward" : [ + { + "modifiers" : [], + "key" : "KP_9" + } + ], + "audio/play/selection/before" : [ + { + "modifiers" : [], + "key" : "KP_1" + } + ], + "audio/play/selection/after" : [ + { + "modifiers" : [], + "key" : "KP_3" + } + ], + "time/prev" : [ + { + "modifiers" : [], + "key" : "KP_0" + } + ], + "time/next" : [ + { + "modifiers" : [], + "key" : "KP_2" + } + ], + "audio/commit" : [ + { + "modifiers" : [], + "key" : "KP_Enter" + } + ] + }, + + + "Default" : { + "app/exit" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Q" + } + ], + "app/options" : [ + { + "modifiers" : [ "Alt" ], + "key" : "O" + } + ], + "edit/line/copy" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "C" + } + ], + "edit/line/cut" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "X" + } + ], + "edit/find_replace" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "H" + } + ], + "edit/line/delete" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Delete" + } + ], + "edit/line/duplicate/shift" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "D" + } + ], + "edit/line/paste" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "V" + } + ], + "edit/line/paste/over" : [ + { + "modifiers" : [ "Ctrl", "Shift" ], + "key" : "V" + } + ], + "edit/redo" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Y" + } + ], + "edit/undo" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Z" + } + ], + "grid/line/next" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_2" + } + ], + "grid/line/prev" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_8" + } + ], + "grid/move/down" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Down" + } + ], + "grid/move/up" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Up" + } + ], + "help/contents" : [ + { + "modifiers" : [], + "key" : "F1" + } + ], + "subtitle/find" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "F" + } + ], + "subtitle/find/next" : [ + { + "modifiers" : [], + "key" : "F3" + } + ], + "subtitle/new" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "N" + } + ], + "subtitle/open" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "O" + } + ], + "subtitle/save" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "S" + }, + { + "modifiers" : [], + "key" : "F2" + } + ], + "subtitle/save/as" : [ + { + "modifiers" : [ "Ctrl", "Shift" ], + "key" : "S" + } + ], + "time/frame/current" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "6" + } + ], + "time/shift" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "I" + } + ], + "time/snap/end_video" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "4" + } + ], + "time/snap/scene" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "5" + } + ], + "time/snap/start_video" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "3" + } + ], + "video/focus_seek" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Space" + } + ], + "video/frame/next" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_6" + } + ], + "video/play" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "P" + } + ], + "video/frame/prev" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_4" + } + ], + "video/jump" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "G" + } + ], + "video/jump/end" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "2" + } + ], + "video/jump/start" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "1" + } + ], + "video/zoom/in" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_Add" + } + ], + "video/zoom/out" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_Subtract" + } + ] + }, + + "Audio" : { + "audio/play/selection" : [ + { + "modifiers" : [], + "key" : "Space" + }, + { + "modifiers" : [], + "key" : "S" + } + ], + "audio/play/selection/after" : [ + { + "modifiers" : [], + "key" : "W" + } + ], + "audio/play/selection/before" : [ + { + "modifiers" : [], + "key" : "Q" + } + ], + "audio/play/toggle" : [ + { + "modifiers" : [], + "key" : "B" + } + ], + "audio/play/selection/begin" : [ + { + "modifiers" : [], + "key" : "E" + } + ], + "audio/play/selection/end" : [ + { + "modifiers" : [], + "key" : "D" + } + ], + "audio/play/to_end" : [ + { + "modifiers" : [], + "key" : "T" + } + ], + "audio/scroll/left" : [ + { + "modifiers" : [], + "key" : "A" + } + ], + "audio/scroll/right" : [ + { + "modifiers" : [], + "key" : "F" + } + ], + "audio/stop" : [ + { + "modifiers" : [], + "key" : "H" + } + ], + "audio/commit" : [ + { + "modifiers" : [], + "key" : "Enter" + }, + { + "modifiers" : [], + "key" : "G" + } + ], + "audio/commit/default" : [ + { + "modifiers" : [ "Shift" ], + "key" : "G" + } + ], + "time/lead/in" : [ + { + "modifiers" : [], + "key" : "C" + } + ], + "time/lead/out" : [ + { + "modifiers" : [], + "key" : "V" + } + ], + "timing karaoke decrease length" : [ + { + "modifiers" : [], + "key" : "KP_Subtract" + } + ], + "timing karaoke decrease length and shift following" : [ + { + "modifiers" : [ "Shift" ], + "key" : "KP_Subtract" + } + ], + "timing karaoke increase length" : [ + { + "modifiers" : [], + "key" : "KP_Add" + } + ], + "timing karaoke increase length and shift following" : [ + { + "modifiers" : [ "Shift" ], + "key" : "KP_Add" + } + ], + "time/next" : [ + { + "modifiers" : [], + "key" : "X" + }, + { + "modifiers" : [], + "key" : "Right" + } + ], + "time/prev" : [ + { + "modifiers" : [], + "key" : "Z" + }, + { + "modifiers" : [], + "key" : "Left" + } + ], + "app/toggle/global_hotkeys" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "KP_Multiply" + } + ] + }, + + "Video" : { + "video/frame/next" : [ + { + "modifiers" : [], + "key" : "Right" + } + ], + "video/frame/next/boundary" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Right" + } + ], + "video/frame/next/keyframe" : [ + { + "modifiers" : [ "Shift" ], + "key" : "Right" + } + ], + "video/frame/next/large" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Right" + } + ], + "video/frame/prev" : [ + { + "modifiers" : [], + "key" : "Left" + } + ], + "video/frame/prev/boundary" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Left" + } + ], + "video/frame/prev/keyframe" : [ + { + "modifiers" : [ "Shift" ], + "key" : "Left" + } + ], + "video/frame/prev/large" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Left" + } + ], + "video/tool/cross" : [ + { + "modifiers" : [], + "key" : "A" + } + ], + "video/tool/drag" : [ + { + "modifiers" : [], + "key" : "S" + } + ], + "video/tool/clip" : [ + { + "modifiers" : [], + "key" : "H" + } + ], + "video/tool/rotate/xy" : [ + { + "modifiers" : [], + "key" : "F" + } + ], + "video/tool/rotate/z" : [ + { + "modifiers" : [], + "key" : "D" + } + ], + "video/tool/scale" : [ + { + "modifiers" : [], + "key" : "G" + } + ], + "video/tool/vector_clip" : [ + { + "modifiers" : [], + "key" : "J" + } + ] + }, + + "Subtitle Grid" : { + "subtitle/select/all" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "A" + } + ], + "video/frame/next" : [ + { + "modifiers" : [], + "key" : "Right" + } + ], + "video/frame/next/boundary" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Right" + } + ], + "video/frame/next/keyframe" : [ + { + "modifiers" : [ "Shift" ], + "key" : "Right" + } + ], + "video/frame/next/large" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Right" + } + ], + "video/frame/prev" : [ + { + "modifiers" : [], + "key" : "Left" + } + ], + "video/frame/prev/boundary" : [ + { + "modifiers" : [ "Ctrl" ], + "key" : "Left" + } + ], + "video/frame/prev/keyframe" : [ + { + "modifiers" : [ "Shift" ], + "key" : "Left" + } + ], + "video/frame/prev/large" : [ + { + "modifiers" : [ "Alt" ], + "key" : "Left" + } + ] + }, + + "Subtitle Edit Box" : { + "grid/line/next/create" : [ + { + "modifiers" : [], + "key" : "KP_Enter" + }, + { + "modifiers" : [], + "key" : "Enter" + } + ] + }, + + "Styling Assistant" : { + "audio/play/selection" : [ + { + "modifiers" : [], + "key" : "End" + } + ], + "tool/styling_assistant/commit" : [ + { + "modifiers" : [], + "key" : "Enter" + }, + { + "modifiers" : [], + "key" : "KP_Enter" + } + ], + "grid/line/next" : [ + { + "modifiers" : [], + "key" : "PageDown" + } + ], + "grid/line/prev" : [ + { + "modifiers" : [], + "key" : "PageUp" + } + ], + "tool/styling_assistant/preview" : [ + { + "modifiers" : [], + "key" : "F8" + } + ], + "video/play/line" : [ + { + "modifiers" : [], + "key" : "Home" + } + ] + }, + + "Translation Assistant" : { + "audio/play/selection" : [ + { + "modifiers" : [], + "key" : "End" + } + ], + "tool/translation_assistant/prev" : [ + { + "modifiers" : [], + "key" : "PageUp" + } + ], + "tool/translation_assistant/commit" : [ + { + "modifiers" : [], + "key" : "Enter" + }, + { + "modifiers" : [], + "key" : "KP_Enter" + } + ], + "tool/translation_assistant/insert_original" : [ + { + "modifiers" : [], + "key" : "Insert" + } + ], + "tool/translation_assistant/next" : [ + { + "modifiers" : [], + "key" : "PageDown" + } + ], + "tool/translation_assistant/preview" : [ + { + "modifiers" : [], + "key" : "F8" + } + ], + "video/play/line" : [ + { + "modifiers" : [], + "key" : "Home" + } + ] + } +} diff --git a/aegisub/src/libresrc/osx/default_menu.json b/aegisub/src/libresrc/osx/default_menu.json new file mode 100644 index 000000000..94ec0dd8e --- /dev/null +++ b/aegisub/src/libresrc/osx/default_menu.json @@ -0,0 +1,218 @@ +{ + "grid_context" : [ + { "command" : "subtitle/insert/before", "text" : "&Insert (before)" }, + { "command" : "subtitle/insert/after", "text" : "Insert (after)" }, + { "command" : "subtitle/insert/before/videotime", "text" : "Insert at video time (before)" }, + { "command" : "subtitle/insert/after/videotime", "text" : "Insert at video time (after)" }, + {}, + { "command" : "edit/line/duplicate" }, + { "command" : "edit/line/duplicate/shift" }, + {}, + { "command" : "grid/swap" }, + { "command" : "edit/line/join/concatenate", "text" : "&Join (concatenate)" }, + { "command" : "edit/line/join/keep_first", "text" : "Join (keep first)" }, + { "command" : "edit/line/join/as_karaoke", "text" : "Join (as Karaoke)" }, + {}, + { "command" : "time/continuous/start", "text" : "&Make times continuous (change start)" }, + { "command" : "time/continuous/end", "text" : "&Make times continuous (change end)" }, + { "command" : "edit/line/recombine" }, + {}, + { "command" : "audio/save/clip" }, + {}, + { "command" : "edit/line/cut" }, + { "command" : "edit/line/copy" }, + { "command" : "edit/line/paste" }, + { "command" : "edit/line/paste/over" }, + {}, + { "command" : "edit/line/delete" } + ], + "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" }, + { "special" : "automation", "text" : "A&utomation" }, + { "submenu" : "main/view", "text" : "Vie&w" }, + { "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/find_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 All Lines" }, + { "submenu" : "main/subtitle/sort selected lines", "text" : "Sort Selected Lines" }, + { "command" : "grid/swap" }, + { "command" : "tool/line/select" }, + { "command" : "subtitle/select/all" } + ], + "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" : "grid/sort/start" }, + { "command" : "grid/sort/end" }, + { "command" : "grid/sort/style" }, + { "command" : "grid/sort/actor" }, + { "command" : "grid/sort/effect" } + ], + "main/subtitle/sort selected lines" : [ + { "command" : "grid/sort/start/selected" }, + { "command" : "grid/sort/end/selected" }, + { "command" : "grid/sort/style/selected" }, + { "command" : "grid/sort/actor/selected" }, + { "command" : "grid/sort/effect/selected" } + ], + "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/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" } + ], + "video_context" : [ + { "command" : "video/frame/save" }, + { "command" : "video/frame/copy" }, + {}, + { "command" : "video/frame/save/raw" }, + { "command" : "video/frame/copy/raw" }, + {}, + { "command" : "video/copy_coordinates" } + ] +}