Popup Class Reference

Class handling a popup menu. More...

Inheritance diagram for Popup:

Inheritance graph
[legend]
Collaboration diagram for Popup:

Collaboration graph
[legend]

Public Member Functions

 Popup (intf_thread_t *pIntf, WindowManager &rWindowManager)
virtual ~Popup ()
void show (int xPos, int yPos)
void hide ()
void addItem (const string &rLabel, CmdGeneric &rCmd, int pos)
 Insert a new menu item to the popup menu, at the position pos.
void addSeparator (int pos)
 Create a dummy menu item to separate sections.
void handleEvent (const EvtMenu &rEvent)
 Execute the action corresponding to the chosen menu item.

Detailed Description

Class handling a popup menu.

Constructor & Destructor Documentation

Popup::Popup ( intf_thread_t pIntf,
WindowManager rWindowManager 
)

virtual Popup::~Popup (  )  [inline, virtual]


Member Function Documentation

void Popup::show ( int  xPos,
int  yPos 
)

void Popup::hide (  ) 

References OSPopup::hide().

void Popup::addItem ( const string &  rLabel,
CmdGeneric rCmd,
int  pos 
)

Insert a new menu item to the popup menu, at the position pos.

References OSPopup::addItem().

void Popup::addSeparator ( int  pos  ) 

Create a dummy menu item to separate sections.

References OSPopup::addSeparator().

void Popup::handleEvent ( const EvtMenu rEvent  ) 

Execute the action corresponding to the chosen menu item.

References SkinObject::getIntf(), EvtMenu::getItemId(), OSPopup::getPosFromId(), and msg_Warn.

Referenced by TopWindow::processEvent().


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

Generated on Tue May 25 08:06:19 2010 for VLC by  doxygen 1.5.6