2
# define DEF( name, key3, key4, fnSlot ) \
3
keys->insert( name, i18n(name), QString::null, key3, key4, this, SLOT(fnSlot) )
4
# define DEF2( name, key3, key4, receiver, slot ) \
5
keys->insert( name, i18n(name), QString::null, key3, key4, receiver, slot );
7
# define DEF( name, key3, key4, fnSlot ) \
8
keys->insert( name, i18n(name), QString::null, key3, key4 )
9
# define DEF2( name, key3, key4, receiver, slot ) \
10
keys->insert( name, i18n(name), QString::null, key3, key4 )
12
#define WIN KKey::QtWIN
14
keys->insert( "Program:kdesktop", i18n("Desktop") );
17
if (kapp->authorize("run_command"))
20
DEF( I18N_NOOP("Run Command"), ALT+Qt::Key_F2, WIN+Qt::Key_Return, slotExecuteCommand() );
24
DEF( I18N_NOOP("Show Taskmanager"), CTRL+Qt::Key_Escape, WIN+CTRL+Qt::Key_Pause, slotShowTaskManager() );
25
DEF( I18N_NOOP("Show Window List"), ALT+Qt::Key_F5, WIN+Qt::Key_0, slotShowWindowList() );
27
if (kapp->authorize("lock_screen"))
30
DEF2( I18N_NOOP("Lock Screen"), ALT+CTRL+Qt::Key_L, WIN+Qt::Key_ScrollLock, KRootWm::self(), SLOT(slotLock()) );
33
if (kapp->authorize("logout"))
36
DEF( I18N_NOOP("Logout"), ALT+CTRL+Qt::Key_Delete, WIN+Qt::Key_Escape, slotLogout() );
37
DEF( I18N_NOOP("Logout without Confirmation"), ALT+CTRL+SHIFT+Qt::Key_Delete, WIN+SHIFT+Qt::Key_Escape, slotLogoutNoCnf() );
38
DEF( I18N_NOOP("Halt without Confirmation"), ALT+CTRL+SHIFT+Qt::Key_PageDown, WIN+CTRL+SHIFT+Qt::Key_PageDown, slotHaltNoCnf() );
39
DEF( I18N_NOOP("Reboot without Confirmation"), ALT+CTRL+SHIFT+Qt::Key_PageUp, WIN+CTRL+SHIFT+Qt::Key_PageUp, slotRebootNoCnf() );