Public Member Functions | Protected Member Functions | Protected Attributes

YMenuEvent Class Reference

#include <YEvent.h>

Inheritance diagram for YMenuEvent:

List of all members.

Public Member Functions

 YMenuEvent (YItem *item)
 YMenuEvent (const char *id)
 YMenuEvent (const string &id)
virtual YItemitem () const
string id () const

Protected Member Functions

virtual ~YMenuEvent ()

Protected Attributes

string _id

Detailed Description

Event to be returned upon menu selection.

Constructor & Destructor Documentation

virtual YMenuEvent::~YMenuEvent ( ) [inline, protected, virtual]

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

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.

virtual YItem* YMenuEvent::item ( ) const [inline, virtual]

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:
 All Classes Functions Variables Enumerations Friends