libyui
3.3.1
|
Event to be returned upon closing a dialog with the window manager close button (or Alt-F4) More...
#include <YEvent.h>
Protected Member Functions | |
virtual | ~YCancelEvent () |
Protected destructor - events can only be deleted via YDialog::deleteEvent(). More... | |
![]() | |
void | setDialog (YDialog *dia) |
Set the dialog this event belongs to. | |
virtual | ~YEvent () |
Protected destructor - events can only be deleted via YDialog::deleteEvent(). More... | |
void | invalidate () |
Mark this event as invalid. More... | |
Additional Inherited Members | |
![]() | |
enum | EventType { NoEvent = 0, UnknownEvent, WidgetEvent, MenuEvent, KeyEvent, CancelEvent, TimeoutEvent, DebugEvent, InvalidEvent = 0x4242 } |
enum | EventReason { UnknownReason = 0, Activated, SelectionChanged, ValueChanged, ContextMenuActivated } |
![]() | |
YEvent (EventType eventType=UnknownEvent) | |
Constructor. | |
EventType | eventType () const |
Returns the event type. | |
unsigned long | serial () const |
Returns the unique serial no. More... | |
virtual YWidget * | widget () const |
Returns the widget that caused this event or 0 if there is none. More... | |
virtual YItem * | item () const |
Return the YItem that corresponds to this event or 0 if there is none. More... | |
YDialog * | dialog () const |
Return the dialog this event belongs to or 0 if no dialog was set yet. | |
bool | isValid () const |
Check if this event is valid. More... | |
![]() | |
static const char * | toString (EventType eventType) |
Returns the character representation of an event type. | |
static const char * | toString (EventReason reason) |
Returns the character representation of an event reason. | |
Event to be returned upon closing a dialog with the window manager close button (or Alt-F4)
|
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.