2 # define DEF2( name, descr, key3, key4, fnSlot ) \
3 keys->insert( name, i18n(descr), TQString::null, key3, key4, this, TQ_SLOT(fnSlot) )
4 # define DEF( name, key3, key4, fnSlot ) \
5 keys->insert( name, i18n(name), TQString::null, key3, key4, this, TQ_SLOT(fnSlot) )
7 # define DEF2( name, descr, key3, key4, fnSlot ) \
8 keys->insert( name, i18n(descr), TQString::null, key3, key4 )
9 # define DEF( name, key3, key4, fnSlot ) \
10 keys->insert( name, i18n(name), TQString::null, key3, key4 )
13 #define WIN KKey::QtWIN
18 keys->insert(
"Program:twin", i18n(
"System") );
20 keys->insert(
"Group:Navigation", i18n(
"Navigation") );
21 DEF( I18N_NOOP(
"Walk Through Windows"), ALT+TQt::Key_Tab, ALT+TQt::Key_Tab, slotWalkThroughWindows() );
22 DEF( I18N_NOOP(
"Walk Through Windows (Reverse)"), ALT+SHIFT+TQt::Key_Tab, ALT+SHIFT+TQt::Key_Tab, slotWalkBackThroughWindows() );
23 DEF( I18N_NOOP(
"Walk Through Windows of Same Application"), ALT+TQt::Key_QuoteLeft, ALT+TQt::Key_QuoteLeft, slotWalkThroughApps() );
24 DEF( I18N_NOOP(
"Walk Through Windows of Same Application (Reverse)"), ALT+TQt::Key_AsciiTilde, ALT+TQt::Key_AsciiTilde, slotWalkBackThroughApps() );
25 DEF( I18N_NOOP(
"Walk Through Desktops"), 0, WIN+TQt::Key_Tab, slotWalkThroughDesktops() );
26 DEF( I18N_NOOP(
"Walk Through Desktops (Reverse)"), 0, WIN+SHIFT+TQt::Key_Tab, slotWalkBackThroughDesktops() );
27 DEF( I18N_NOOP(
"Walk Through Desktop List"), 0, 0, slotWalkThroughDesktopList() );
28 DEF( I18N_NOOP(
"Walk Through Desktop List (Reverse)"), 0, 0, slotWalkBackThroughDesktopList() );
30 keys->insert(
"Group:Windows", i18n(
"Windows") );
31 DEF( I18N_NOOP(
"Window Operations Menu"), ALT+TQt::Key_F3, ALT+TQt::Key_Menu, slotWindowOperations() );
32 DEF2(
"Window Close", I18N_NOOP(
"Close Window"),
33 ALT+TQt::Key_F4,
"Alt+Escape;Alt+F4", slotWindowClose() );
34 DEF2(
"Window Maximize", I18N_NOOP(
"Maximize Window"),
35 0, WIN+TQt::Key_Plus, slotWindowMaximize() );
36 DEF2(
"Window Maximize Vertical", I18N_NOOP(
"Maximize Window Vertically"),
37 0, WIN+TQt::Key_Bar, slotWindowMaximizeVertical() );
38 DEF2(
"Window Maximize Horizontal", I18N_NOOP(
"Maximize Window Horizontally"),
39 0, WIN+TQt::Key_Equal, slotWindowMaximizeHorizontal() );
40 DEF2(
"Window Minimize", I18N_NOOP(
"Minimize Window"),
41 0, WIN+TQt::Key_Minus, slotWindowMinimize() );
42 DEF2(
"Window Shade", I18N_NOOP(
"Shade Window"),
43 0, WIN+TQt::Key_Underscore, slotWindowShade() );
44 DEF2(
"Window Move", I18N_NOOP(
"Move Window"),
45 0, 0, slotWindowMove() );
46 DEF2(
"Window Resize", I18N_NOOP(
"Resize Window"),
47 0, 0, slotWindowResize() );
48 DEF2(
"Window Raise", I18N_NOOP(
"Raise Window"),
49 0, 0, slotWindowRaise() );
50 DEF2(
"Window Lower", I18N_NOOP(
"Lower Window"),
51 0, 0, slotWindowLower() );
52 DEF( I18N_NOOP(
"Toggle Window Raise/Lower"), 0, 0, slotWindowRaiseOrLower() );
53 DEF2(
"Window Fullscreen", I18N_NOOP(
"Make Window Fullscreen"),
54 0, 0, slotWindowFullScreen() );
55 DEF2(
"Window No Border", I18N_NOOP(
"Hide Window Border"),
56 0, 0, slotWindowNoBorder() );
57 DEF2(
"Window Above Other Windows", I18N_NOOP(
"Keep Window Above Others"),
58 0, 0, slotWindowAbove() );
59 DEF2(
"Window Below Other Windows", I18N_NOOP(
"Keep Window Below Others"),
60 0, 0, slotWindowBelow() );
61 DEF( I18N_NOOP(
"Activate Window Demanding Attention"), CTRL+ALT+TQt::Key_A, 0, slotActivateAttentionWindow());
62 DEF( I18N_NOOP(
"Setup Window Shortcut"), 0, 0, slotSetupWindowShortcut());
63 DEF2(
"Window Pack Right", I18N_NOOP(
"Pack Window to the Right"),
64 0, 0, slotWindowPackRight() );
65 DEF2(
"Window Pack Left", I18N_NOOP(
"Pack Window to the Left"),
66 0, 0, slotWindowPackLeft() );
67 DEF2(
"Window Pack Up", I18N_NOOP(
"Pack Window Up"),
68 0, 0, slotWindowPackUp() );
69 DEF2(
"Window Pack Down", I18N_NOOP(
"Pack Window Down"),
70 0, 0, slotWindowPackDown() );
71 DEF2(
"Window Grow Horizontal", I18N_NOOP(
"Pack Grow Window Horizontally"),
72 0, 0, slotWindowGrowHorizontal() );
73 DEF2(
"Window Grow Vertical", I18N_NOOP(
"Pack Grow Window Vertically"),
74 0, 0, slotWindowGrowVertical() );
75 DEF2(
"Window Shrink Horizontal", I18N_NOOP(
"Pack Shrink Window Horizontally"),
76 0, 0, slotWindowShrinkHorizontal() );
77 DEF2(
"Window Shrink Vertical", I18N_NOOP(
"Pack Shrink Window Vertically"),
78 0, 0, slotWindowShrinkVertical() );
80 keys->insert(
"Group:Window Desktop", i18n(
"Window & Desktop") );
81 DEF2(
"Window On All Desktops", I18N_NOOP(
"Keep Window on All Desktops"),
82 0, 0, slotWindowOnAllDesktops() );
83 DEF( I18N_NOOP(
"Window to Desktop 1"), 0, WIN+ALT+TQt::Key_F1, slotWindowToDesktop(
int) );
84 DEF( I18N_NOOP(
"Window to Desktop 2"), 0, WIN+ALT+TQt::Key_F2, slotWindowToDesktop(
int) );
85 DEF( I18N_NOOP(
"Window to Desktop 3"), 0, WIN+ALT+TQt::Key_F3, slotWindowToDesktop(
int) );
86 DEF( I18N_NOOP(
"Window to Desktop 4"), 0, WIN+ALT+TQt::Key_F4, slotWindowToDesktop(
int) );
87 DEF( I18N_NOOP(
"Window to Desktop 5"), 0, WIN+ALT+TQt::Key_F5, slotWindowToDesktop(
int) );
88 DEF( I18N_NOOP(
"Window to Desktop 6"), 0, WIN+ALT+TQt::Key_F6, slotWindowToDesktop(
int) );
89 DEF( I18N_NOOP(
"Window to Desktop 7"), 0, WIN+ALT+TQt::Key_F7, slotWindowToDesktop(
int) );
90 DEF( I18N_NOOP(
"Window to Desktop 8"), 0, WIN+ALT+TQt::Key_F8, slotWindowToDesktop(
int) );
91 DEF( I18N_NOOP(
"Window to Desktop 9"), 0, WIN+ALT+TQt::Key_F9, slotWindowToDesktop(
int) );
92 DEF( I18N_NOOP(
"Window to Desktop 10"), 0, WIN+ALT+TQt::Key_F10, slotWindowToDesktop(
int) );
93 DEF( I18N_NOOP(
"Window to Desktop 11"), 0, 0, slotWindowToDesktop(
int) );
94 DEF( I18N_NOOP(
"Window to Desktop 12"), 0, 0, slotWindowToDesktop(
int) );
95 DEF( I18N_NOOP(
"Window to Desktop 13"), 0, 0, slotWindowToDesktop(
int) );
96 DEF( I18N_NOOP(
"Window to Desktop 14"), 0, 0, slotWindowToDesktop(
int) );
97 DEF( I18N_NOOP(
"Window to Desktop 15"), 0, 0, slotWindowToDesktop(
int) );
98 DEF( I18N_NOOP(
"Window to Desktop 16"), 0, 0, slotWindowToDesktop(
int) );
99 DEF( I18N_NOOP(
"Window to Desktop 17"), 0, 0, slotWindowToDesktop(
int) );
100 DEF( I18N_NOOP(
"Window to Desktop 18"), 0, 0, slotWindowToDesktop(
int) );
101 DEF( I18N_NOOP(
"Window to Desktop 19"), 0, 0, slotWindowToDesktop(
int) );
102 DEF( I18N_NOOP(
"Window to Desktop 20"), 0, 0, slotWindowToDesktop(
int) );
103 DEF( I18N_NOOP(
"Window to Next Desktop"), 0, 0, slotWindowToNextDesktop() );
104 DEF( I18N_NOOP(
"Window to Previous Desktop"), 0, 0, slotWindowToPreviousDesktop() );
105 DEF( I18N_NOOP(
"Window One Desktop to the Right"), 0, 0, slotWindowToDesktopRight() );
106 DEF( I18N_NOOP(
"Window One Desktop to the Left"), 0, 0, slotWindowToDesktopLeft() );
107 DEF( I18N_NOOP(
"Window One Desktop Up"), 0, 0, slotWindowToDesktopUp() );
108 DEF( I18N_NOOP(
"Window One Desktop Down"), 0, 0, slotWindowToDesktopDown() );
109 DEF( I18N_NOOP(
"Window to Screen 0"), 0, 0, slotWindowToScreen(
int) );
110 DEF( I18N_NOOP(
"Window to Screen 1"), 0, 0, slotWindowToScreen(
int) );
111 DEF( I18N_NOOP(
"Window to Screen 2"), 0, 0, slotWindowToScreen(
int) );
112 DEF( I18N_NOOP(
"Window to Screen 3"), 0, 0, slotWindowToScreen(
int) );
113 DEF( I18N_NOOP(
"Window to Screen 4"), 0, 0, slotWindowToScreen(
int) );
114 DEF( I18N_NOOP(
"Window to Screen 5"), 0, 0, slotWindowToScreen(
int) );
115 DEF( I18N_NOOP(
"Window to Screen 6"), 0, 0, slotWindowToScreen(
int) );
116 DEF( I18N_NOOP(
"Window to Screen 7"), 0, 0, slotWindowToScreen(
int) );
117 DEF( I18N_NOOP(
"Window to Next Screen"), 0, 0, slotWindowToNextScreen() );
119 keys->insert(
"Group:Desktop Switching", i18n(
"Desktop Switching") );
120 DEF( I18N_NOOP(
"Switch to Desktop 1"), CTRL+TQt::Key_F1, WIN+TQt::Key_F1, slotSwitchToDesktop(
int) );
121 DEF( I18N_NOOP(
"Switch to Desktop 2"), CTRL+TQt::Key_F2, WIN+TQt::Key_F2, slotSwitchToDesktop(
int) );
122 DEF( I18N_NOOP(
"Switch to Desktop 3"), CTRL+TQt::Key_F3, WIN+TQt::Key_F3, slotSwitchToDesktop(
int) );
123 DEF( I18N_NOOP(
"Switch to Desktop 4"), CTRL+TQt::Key_F4, WIN+TQt::Key_F4, slotSwitchToDesktop(
int) );
124 DEF( I18N_NOOP(
"Switch to Desktop 5"), CTRL+TQt::Key_F5, WIN+TQt::Key_F5, slotSwitchToDesktop(
int) );
125 DEF( I18N_NOOP(
"Switch to Desktop 6"), CTRL+TQt::Key_F6, WIN+TQt::Key_F6, slotSwitchToDesktop(
int) );
126 DEF( I18N_NOOP(
"Switch to Desktop 7"), CTRL+TQt::Key_F7, WIN+TQt::Key_F7, slotSwitchToDesktop(
int) );
127 DEF( I18N_NOOP(
"Switch to Desktop 8"), CTRL+TQt::Key_F8, WIN+TQt::Key_F8, slotSwitchToDesktop(
int) );
128 DEF( I18N_NOOP(
"Switch to Desktop 9"), CTRL+TQt::Key_F9, WIN+TQt::Key_F9, slotSwitchToDesktop(
int) );
129 DEF( I18N_NOOP(
"Switch to Desktop 10"), CTRL+TQt::Key_F10, WIN+TQt::Key_F10, slotSwitchToDesktop(
int) );
130 DEF( I18N_NOOP(
"Switch to Desktop 11"), CTRL+TQt::Key_F11, 0, slotSwitchToDesktop(
int) );
131 DEF( I18N_NOOP(
"Switch to Desktop 12"), CTRL+TQt::Key_F12, 0, slotSwitchToDesktop(
int) );
132 DEF( I18N_NOOP(
"Switch to Desktop 13"), CTRL+SHIFT+TQt::Key_F1, 0, slotSwitchToDesktop(
int) );
133 DEF( I18N_NOOP(
"Switch to Desktop 14"), CTRL+SHIFT+TQt::Key_F2, 0, slotSwitchToDesktop(
int) );
134 DEF( I18N_NOOP(
"Switch to Desktop 15"), CTRL+SHIFT+TQt::Key_F3, 0, slotSwitchToDesktop(
int) );
135 DEF( I18N_NOOP(
"Switch to Desktop 16"), CTRL+SHIFT+TQt::Key_F4, 0, slotSwitchToDesktop(
int) );
136 DEF( I18N_NOOP(
"Switch to Desktop 17"), CTRL+SHIFT+TQt::Key_F5, 0, slotSwitchToDesktop(
int) );
137 DEF( I18N_NOOP(
"Switch to Desktop 18"), CTRL+SHIFT+TQt::Key_F6, 0, slotSwitchToDesktop(
int) );
138 DEF( I18N_NOOP(
"Switch to Desktop 19"), CTRL+SHIFT+TQt::Key_F7, 0, slotSwitchToDesktop(
int) );
139 DEF( I18N_NOOP(
"Switch to Desktop 20"), CTRL+SHIFT+TQt::Key_F8, 0, slotSwitchToDesktop(
int) );
140 DEF( I18N_NOOP(
"Switch to Next Desktop"), 0, 0, slotSwitchDesktopNext() );
141 DEF( I18N_NOOP(
"Switch to Previous Desktop"), 0, 0, slotSwitchDesktopPrevious() );
142 DEF( I18N_NOOP(
"Switch One Desktop to the Right"), 0, 0, slotSwitchDesktopRight() );
143 DEF( I18N_NOOP(
"Switch One Desktop to the Left"), 0, 0, slotSwitchDesktopLeft() );
144 DEF( I18N_NOOP(
"Switch One Desktop Up"), 0, 0, slotSwitchDesktopUp() );
145 DEF( I18N_NOOP(
"Switch One Desktop Down"), 0, 0, slotSwitchDesktopDown() );
146 DEF( I18N_NOOP(
"Switch to Screen 0"), 0, 0, slotSwitchToScreen(
int) );
147 DEF( I18N_NOOP(
"Switch to Screen 1"), 0, 0, slotSwitchToScreen(
int) );
148 DEF( I18N_NOOP(
"Switch to Screen 2"), 0, 0, slotSwitchToScreen(
int) );
149 DEF( I18N_NOOP(
"Switch to Screen 3"), 0, 0, slotSwitchToScreen(
int) );
150 DEF( I18N_NOOP(
"Switch to Screen 4"), 0, 0, slotSwitchToScreen(
int) );
151 DEF( I18N_NOOP(
"Switch to Screen 5"), 0, 0, slotSwitchToScreen(
int) );
152 DEF( I18N_NOOP(
"Switch to Screen 6"), 0, 0, slotSwitchToScreen(
int) );
153 DEF( I18N_NOOP(
"Switch to Screen 7"), 0, 0, slotSwitchToScreen(
int) );
154 DEF( I18N_NOOP(
"Switch to Next Screen"), 0, 0, slotSwitchToNextScreen() );
156 keys->insert(
"Group:Miscellaneous", i18n(
"Miscellaneous") );
157 DEF( I18N_NOOP(
"Mouse Emulation"), ALT+TQt::Key_F12, 0, slotMouseEmulation() );
158 DEF( I18N_NOOP(
"Kill Window"), ALT+CTRL+TQt::Key_Escape, WIN+CTRL+TQt::Key_Delete, slotKillWindow() );
159 DEF( I18N_NOOP(
"Window Screenshot"), ALT+TQt::Key_Print, ALT+TQt::Key_Print, slotGrabWindow() );
160 DEF( I18N_NOOP(
"Desktop Screenshot"), CTRL+TQt::Key_Print, WIN+TQt::Key_Print, slotGrabDesktop() );
163 TDEGlobalAccel* keys = disable_shortcuts_keys;
165 DEF( I18N_NOOP(
"Block Global Shortcuts"), 0, 0, slotDisableGlobalShortcuts());