2001-11-16 23:21:43 +00:00
|
|
|
#ifndef NOSLOTS
|
2005-10-22 13:16:46 +00:00
|
|
|
# define DEF2( name, descr, key, fnSlot ) \
|
2006-04-10 11:57:13 +00:00
|
|
|
a = new KAction( i18n(descr), actionCollection, name ); \
|
2006-09-30 15:47:41 +00:00
|
|
|
a->setShortcut(KShortcut(key)); \
|
2006-04-10 11:57:13 +00:00
|
|
|
connect(a, SIGNAL(triggered(bool)), SLOT(fnSlot))
|
2005-10-22 13:16:46 +00:00
|
|
|
# define DEF( name, key, fnSlot ) \
|
2006-04-10 11:57:13 +00:00
|
|
|
a = new KAction( i18n(name), actionCollection, name ); \
|
2006-09-30 15:47:41 +00:00
|
|
|
a->setShortcut(KShortcut(key)); \
|
2006-04-10 11:57:13 +00:00
|
|
|
connect(a, SIGNAL(triggered(bool)), SLOT(fnSlot))
|
2001-11-16 23:21:43 +00:00
|
|
|
#else
|
2005-10-22 13:16:46 +00:00
|
|
|
# define DEF2( name, descr, key, fnSlot ) \
|
2006-04-10 11:57:13 +00:00
|
|
|
a = new KAction( i18n(descr), actionCollection, name ); \
|
2006-09-30 15:47:41 +00:00
|
|
|
a->setShortcut(KShortcut(key));
|
2005-10-22 13:16:46 +00:00
|
|
|
# define DEF( name, key, fnSlot ) \
|
2006-04-10 11:57:13 +00:00
|
|
|
a = new KAction( i18n(name), actionCollection, name ); \
|
2006-09-30 15:47:41 +00:00
|
|
|
a->setShortcut(KShortcut(key));
|
2001-06-10 04:10:42 +00:00
|
|
|
#endif
|
1999-11-22 01:57:51 +00:00
|
|
|
|
2003-10-24 09:07:27 +00:00
|
|
|
// some shortcuts have Tarzan-speech like names, they need extra normal human descriptions with DEF2()
|
|
|
|
// the others can use DEF()
|
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("System"), actionCollection, "Program:kwin" );
|
1999-12-06 00:43:55 +00:00
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("Navigation"), actionCollection, "Group:Navigation" );
|
|
|
|
DEF( I18N_NOOP("Walk Through Windows"), Qt::ALT+Qt::Key_Tab, slotWalkThroughWindows() );
|
|
|
|
DEF( I18N_NOOP("Walk Through Windows (Reverse)"), Qt::ALT+Qt::SHIFT+Qt::Key_Tab, slotWalkBackThroughWindows() );
|
2006-09-30 15:47:41 +00:00
|
|
|
DEF( I18N_NOOP("Walk Through Desktops"), Qt::META+Qt::Key_Tab, slotWalkThroughDesktops() );
|
|
|
|
DEF( I18N_NOOP("Walk Through Desktops (Reverse)"), Qt::META+Qt::SHIFT+Qt::Key_Tab, slotWalkBackThroughDesktops() );
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Walk Through Desktop List"), 0, slotWalkThroughDesktopList() );
|
2005-10-22 13:16:46 +00:00
|
|
|
DEF( I18N_NOOP("Walk Through Desktop List (Reverse)"), 0, slotWalkBackThroughDesktopList() );
|
2002-01-19 04:42:35 +00:00
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("Windows"), actionCollection, "Group:Windows" );
|
2006-09-30 15:47:41 +00:00
|
|
|
DEF( I18N_NOOP("Window Operations Menu"), Qt::ALT+Qt::Key_Menu, slotWindowOperations() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Close", I18N_NOOP("Close Window"),
|
2006-09-30 15:47:41 +00:00
|
|
|
"Alt+Escape;Alt+F4", slotWindowClose() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Maximize", I18N_NOOP("Maximize Window"),
|
2006-09-30 15:47:41 +00:00
|
|
|
Qt::META+Qt::Key_Plus, slotWindowMaximize() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Maximize Vertical", I18N_NOOP("Maximize Window Vertically"),
|
2006-09-30 15:47:41 +00:00
|
|
|
Qt::META+Qt::Key_Bar, slotWindowMaximizeVertical() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Maximize Horizontal", I18N_NOOP("Maximize Window Horizontally"),
|
2006-09-30 15:47:41 +00:00
|
|
|
Qt::META+Qt::Key_Equal, slotWindowMaximizeHorizontal() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Minimize", I18N_NOOP("Minimize Window"),
|
2006-09-30 15:47:41 +00:00
|
|
|
Qt::META+Qt::Key_Minus, slotWindowMinimize() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Shade", I18N_NOOP("Shade Window"),
|
2006-09-30 15:47:41 +00:00
|
|
|
Qt::META+Qt::Key_Underscore, slotWindowShade() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Move", I18N_NOOP("Move Window"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowMove() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Resize", I18N_NOOP("Resize Window"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowResize() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Raise", I18N_NOOP("Raise Window"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowRaise() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Lower", I18N_NOOP("Lower Window"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowLower() );
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Toggle Window Raise/Lower"), 0, slotWindowRaiseOrLower() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Fullscreen", I18N_NOOP("Make Window Fullscreen"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowFullScreen() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window No Border", I18N_NOOP("Hide Window Border"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowNoBorder() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Above Other Windows", I18N_NOOP("Keep Window Above Others"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowAbove() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Below Other Windows", I18N_NOOP("Keep Window Below Others"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowBelow() );
|
|
|
|
DEF( I18N_NOOP("Activate Window Demanding Attention"),
|
2006-04-10 11:57:13 +00:00
|
|
|
Qt::CTRL+Qt::ALT+Qt::Key_A, slotActivateAttentionWindow());
|
2005-10-22 13:16:46 +00:00
|
|
|
DEF( I18N_NOOP("Setup Window Shortcut"),
|
|
|
|
0, slotSetupWindowShortcut());
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Pack Right", I18N_NOOP("Pack Window to the Right"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowPackRight() );
|
2005-04-27 11:39:52 +00:00
|
|
|
DEF2( "Window Pack Left", I18N_NOOP("Pack Window to the Left"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowPackLeft() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Pack Up", I18N_NOOP("Pack Window Up"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowPackUp() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Pack Down", I18N_NOOP("Pack Window Down"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowPackDown() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Grow Horizontal", I18N_NOOP("Pack Grow Window Horizontally"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowGrowHorizontal() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Grow Vertical", I18N_NOOP("Pack Grow Window Vertically"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowGrowVertical() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Shrink Horizontal", I18N_NOOP("Pack Shrink Window Horizontally"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowShrinkHorizontal() );
|
2003-10-24 09:07:27 +00:00
|
|
|
DEF2( "Window Shrink Vertical", I18N_NOOP("Pack Shrink Window Vertically"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowShrinkVertical() );
|
2001-06-07 18:17:24 +00:00
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("Window & Desktop"), actionCollection, "Group:Window Desktop" );
|
2003-10-27 09:51:27 +00:00
|
|
|
DEF2( "Window On All Desktops", I18N_NOOP("Keep Window on All Desktops"),
|
2005-10-22 13:16:46 +00:00
|
|
|
0, slotWindowOnAllDesktops() );
|
2006-09-30 15:47:41 +00:00
|
|
|
DEF( I18N_NOOP("Window to Desktop 1"), Qt::META+Qt::ALT+Qt::Key_F1, slotWindowToDesktop1() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 2"), Qt::META+Qt::ALT+Qt::Key_F2, slotWindowToDesktop2() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 3"), Qt::META+Qt::ALT+Qt::Key_F3, slotWindowToDesktop3() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 4"), Qt::META+Qt::ALT+Qt::Key_F4, slotWindowToDesktop4() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 5"), Qt::META+Qt::ALT+Qt::Key_F5, slotWindowToDesktop5() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 6"), Qt::META+Qt::ALT+Qt::Key_F6, slotWindowToDesktop6() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 7"), Qt::META+Qt::ALT+Qt::Key_F7, slotWindowToDesktop7() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 8"), Qt::META+Qt::ALT+Qt::Key_F8, slotWindowToDesktop8() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 9"), Qt::META+Qt::ALT+Qt::Key_F9, slotWindowToDesktop9() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 10"), Qt::META+Qt::ALT+Qt::Key_F10, slotWindowToDesktop10() );
|
2006-08-01 11:50:10 +00:00
|
|
|
DEF( I18N_NOOP("Window to Desktop 11"), 0, slotWindowToDesktop11() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 12"), 0, slotWindowToDesktop12() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 13"), 0, slotWindowToDesktop13() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 14"), 0, slotWindowToDesktop14() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 15"), 0, slotWindowToDesktop15() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 16"), 0, slotWindowToDesktop16() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 17"), 0, slotWindowToDesktop17() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 18"), 0, slotWindowToDesktop18() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 19"), 0, slotWindowToDesktop19() );
|
|
|
|
DEF( I18N_NOOP("Window to Desktop 20"), 0, slotWindowToDesktop20() );
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Window to Next Desktop"), 0, slotWindowToNextDesktop() );
|
|
|
|
DEF( I18N_NOOP("Window to Previous Desktop"), 0, slotWindowToPreviousDesktop() );
|
|
|
|
DEF( I18N_NOOP("Window One Desktop to the Right"), 0, slotWindowToDesktopRight() );
|
|
|
|
DEF( I18N_NOOP("Window One Desktop to the Left"), 0, slotWindowToDesktopLeft() );
|
|
|
|
DEF( I18N_NOOP("Window One Desktop Up"), 0, slotWindowToDesktopUp() );
|
|
|
|
DEF( I18N_NOOP("Window One Desktop Down"), 0, slotWindowToDesktopDown() );
|
2001-06-10 04:10:42 +00:00
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("Desktop Switching"), actionCollection, "Group:Desktop Switching" );
|
2006-09-30 15:47:41 +00:00
|
|
|
DEF( I18N_NOOP("Switch to Desktop 1"), Qt::META+Qt::Key_F1, slotSwitchToDesktop1() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 2"), Qt::META+Qt::Key_F2, slotSwitchToDesktop2() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 3"), Qt::META+Qt::Key_F3, slotSwitchToDesktop3() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 4"), Qt::META+Qt::Key_F4, slotSwitchToDesktop4() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 5"), Qt::META+Qt::Key_F5, slotSwitchToDesktop5() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 6"), Qt::META+Qt::Key_F6, slotSwitchToDesktop6() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 7"), Qt::META+Qt::Key_F7, slotSwitchToDesktop7() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 8"), Qt::META+Qt::Key_F8, slotSwitchToDesktop8() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 9"), Qt::META+Qt::Key_F9, slotSwitchToDesktop9() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 10"), Qt::META+Qt::Key_F10, slotSwitchToDesktop10() );
|
2006-08-01 11:50:10 +00:00
|
|
|
DEF( I18N_NOOP("Switch to Desktop 11"), Qt::CTRL+Qt::Key_F11, slotSwitchToDesktop11() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 12"), Qt::CTRL+Qt::Key_F12, slotSwitchToDesktop12() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 13"), Qt::CTRL+Qt::SHIFT+Qt::Key_F1, slotSwitchToDesktop13() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 14"), Qt::CTRL+Qt::SHIFT+Qt::Key_F2, slotSwitchToDesktop14() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 15"), Qt::CTRL+Qt::SHIFT+Qt::Key_F3, slotSwitchToDesktop15() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 16"), Qt::CTRL+Qt::SHIFT+Qt::Key_F4, slotSwitchToDesktop16() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 17"), Qt::CTRL+Qt::SHIFT+Qt::Key_F5, slotSwitchToDesktop17() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 18"), Qt::CTRL+Qt::SHIFT+Qt::Key_F6, slotSwitchToDesktop18() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 19"), Qt::CTRL+Qt::SHIFT+Qt::Key_F7, slotSwitchToDesktop19() );
|
|
|
|
DEF( I18N_NOOP("Switch to Desktop 20"), Qt::CTRL+Qt::SHIFT+Qt::Key_F8, slotSwitchToDesktop20() );
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Switch to Next Desktop"), 0, slotSwitchDesktopNext() );
|
|
|
|
DEF( I18N_NOOP("Switch to Previous Desktop"), 0, slotSwitchDesktopPrevious() );
|
|
|
|
DEF( I18N_NOOP("Switch One Desktop to the Right"), 0, slotSwitchDesktopRight() );
|
|
|
|
DEF( I18N_NOOP("Switch One Desktop to the Left"), 0, slotSwitchDesktopLeft() );
|
|
|
|
DEF( I18N_NOOP("Switch One Desktop Up"), 0, slotSwitchDesktopUp() );
|
|
|
|
DEF( I18N_NOOP("Switch One Desktop Down"), 0, slotSwitchDesktopDown() );
|
2001-11-16 23:21:43 +00:00
|
|
|
|
2006-04-10 11:57:13 +00:00
|
|
|
new KAction( i18n("Miscellaneous"), actionCollection, "Group:Miscellaneous" );
|
|
|
|
DEF( I18N_NOOP("Mouse Emulation"), Qt::ALT+Qt::Key_F12, slotMouseEmulation() );
|
2006-09-30 15:47:41 +00:00
|
|
|
DEF( I18N_NOOP("Kill Window"), Qt::META+Qt::CTRL+Qt::Key_Delete, slotKillWindow() );
|
|
|
|
DEF( I18N_NOOP("Window Screenshot"), Qt::ALT+Qt::Key_Print, slotGrabWindow() );
|
|
|
|
DEF( I18N_NOOP("Desktop Screenshot"), Qt::META+Qt::Key_Print, slotGrabDesktop() );
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Block Global Shortcuts"), 0, slotDisableGlobalShortcuts());
|
2001-11-16 23:21:43 +00:00
|
|
|
|
|
|
|
/*This belongs in taskbar rather than here, so it'll have to wait until after 2.2 is done.
|
|
|
|
-- ellis
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Switch to Window 1", Qt::META+Qt::Key_1"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 2", Qt::META+Qt::Key_2"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 3", Qt::META+Qt::Key_3"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 4", Qt::META+Qt::Key_4"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 5", Qt::META+Qt::Key_5"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 6", Qt::META+Qt::Key_6"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 7", Qt::META+Qt::Key_7"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 8", Qt::META+Qt::Key_8"));
|
|
|
|
DEF( I18N_NOOP("Switch to Window 9", Qt::META+Qt::Key_9"));
|
2000-05-17 20:15:17 +00:00
|
|
|
|
2001-06-10 04:10:42 +00:00
|
|
|
#ifdef WITH_LABELS
|
2002-01-19 04:42:35 +00:00
|
|
|
DEF( I18N_NOOP("Window & Taskbar"Group:Window Desktop", 0);
|
2001-06-10 04:10:42 +00:00
|
|
|
#endif
|
2006-04-10 11:57:13 +00:00
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 1", Qt::META+Qt::Key_Alt+1"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 2", Qt::META+Qt::Key_Alt+2"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 3", Qt::META+Qt::Key_Alt+3"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 4", Qt::META+Qt::Key_Alt+4"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 5", Qt::META+Qt::Key_Alt+5"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 6", Qt::META+Qt::Key_Alt+6"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 7", Qt::META+Qt::Key_Alt+7"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 8", Qt::META+Qt::Key_Alt+8"));
|
|
|
|
DEF( I18N_NOOP("Window to Taskbar Position 9", Qt::META+Qt::Key_Alt+9"));
|
2001-11-16 23:21:43 +00:00
|
|
|
*/
|
2001-06-26 23:30:52 +00:00
|
|
|
|
2001-11-16 23:21:43 +00:00
|
|
|
#undef DEF
|
2003-12-02 18:14:56 +00:00
|
|
|
#undef DEF2
|