Main Page   Class Hierarchy   Compound List   File List   Compound Members  

InfoMenu Class Reference

Class for a Menu without options. More...

#include <infomenu.h>

Inheritance diagram for InfoMenu:

Inheritance graph
[legend]
Collaboration diagram for InfoMenu:

Collaboration graph
[legend]
List of all members.

Public Methods

 InfoMenu ()
virtual ~InfoMenu ()
virtual void moveUp ()
 Select the previous item of the menu. More...

virtual void moveDown ()
 Select the next item of the menu. More...

virtual unsigned int getSelectedIndex () const
 Get the index selected item. More...

virtual string const & getSelectedItem () const
 Get the selected item. More...


Detailed Description

Class for a Menu without options.

This is like a Menu but only display information. It does not have any option. The last item you add to this menu should be a 'ok' string to exit the menu.


Member Function Documentation

unsigned int InfoMenu::getSelectedIndex   const [virtual]
 

Get the index selected item.

This does not check if the options has no items.

Returns:
the index of the selected item in the list of options.

Reimplemented from Menu.

string const & InfoMenu::getSelectedItem   const [virtual]
 

Get the selected item.

This does not check if the options has no items.

Returns:
the selected string representing the item.

Reimplemented from Menu.

void InfoMenu::moveDown   [virtual]
 

Select the next item of the menu.

Move the selected item index down.

Reimplemented from Menu.

void InfoMenu::moveUp   [virtual]
 

Select the previous item of the menu.

Move the selected item index up.

Reimplemented from Menu.


The documentation for this class was generated from the following files:
Generated on Thu Jun 6 17:22:22 2002 for Perihelion by doxygen1.2.15