annotate gui/wm/wsmkeys.h @ 26720:d68c3cd43cd4

Change subtitle selection order by giving "indirect" ways of specifying the desired subtitle track the least priority. Selection of displayed subtitles by language (-slang) and default track attribute is only performed if all other ways have failed. They are not directly controllable by the user (especially default tracks), therefore they should not override -sub, -vobsub and even auto-subs. Based on a patch by Sergey Malkovsky (mplayer.win32_gmail_com).
author eugeni
date Mon, 12 May 2008 20:40:39 +0000
parents b0a7b35b78d2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26458
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
1 /*
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
2 * This file is part of MPlayer.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
3 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
5 * it under the terms of the GNU General Public License as published by
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
7 * (at your option) any later version.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
8 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
12 * GNU General Public License for more details.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
13 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
14 * You should have received a copy of the GNU General Public License along
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
17 */
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25244
diff changeset
19 #ifndef MPLAYER_GUI_WSMKEYS_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25244
diff changeset
20 #define MPLAYER_GUI_WSMKEYS_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22 #include "wskeys.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23
25244
0798448dcbea Make wsKeyNames array const
reimar
parents: 23684
diff changeset
24 const TwsKeyNames wsKeyNames[ wsKeyNumber ] =
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 { wsq, "q" }, { wsa, "a" }, { wsz, "z" }, { wsw, "w" }, { wss, "s" }, { wsx, "x" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 { wse, "e" }, { wsd, "d" }, { wsr, "r" }, { wsf, "f" }, { wsv, "v" }, { wst, "t" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 { wsg, "g" }, { wsb, "b" }, { wsy, "y" }, { wsh, "h" }, { wsn, "n" }, { wsu, "u" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 { wsj, "j" }, { wsm, "m" }, { wsi, "i" }, { wsk, "k" }, { wso, "o" }, { wsl, "l" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 { wsp, "p" }, { wsc, "c" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 { wsQ, "Q" }, { wsA, "A" }, { wsZ, "Z" }, { wsW, "W" }, { wsS, "S" }, { wsX, "X" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 { wsE, "E" }, { wsD, "D" }, { wsR, "R" }, { wsF, "F" }, { wsV, "V" }, { wsT, "T" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 { wsG, "G" }, { wsB, "B" }, { wsY, "Y" }, { wsH, "H" }, { wsN, "N" }, { wsU, "U" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 { wsJ, "J" }, { wsM, "M" }, { wsI, "I" }, { wsK, "K" }, { wsO, "O" }, { wsL, "L" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 { wsP, "P" }, { wsC, "C" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 { wsUp, "Up" }, { wsDown, "Down" }, { wsLeft, "Left" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 { wsRight, "Right" }, { wsPageUp, "PageUp" }, { wsPageDown, "PageDown" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 { wsLeftCtrl, "LeftCtrl" }, { wsRightCtrl, "RightCtrl" }, { wsLeftAlt, "LeftAlt" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 { wsRightAlt, "RightAlt" }, { wsLeftShift, "LeftShift" }, { wsRightShift, "RightShift" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 { wsBackSpace, "BackSpace" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 { wsCapsLock, "CapsLock" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 { wsNumLock, "NumLock" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 { wsF1, "F1" }, { wsF2, "F2" }, { wsF3, "F3" }, { wsF4, "F4" }, { wsF5, "F5" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 { wsF6, "F6" }, { wsF7, "F7" }, { wsF8, "F8" }, { wsF9, "F9" }, { wsF10, "F10" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 { wsF11, "F11" }, { wsF12, "F12" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 { wsEnter, "Enter" }, { wsTab, "Tab" }, { wsSpace, "Space" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 { wsInsert, "Insert" }, { wsDelete, "Delete" }, { wsHome, "Home" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 { wsEnd, "End" }, { wsEscape, "Escape" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 { wsosbrackets, "[" }, { wscsbrackets, "]" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 { wsMore, "<" }, { wsLess, ">" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 { wsMinus, "-" }, { wsPlus, "+" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 { wsMul, "*" }, { wsDiv, "/" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 { ws0, "0" }, { ws1, "1" }, { ws2, "2" }, { ws3, "3" }, { ws4, "4" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 { ws5, "5" }, { ws6, "6" }, { ws7, "7" }, { ws8, "8" }, { ws9, "9" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
65 { wsGrayEnter, "GrayEnter" }, { wsGrayPlus, "GrayPlus" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66 { wsGrayMinus, "GrayMinus" }, { wsGrayMul, "GrayMul" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 { wsGrayDiv, "GrayDiv" }, { wsGrayInsert, "GrayInsert" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 { wsGrayDelete, "GrayDelete" }, { wsGrayEnd, "GrayEnd" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 { wsGrayDown, "GrayDown" }, { wsGrayPageDown, "GrayPageDown" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 { wsGrayLeft, "GrayLeft" }, { wsGray5, "Gray5" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 { wsGrayRight, "GrayRight" }, { wsGrayHome, "GrayHome" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 { wsGrayUp, "GrayUp" }, { wsGrayPageUp, "GrayPageUp" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 { wsXF86LowerVolume, "XF86LowerVolume" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 { wsXF86RaiseVolume, "XF86RaiseVolume" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 { wsXF86Mute, "XF86Mute" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 { wsXF86Play, "XF86Play" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 { wsXF86Stop, "XF86Stop" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 { wsXF86Prev, "XF86Prev" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 { wsXF86Next, "XF86Next" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 { wsXF86Media, "XF86Media" },
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 { wsKeyNone, "None" }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 };
23684
39da13b211b6 Add multiple inclusion guard.
diego
parents: 23077
diff changeset
85
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25244
diff changeset
86 #endif /* MPLAYER_GUI_WSMKEYS_H */