~ubuntu-branches/ubuntu/warty/kdebase/warty

« back to all changes in this revision

Viewing changes to kdesktop/kdesktopbindings.cpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-09-16 04:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040916045145-9vr63kith3k1cpza
Tags: upstream-3.2.2
ImportĀ upstreamĀ versionĀ 3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef NOSLOTS
 
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 );
 
6
#else
 
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 )
 
11
#endif
 
12
#define WIN KKey::QtWIN
 
13
 
 
14
        keys->insert( "Program:kdesktop", i18n("Desktop") );
 
15
 
 
16
#ifndef NOSLOTS
 
17
        if (kapp->authorize("run_command"))
 
18
        {
 
19
#endif
 
20
                DEF( I18N_NOOP("Run Command"), ALT+Qt::Key_F2, WIN+Qt::Key_Return, slotExecuteCommand() );
 
21
#ifndef NOSLOTS
 
22
        }               
 
23
#endif
 
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() );
 
26
#ifndef NOSLOTS
 
27
        if (kapp->authorize("lock_screen"))
 
28
        {
 
29
#endif
 
30
                DEF2( I18N_NOOP("Lock Screen"), ALT+CTRL+Qt::Key_L, WIN+Qt::Key_ScrollLock, KRootWm::self(), SLOT(slotLock()) );
 
31
#ifndef NOSLOTS
 
32
        }
 
33
        if (kapp->authorize("logout"))
 
34
        {               
 
35
#endif
 
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() );
 
40
#ifndef NOSLOTS
 
41
        }
 
42
#endif
 
43
 
 
44
#undef DEF
 
45
#undef DEF2
 
46
#undef WIN