Shortcut Class Reference

#include <shortcut.h>

Collaboration diagram for Shortcut:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Shortcut (unsigned long modMask, KeyCode keyCode, Shortcut *next, unsigned int button=0)
 ~Shortcut ()
KeyCode keyCode ()
void setKeyCode (KeyCode keyCode)
unsigned long modMask () const
void setModMask (unsigned long modMask)
unsigned int button () const
Shortcutnext () const
void setNext (Shortcut *next)

Static Public Member Functions

static Shortcutshortcut (string keys)

Private Attributes

Shortcutnext_
KeyCode keyCode_
unsigned long modMask_
unsigned int button_

Detailed Description

Represents a shortcut. If this shortcut has a postdecessor the next pointer may point to it.

Definition at line 20 of file shortcut.h.


Constructor & Destructor Documentation

Shortcut::Shortcut ( unsigned long  modMask,
KeyCode  keyCode,
Shortcut next,
unsigned int  button = 0 
)

Definition at line 12 of file shortcut.cpp.

References button_, keyCode_, modMask_, next(), and next_.

Referenced by shortcut().

Here is the call graph for this function:

Shortcut::~Shortcut (  ) 

Definition at line 21 of file shortcut.cpp.

References next_.


Member Function Documentation

KeyCode Shortcut::keyCode (  ) 

Definition at line 77 of file shortcut.cpp.

References keyCode_.

Referenced by Kernel::bindShortcut(), Binder::grabShortcut(), Binder::handleShortcutChains(), Binder::prettyPrintKeyBindings(), and Binder::ungrabShortcut().

void Shortcut::setKeyCode ( KeyCode  keyCode  ) 

Definition at line 97 of file shortcut.cpp.

References keyCode_.

Referenced by Binder::handleShortcutChains().

unsigned long Shortcut::modMask (  )  const

Definition at line 81 of file shortcut.cpp.

References modMask_.

Referenced by Kernel::bindShortcut(), Binder::grabShortcut(), Binder::handleShortcutChains(), Binder::prettyPrintKeyBindings(), and Binder::ungrabShortcut().

void Shortcut::setModMask ( unsigned long  modMask  ) 

Definition at line 101 of file shortcut.cpp.

References modMask_.

Referenced by Binder::handleShortcutChains().

unsigned int Shortcut::button (  )  const

Definition at line 85 of file shortcut.cpp.

References button_.

Referenced by Kernel::bindShortcut(), Binder::grabShortcut(), Binder::prettyPrintKeyBindings(), shortcut(), and Binder::ungrabShortcut().

Shortcut * Shortcut::next (  )  const

Definition at line 89 of file shortcut.cpp.

References next_.

Referenced by Binder::handleShortcutChains(), Binder::prettyPrintKeyBindings(), setNext(), and Shortcut().

void Shortcut::setNext ( Shortcut next  ) 

Definition at line 93 of file shortcut.cpp.

References next(), and next_.

Referenced by shortcut().

Here is the call graph for this function:

Shortcut * Shortcut::shortcut ( string  keys  )  [static]

Definition at line 28 of file shortcut.cpp.

References button(), Util::buttonForString(), Util::lastToken(), LOGDEBUG, Util::modMaskForString(), setNext(), Shortcut(), Util::truncate(), and XCORE.

Referenced by Kernel::bindShortcut(), and Kernel::initActionBindings().

Here is the call graph for this function:


Member Data Documentation

Shortcut* Shortcut::next_ [private]

Definition at line 44 of file shortcut.h.

Referenced by next(), setNext(), Shortcut(), and ~Shortcut().

KeyCode Shortcut::keyCode_ [private]

Definition at line 45 of file shortcut.h.

Referenced by keyCode(), setKeyCode(), and Shortcut().

unsigned long Shortcut::modMask_ [private]

Definition at line 46 of file shortcut.h.

Referenced by modMask(), setModMask(), and Shortcut().

unsigned int Shortcut::button_ [private]

Definition at line 47 of file shortcut.h.

Referenced by button(), and Shortcut().


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:24 2007 for ncwm by  doxygen 1.5.1