SameBoy/gtk3/resources/gtk/menus-common.ui

431 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
The MIT License (MIT)
Copyright (c) 2015-2019 Lior Halphon
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Author: Maximilian Mader
-->
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- menubar is in common since on ubuntu would be picked from menus-traditional, and on osx from menus -->
<menu id="menubar">
<section>
<submenu>
<attribute name="label" translatable="yes">_SameBoy</attribute>
<section>
<attribute name="id">sameboy-section-0</attribute>
<item>
<attribute name="label" translatable="yes">About SameBoy</attribute>
<attribute name="action">app.about</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
</section>
<section>
<attribute name="id">sameboy-section-1</attribute>
<item>
<attribute name="label" translatable="yes">Hide SameBoy</attribute>
<attribute name="action">app.hide_app</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Hide Others</attribute>
<attribute name="action">app.hide_others</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Show All</attribute>
<attribute name="action">app.show_all</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Quit SameBoy</attribute>
<attribute name="action">app.quit</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_File</attribute>
<section>
<attribute name="id">file-section-0</attribute>
<item>
<attribute name="label" translatable="yes">_Open</attribute>
<attribute name="action">win.open</attribute>
</item>
<submenu>
<attribute name="label" translatable="yes">Open _Recent</attribute>
<section>
<attribute name="id">recent-files-section</attribute>
</section>
</submenu>
</section>
<section>
<attribute name="id">file-section-1</attribute>
<item>
<attribute name="label" translatable="yes">Close</attribute>
<attribute name="action">win.close</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Edit</attribute>
<section>
<attribute name="id">edit-section-0</attribute>
<item>
<attribute name="label" translatable="yes">Undo</attribute>
<attribute name="action">win.undo</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Redo</attribute>
<attribute name="action">win.redo</attribute>
</item>
</section>
<section>
<attribute name="id">edit-section-1</attribute>
<item>
<attribute name="label" translatable="yes">Cut</attribute>
<attribute name="action">win.cut</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Copy</attribute>
<attribute name="action">win.copy</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Paste</attribute>
<attribute name="action">win.paste</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Delete</attribute>
<attribute name="action">win.delete</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Select All</attribute>
<attribute name="action">win.select_all</attribute>
</item>
</section>
<section>
<submenu>
<attribute name="label" translatable="yes">Find</attribute>
<section>
<attribute name="id">find-section-0</attribute>
<item>
<attribute name="label" translatable="yes">Find…</attribute>
<attribute name="action">win.find</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Find Next</attribute>
<attribute name="action">win.find_next</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Find Previous</attribute>
<attribute name="action">win.find_previous</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Use Selection for Find</attribute>
<attribute name="action">win.find_selection</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Jump to Selection</attribute>
<attribute name="action">win.jump_selection</attribute>
</item>
</section>
</submenu>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">E_mulation</attribute>
<section>
<attribute name="id">emulation-section-0</attribute>
<item>
<attribute name="label" translatable="yes">Reset</attribute>
<attribute name="action">win.reset</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Pause</attribute>
<attribute name="action">win.pause</attribute>
</item>
</section>
<section>
<attribute name="id">emulation-section-1</attribute>
<submenu>
<attribute name="label" translatable="yes">Save State</attribute>
<item>
<attribute name="label" translatable="yes">Slot 1</attribute>
<attribute name="save_slot">0</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 2</attribute>
<attribute name="save_slot">1</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 3</attribute>
<attribute name="save_slot">2</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 4</attribute>
<attribute name="save_slot">3</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 5</attribute>
<attribute name="save_slot">4</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 6</attribute>
<attribute name="save_slot">5</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 7</attribute>
<attribute name="save_slot">6</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 8</attribute>
<attribute name="save_slot">7</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 9</attribute>
<attribute name="save_slot">8</attribute>
<attribute name="action">win.save_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 10</attribute>
<attribute name="save_slot">9</attribute>
<attribute name="action">win.save_state</attribute>
</item>
</submenu>
<submenu>
<attribute name="label" translatable="yes">Save State</attribute>
<item>
<attribute name="label" translatable="yes">Slot 1</attribute>
<attribute name="save_slot">0</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 2</attribute>
<attribute name="save_slot">1</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 3</attribute>
<attribute name="save_slot">2</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 4</attribute>
<attribute name="save_slot">3</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 5</attribute>
<attribute name="save_slot">4</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 6</attribute>
<attribute name="save_slot">5</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 7</attribute>
<attribute name="save_slot">6</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 8</attribute>
<attribute name="save_slot">7</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 9</attribute>
<attribute name="save_slot">8</attribute>
<attribute name="action">win.load_state</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Slot 10</attribute>
<attribute name="save_slot">9</attribute>
<attribute name="action">win.load_state</attribute>
</item>
</submenu>
</section>
<section>
<attribute name="id">emulation-section-2</attribute>
<item>
<attribute name="label" translatable="yes">Game Boy</attribute>
<attribute name="action">win.change_model</attribute>
<attribute name="model">DMG</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Super Game Boy</attribute>
<attribute name="action">win.change_model</attribute>
<attribute name="model">SGB</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Game Boy Color</attribute>
<attribute name="action">win.change_model</attribute>
<attribute name="model">CGB</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Game Boy Advance</attribute>
<attribute name="action">win.change_model</attribute>
<attribute name="model">AGB</attribute>
</item>
</section>
<section>
<attribute name="id">emulation-section-3</attribute>
<item>
<attribute name="label" translatable="yes">Mute Sound</attribute>
<attribute name="action">win.toggle_mute</attribute>
</item>
</section>
<section>
<attribute name="id">emulation-section-4</attribute>
<item>
<attribute name="label" translatable="yes">Blend Frames</attribute>
<attribute name="action">win.toggle_blend_frames</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Connectivity</attribute>
<section>
<attribute name="id">connectivity-section-0</attribute>
<item>
<attribute name="label" translatable="yes">None</attribute>
<attribute name="action">win.change_serial_device</attribute>
<attribute name="serial_device">none</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Game Boy Printer</attribute>
<attribute name="action">win.change_serial_device</attribute>
<attribute name="serial_device">gb_printer</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Developer</attribute>
<section>
<attribute name="id">developer-section-0</attribute>
<item>
<attribute name="label" translatable="yes">Developer Mode</attribute>
<attribute name="action">win.toggle_developer_mode</attribute>
</item>
</section>
<section>
<attribute name="id">developer-section-1</attribute>
<item>
<attribute name="label" translatable="yes">Show Console</attribute>
<attribute name="action">win.show_console</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Clear Console</attribute>
<attribute name="action">win.clear_console</attribute>
</item>
</section>
<section>
<attribute name="id">developer-section-2</attribute>
<item>
<attribute name="label" translatable="yes">Break Debugger</attribute>
<attribute name="action">win.break_debugger</attribute>
</item>
</section>
<section>
<attribute name="id">developer-section-3</attribute>
<item>
<attribute name="label" translatable="yes">Show Memory Viewer</attribute>
<attribute name="action">win.open_memory_viewer</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Show VRAM Viewer</attribute>
<attribute name="action">win.open_vram_viewer</attribute>
</item>
</section>
<section>
<attribute name="id">developer-section-4</attribute>
<item>
<attribute name="label" translatable="yes">Show GTK Debugger</attribute>
<attribute name="action">app.open_gtk_debugger</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Window</attribute>
<section>
<attribute name="id">window-section-0</attribute>
<item>
<attribute name="label" translatable="yes">Minimize</attribute>
<attribute name="action">win.minimize</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Zoom</attribute>
<attribute name="action">win.zoom</attribute>
</item>
</section>
<section>
<attribute name="id">window-section-1</attribute>
<item>
<attribute name="label" translatable="yes">Bring All to Front</attribute>
<attribute name="action">win.bring_to_front</attribute>
</item>
</section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Help</attribute>
<section>
<attribute name="id">help-section-0</attribute>
<item>
<attribute name="label" translatable="yes">SameBoy Help</attribute>
<attribute name="action">win.help</attribute>
</item>
</section>
</submenu>
</section>
</menu>
</interface>