libyui
Loading...
Searching...
No Matches
YKeyEvent Class Reference
Inheritance diagram for YKeyEvent:
Collaboration diagram for YKeyEvent:

Public Member Functions

 YKeyEvent (const std::string &keySymbol, YWidget *focusWidget=0)
std::string keySymbol () const
YWidgetfocusWidget () const
Public Member Functions inherited from YEvent
 YEvent (EventType eventType=UnknownEvent)
EventType eventType () const
unsigned long serial () const
virtual YWidgetwidget () const
virtual YItemitem () const
YDialogdialog () const
bool isValid () const

Protected Member Functions

virtual ~YKeyEvent ()
Protected Member Functions inherited from YEvent
void setDialog (YDialog *dia)
virtual ~YEvent ()
void invalidate ()

Protected Attributes

std::string _keySymbol
YWidget_focusWidget

Additional Inherited Members

Public Types inherited from YEvent
enum  EventType {
  NoEvent = 0 , UnknownEvent , WidgetEvent , MenuEvent ,
  KeyEvent , CancelEvent , TimeoutEvent , DebugEvent ,
  SpecialKeyEvent , InvalidEvent = 0x4242
}
enum  EventReason {
  UnknownReason = 0 , Activated , SelectionChanged , ValueChanged ,
  ContextMenuActivated
}
Static Public Member Functions inherited from YEvent
static const char * toString (EventType eventType)
static const char * toString (EventReason reason)

Constructor & Destructor Documentation

◆ YKeyEvent()

YKeyEvent::YKeyEvent ( const std::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.

◆ ~YKeyEvent()

virtual YKeyEvent::~YKeyEvent ( )
inlineprotectedvirtual

Protected destructor - events can only be deleted via YDialog::deleteEvent(). The associated dialog will take care of this event and delete it when appropriate.

Member Function Documentation

◆ focusWidget()

YWidget * YKeyEvent::focusWidget ( ) const
inline

Returns the widget that currently has the keyboard focus.

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

◆ keySymbol()

std::string YKeyEvent::keySymbol ( ) const
inline

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


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui/src/YEvent.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui/src/YEvent.cc