Left Half / Right Half Maximize
[wmaker-crm.git] / src / keybind.h
1 /*
2  *  Window Maker window manager
3  *
4  *  Copyright (c) 1997-2003 Alfredo K. Kojima
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19  *  USA.
20  */
21
22
23
24 /* anywhere */
25 #define WKBD_ROOTMENU           0
26 #define WKBD_WINDOWMENU         1
27 #define WKBD_WINDOWLIST         2
28 /* window */
29 #define WKBD_MINIATURIZE        3
30 #define WKBD_HIDE               4
31 #define WKBD_HIDE_OTHERS        5
32 #define WKBD_MAXIMIZE           6
33 #define WKBD_VMAXIMIZE          7
34 #define WKBD_HMAXIMIZE          8
35 #define WKBD_LHMAXIMIZE         9
36 #define WKBD_RHMAXIMIZE         10
37 #define WKBD_SELECT             11
38 /* Clip */
39 #define WKBD_CLIPLOWER          12
40 #define WKBD_CLIPRAISE          13
41 #define WKBD_CLIPRAISELOWER     14
42 /* window */
43 #define WKBD_RAISE              15
44 #define WKBD_LOWER              16
45 #define WKBD_RAISELOWER         17
46 #define WKBD_MOVERESIZE         18
47 #define WKBD_SHADE              19
48 /* window, menu */
49 #define WKBD_CLOSE              20
50 /* window */
51 #define WKBD_FOCUSNEXT          21
52 #define WKBD_FOCUSPREV          22
53
54 #define WKBD_WORKSPACE1         23
55 #define WKBD_WORKSPACE2         24
56 #define WKBD_WORKSPACE3         25
57 #define WKBD_WORKSPACE4         26
58 #define WKBD_WORKSPACE5         27
59 #define WKBD_WORKSPACE6         28
60 #define WKBD_WORKSPACE7         29
61 #define WKBD_WORKSPACE8         30
62 #define WKBD_WORKSPACE9         31
63 #define WKBD_WORKSPACE10        32
64 #define WKBD_NEXTWORKSPACE      33
65 #define WKBD_PREVWORKSPACE      34
66 #define WKBD_NEXTWSLAYER        35
67 #define WKBD_PREVWSLAYER        36
68
69 /* window shortcuts */
70 #define WKBD_WINDOW1            37
71 #define WKBD_WINDOW2            38
72 #define WKBD_WINDOW3            39
73 #define WKBD_WINDOW4            40
74 #define WKBD_WINDOW5            41
75 #define WKBD_WINDOW6            42
76 #define WKBD_WINDOW7            43
77 #define WKBD_WINDOW8            44
78 #define WKBD_WINDOW9            45
79 #define WKBD_WINDOW10           46
80
81 #define WKBD_SWITCH_SCREEN      47
82
83 #ifdef KEEP_XKB_LOCK_STATUS
84 # define WKBD_TOGGLE            48
85 # define WKBD_TMP               49
86 #else
87 # define WKBD_TMP               48
88 #endif
89
90 #ifdef VIRTUAL_DESKTOP
91 # define WKBD_VDESK_LEFT        WKBD_TMP
92 # define WKBD_VDESK_RIGHT       (WKBD_TMP+1)
93 # define WKBD_VDESK_UP          (WKBD_TMP+2)
94 # define WKBD_VDESK_DOWN        (WKBD_TMP+3)
95 # define WKBD_LAST              (WKBD_TMP+4)
96 #else
97 # define WKBD_LAST              WKBD_TMP
98 #endif /* VIRTUAL_DESKTOP */
99
100
101 typedef struct WShortKey {
102     unsigned int modifier;
103     KeyCode keycode;
104 } WShortKey;
105
106 void wKeyboardInitialize();