libyui-ncurses  2.44.1
 All Classes Functions Variables
NCtoY2Event Class Reference

#include <NCtoY2Event.h>

Inheritance diagram for NCtoY2Event:
Collaboration diagram for NCtoY2Event:

Public Member Functions

 NCtoY2Event ()
 
 NCtoY2Event (const NCursesEvent &ncev)
 
NCtoY2Eventoperator= (const NCursesEvent &ncev)
 
YEvent * propagate ()
 
- Public Member Functions inherited from NCursesEvent
 NCursesEvent (Type t=none, YEvent::EventReason r=YEvent::UnknownReason)
 
 operator void * () const
 
bool operator== (const NCursesEvent &e) const
 
bool operator!= (const NCursesEvent &e) const
 
bool isReturnEvent () const
 
bool isInternalEvent () const
 

Friends

std::ostream & operator<< (std::ostream &stream, const NCtoY2Event &event)
 

Additional Inherited Members

- Public Types inherited from NCursesEvent
enum  Type {
  handled = -1, none = 0, cancel, timeout,
  button, menu, key
}
 
enum  DETAIL { NODETAIL = -1, CONTINUE = -2, USERDEF = -3 }
 
- Public Attributes inherited from NCursesEvent
Type type
 
NCWidgetwidget
 
YMenuItem * selection
 
std::string result
 
std::string keySymbol
 
int detail
 
YEvent::EventReason reason
 
- Static Public Attributes inherited from NCursesEvent
static const NCursesEvent Activated
 
static const NCursesEvent SelectionChanged
 
static const NCursesEvent ValueChanged
 

Detailed Description

Helper class for translating an NCurses event to a YEvent.

Definition at line 36 of file NCtoY2Event.h.

Constructor & Destructor Documentation

NCtoY2Event::NCtoY2Event ( )
inline

Default constructor

Definition at line 46 of file NCtoY2Event.h.

NCtoY2Event::NCtoY2Event ( const NCursesEvent ncev)

Constructor from an NCursesEvent

Definition at line 33 of file NCtoY2Event.cc.

Member Function Documentation

NCtoY2Event & NCtoY2Event::operator= ( const NCursesEvent ncev)

Assignment operator

Definition at line 40 of file NCtoY2Event.cc.

YEvent * NCtoY2Event::propagate ( )

The reason of existence of this class: Translate the NCursesEvent to a YEvent.

Definition at line 52 of file NCtoY2Event.cc.


The documentation for this class was generated from the following files: