Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YKeyEvent Class Reference

#include <YEvent.h>

Inheritance diagram for YKeyEvent:

YEvent List of all members.

Public Member Functions

 YKeyEvent (const string &keySymbol, YWidget *focusWidget=0)
string keySymbol () const
YWidgetfocusWidget () const
virtual YCPMap ycpEvent ()
virtual YCPValue userInput ()

Protected Attributes

string _keySymbol
YWidget_focusWidget

Constructor & Destructor Documentation

YKeyEvent::YKeyEvent const string &  keySymbol,
YWidget focusWidget = 0
 

Constructor.

Create a key event with a specified key symbol (a text describing the key, such as "CursorLeft", "F1", etc.) and optionally the widget that currently has the keyboard focus.


Member Function Documentation

YWidget* YKeyEvent::focusWidget  )  const [inline]
 

Returns the widget that currently has the keyboard focus.

This might as well be 0 if no widget has the focus or if the creator of this event could not obtain that information.

string YKeyEvent::keySymbol  )  const [inline]
 

Returns the key symbol - a text describing the key, such as "CursorLeft", "F1", "a", "A", etc.

YCPValue YKeyEvent::userInput  )  [virtual]
 

Returns the ID to be returned upon UI::UserInput(). This is the same as the "id" field of the ycpEvent() map.

Reimplemented from YEvent.

Reimplemented from YEvent.

YCPMap YKeyEvent::ycpEvent  )  [virtual]
 

Constructs a YCP map to be returned upon UI::WaitForEvent().

Reimplemented from YEvent.

Reimplemented from YEvent.


Member Data Documentation

YWidget* YKeyEvent::_focusWidget [protected]
 

string YKeyEvent::_keySymbol [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6