libyui
 
Loading...
Searching...
No Matches
YMenuEvent Class Reference

#include <YEvent.h>

Inheritance diagram for YMenuEvent:
Collaboration diagram for YMenuEvent:

Public Member Functions

 YMenuEvent (YItem *item)
 
 YMenuEvent (const char *id)
 
 YMenuEvent (const std::string &id)
 
virtual YItemitem () const
 
std::string id () const
 
- Public Member Functions inherited from YEvent
 YEvent (EventType eventType=UnknownEvent)
 
EventType eventType () const
 
unsigned long serial () const
 
virtual YWidgetwidget () const
 
YDialogdialog () const
 
bool isValid () const
 

Protected Member Functions

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

Protected Attributes

YItem_item
 
std::string _id
 

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)
 

Detailed Description

Event to be returned upon menu selection.

Constructor & Destructor Documentation

◆ ~YMenuEvent()

virtual YMenuEvent::~YMenuEvent ( )
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

◆ id()

std::string YMenuEvent::id ( ) const
inline

Return the string ID of this event. This will be an empty string if the event was constructed with a YItem.

◆ item()

virtual YItem * YMenuEvent::item ( ) const
inlinevirtual

Return the YItem that corresponds to this event or 0 if the event was constructed with a string ID.

Reimplemented from YEvent.

Reimplemented from YEvent.


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