<keybindings name="default">
    <binding key="UP" cmd="menu up" />
    <binding key="DOWN" cmd="menu down" />
    <binding key="LEFT" cmd="menu left" />
    <binding key="RIGHT" cmd="menu right" />
    <binding key="ENTER" cmd="menu ok" />
    <binding key="ESC" cmd="menu cancel" />
    <binding key="HOME" cmd="menu home" />
    <binding key="END" cmd="menu end" />
    <binding key="PGUP" cmd="menu pageup" />
    <binding key="PGDWN" cmd="menu pagedown" />
    <binding key="JOY_UP" cmd="menu up" />
    <binding key="JOY_DOWN" cmd="menu down" />
    <binding key="JOY_LEFT" cmd="menu left" />
    <binding key="JOY_RIGHT" cmd="menu right" />
    <binding key="JOY_BTN0" cmd="menu ok" />
    <binding key="JOY_BTN1" cmd="menu cancel" />
    <binding key="AR_VUP" cmd="menu up" />
    <binding key="AR_VDOWN" cmd="menu down" />
    <binding key="AR_PREV" cmd="menu left" />
    <binding key="AR_NEXT" cmd="menu right" />
    <binding key="AR_PLAY" cmd="menu ok" />
    <binding key="AR_MENU" cmd="menu cancel" />
    <binding key="AR_PREV_HOLD" cmd="menu home" />
    <binding key="AR_NEXT_HOLD" cmd="menu end" />
    <binding key="MOUSE_BTN0" cmd="menu click" />
    <binding key="MOUSE_BTN2" cmd="menu cancel" />
</keybindings>
<keybindings name="list" parent="default">
    <binding key="AR_PREV" cmd="menu pageup" />
    <binding key="AR_NEXT" cmd="menu pagedown" />
</keybindings>
<keybindings name="filesel" parent="list">
    <binding key="BS" cmd="menu left" />
</keybindings>
<keybindings name="chapsel" parent="list" />
<keybindings name="cmdlist" parent="list">
    <binding key="AR_PREV" cmd="menu left" />
    <binding key="AR_NEXT" cmd="menu right" />
</keybindings>
<keybindings name="txt" parent="list" />
<keybindings name="pt" parent="list" />
<keybindings name="pref" parent="list">
    <binding key="AR_PREV" cmd="menu left" />
    <binding key="AR_NEXT" cmd="menu right" />
    <binding key="AR_PREV_HOLD" cmd="menu left" />
    <binding key="AR_NEXT_HOLD" cmd="menu right" />
</keybindings>

<txt name="man" file="manpage.txt"/>

<filesel name="open_file" file-action="loadfile '%p' menu cancel"
    title="File: %p" />
<filesel name="open_list" file-action="loadlist '%p' menu cancel"
    title="List: %p" />
<filesel name="open_sub" file-action="sub_load '%p' menu cancel"
    title="Subtitle: %p" />

<chapsel name="select_chapter" />

<pt name="jump_to"/>

<console name="console0" height="80" vspace="0">Welcome to MPlayer</console>

<pref name="general_pref" title="General" ptr=">">
    <e property="osdlevel" name="OSD level"/>
    <e property="speed" name="Speed"/>
</pref>

<pref name="demuxer_pref" title="Demuxer">
</pref>


<pref name="osd_sub_pref" title="Subtitles" ptr=">">
    <e property="sub" name="Subtitle"/>
    <e property="sub_visibility" name="Visible"/>
    <e property="sub_forced_only" name="Forced only"/>
    <e property="sub_alignment" name="Alignment"/>
    <e property="sub_pos" name="Position"/>
    <e property="sub_delay" name="Delay"/>
</pref>

<pref name="audio_pref" title="Ses" ptr=">">
    <e property="switch_audio" name="Switch audio"/>
    <e property="volume" name="Volume"/>
    <e property="mute" name="Mute"/>
    <e property="audio_delay" name="Delay"/>
</pref>

<pref name="colors_pref" title="Colors" ptr=">">
    <e property="gamma" name="Gamma"/>
    <e property="brightness" name="Brightness"/>
    <e property="contrast" name="Contrast"/>
    <e property="saturation" name="Saturation"/>
    <e property="hue" name="Hue"/>
</pref>

<cmdlist name="aspect_ratio" title="Aspect Ratio" ptr=">">
    <e name="4 / 3" ok="switch_ratio 1.3333"/>
    <e name="16 / 9" ok="switch_ratio 1.7777"/>
    <e name="1 / 1" ok="switch_ratio 1.0"/>
    <e name="2.3" ok="switch_ratio 2.21"/>
    <e name="1.85" ok="switch_ratio 1.85"/>
    <e name="1.2" ok="switch_ratio 1.2"/>
    <e name="Automatic" ok="switch_ratio 0"/>
    <e name="Back" ok="menu cancel"/>
</cmdlist>

<pref name="video_pref" title="Video             " ptr=">">
    <e property="fullscreen" name="Fullscreen"/>
    <menu menu="aspect_ratio"  name="Aspect ratio"/>
    <e property="panscan" name="Panscan"/>
    <menu menu="colors_pref" name="Colors"/>
    <e property="ontop" name="On top"/>
    <e property="rootwin" name="Root window"/>
    <e property="framedropping" name="Frame dropping"/>
    <e property="vsync" name="VSync"/>
</pref>


<cmdlist name="pref_main" title="Preferences" ptr=">">
    <e name="General" ok="set_menu general_pref"/>
    <e name="Audio" ok="set_menu audio_pref"/>
    <e name="Video" ok="set_menu video_pref"/>
    <e name="Subtitle" ok="set_menu osd_sub_pref"/>
    <e name="Back" ok="menu cancel"/>
</cmdlist>

<pref name="properties" title="Properties">
    <e txt="${filename}" name="Source"/>
    <e txt="${video_format}" name="Video"/>
    <e txt="${video_bitrate}" name="Video bitrate"/>
    <e txt="${width} x ${height}" name="Resolution"/>
    <e txt="${audio_codec}" name="Audio codec"/>
    <e txt="${audio_bitrate}" name="Audio bitrate"/>
    <e txt="${samplerate}" name="Samplerate"/>
    <e txt="${metadata/Title}" name="Title"/>
    <e txt="${metadata/Artist}" name="Artist"/>
    <e txt="${metadata/Album}" name="Album"/>
    <e txt="${metadata/Year}" name="Year"/>
    <e txt="${metadata/Comment}" name="Comment"/>
    <e txt="${metadata/Track}" name="Track"/>
    <e txt="${metadata/Genre}" name="Genre"/>
    <e txt="${metadata/Software}" name="Software"/>
</pref>

<cmdlist name="load_main" title="Load     " ptr=">">
    <e name="File" ok="set_menu open_file"/>
    <e name="List" ok="set_menu open_list"/>
    <e name="Subtitle" ok="set_menu open_sub"/>
</cmdlist>

<cmdlist name="main" title="MPlayer OSD" ptr=">">
    <e name="Select from list" ok="set_menu jump_to"/>
    <e name="Load" ok="set_menu load_main"/>
    <e name="Select chapter" ok="set_menu select_chapter" left="seek_chapter -1" right="seek_chapter +1"/>
    <e name="Pause" ok="pause"/>
    <e name="Frame step" ok="frame_step"/>
    <e name="Screenshot" ok="screenshot"/>
    <e name="Previous/Next" right="pt_step 1" left="pt_step -1"/>
    <e name="Preferences" ok="set_menu pref_main"/>
    <e name="Properties" ok="set_menu properties"/>
    <e name="Console" ok="set_menu console0"/>
    <e name="Quit" ok="quit"/>
</cmdlist>


