Make two text strings translatable
[wmaker-crm.git] / src / keybind.h
blob11f02111b2b695ae81efa6a0957be4cf83a932a1
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
5 * Copyright (c) 2014 Window Maker Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef WMKEYBIND_H
23 #define WMKEYBIND_H
25 /* <X11/X.h> doesn't define these, even though XFree supports them */
26 #ifndef Button6
27 #define Button6 6
28 #endif
30 #ifndef Button7
31 #define Button7 7
32 #endif
34 #ifndef Button8
35 #define Button8 8
36 #endif
38 #ifndef Button9
39 #define Button9 9
40 #endif
42 enum {
43 /* anywhere */
44 WKBD_ROOTMENU,
45 WKBD_WINDOWMENU,
46 WKBD_WINDOWLIST,
48 /* window */
49 WKBD_MINIATURIZE,
50 WKBD_MINIMIZEALL,
51 WKBD_HIDE,
52 WKBD_HIDE_OTHERS,
53 WKBD_MAXIMIZE,
54 WKBD_VMAXIMIZE,
55 WKBD_HMAXIMIZE,
56 WKBD_LHMAXIMIZE,
57 WKBD_RHMAXIMIZE,
58 WKBD_THMAXIMIZE,
59 WKBD_BHMAXIMIZE,
60 WKBD_LTCMAXIMIZE,
61 WKBD_RTCMAXIMIZE,
62 WKBD_LBCMAXIMIZE,
63 WKBD_RBCMAXIMIZE,
64 WKBD_MAXIMUS,
65 WKBD_SELECT,
66 WKBD_RAISE,
67 WKBD_LOWER,
68 WKBD_RAISELOWER,
69 WKBD_MOVERESIZE,
70 WKBD_SHADE,
71 WKBD_FOCUSNEXT,
72 WKBD_FOCUSPREV,
73 WKBD_GROUPNEXT,
74 WKBD_GROUPPREV,
76 /* window, menu */
77 WKBD_CLOSE,
79 /* Dock */
80 WKBD_DOCKRAISELOWER,
82 /* Clip */
83 WKBD_CLIPRAISELOWER,
85 /* workspace */
86 WKBD_WORKSPACE1,
87 WKBD_WORKSPACE2,
88 WKBD_WORKSPACE3,
89 WKBD_WORKSPACE4,
90 WKBD_WORKSPACE5,
91 WKBD_WORKSPACE6,
92 WKBD_WORKSPACE7,
93 WKBD_WORKSPACE8,
94 WKBD_WORKSPACE9,
95 WKBD_WORKSPACE10,
96 WKBD_NEXTWORKSPACE,
97 WKBD_PREVWORKSPACE,
98 WKBD_LASTWORKSPACE,
99 WKBD_NEXTWSLAYER,
100 WKBD_PREVWSLAYER,
102 /* move to workspace */
103 WKBD_MOVE_WORKSPACE1,
104 WKBD_MOVE_WORKSPACE2,
105 WKBD_MOVE_WORKSPACE3,
106 WKBD_MOVE_WORKSPACE4,
107 WKBD_MOVE_WORKSPACE5,
108 WKBD_MOVE_WORKSPACE6,
109 WKBD_MOVE_WORKSPACE7,
110 WKBD_MOVE_WORKSPACE8,
111 WKBD_MOVE_WORKSPACE9,
112 WKBD_MOVE_WORKSPACE10,
113 WKBD_MOVE_NEXTWORKSPACE,
114 WKBD_MOVE_PREVWORKSPACE,
115 WKBD_MOVE_LASTWORKSPACE,
116 WKBD_MOVE_NEXTWSLAYER,
117 WKBD_MOVE_PREVWSLAYER,
119 /* window shortcuts */
120 WKBD_WINDOW1,
121 WKBD_WINDOW2,
122 WKBD_WINDOW3,
123 WKBD_WINDOW4,
124 WKBD_WINDOW5,
125 WKBD_WINDOW6,
126 WKBD_WINDOW7,
127 WKBD_WINDOW8,
128 WKBD_WINDOW9,
129 WKBD_WINDOW10,
131 /* launch a new instance of the active window */
132 WKBD_RELAUNCH,
134 /* screen */
135 WKBD_SWITCH_SCREEN,
137 /* open "run" dialog */
138 WKBD_RUN,
140 #ifdef KEEP_XKB_LOCK_STATUS
141 WKBD_TOGGLE,
142 #endif
143 /* keep this last */
144 WKBD_LAST
147 typedef struct WShortKey {
148 unsigned int modifier;
149 KeyCode keycode;
150 } WShortKey;
152 /* ---[ Global Variables ]------------------------------------------------ */
154 extern WShortKey wKeyBindings[WKBD_LAST];
156 /* ---[ Functions ]------------------------------------------------------- */
158 void wKeyboardInitialize(void);
160 #endif /* WMKEYBIND_H */