ProfileMenu Class Reference

#include <profile_menu.hpp>

Inherits Menu.

List of all members.

Public Member Functions

 ProfileMenu ()
void menu_action (MenuItem *item)
void check_menu ()


Detailed Description

Definition at line 22 of file profile_menu.hpp.


Constructor & Destructor Documentation

ProfileMenu::ProfileMenu (  ) 

Definition at line 27 of file profile_menu.cpp.

References _(), Menu::add_back(), Menu::add_entry(), Menu::add_hl(), and Menu::add_label().

00028 {
00029   add_label(_("Select Profile"));
00030   add_hl();
00031   for(int i = 0; i < 5; ++i)
00032   {
00033     std::ostringstream out;
00034     out << "Profile " << i+1;
00035     add_entry(i+1, out.str());
00036   }
00037 
00038   add_hl();
00039   add_back(_("Back"));
00040 }


Member Function Documentation

void ProfileMenu::menu_action ( MenuItem item  )  [virtual]

Reimplemented from Menu.

Definition at line 43 of file profile_menu.cpp.

References g_config, MenuItem::id, Config::profile, and MenuManager::set_current().

00044 {
00045   g_config->profile = item->id;
00046   MenuManager::set_current(0);
00047 }

void ProfileMenu::check_menu (  )  [inline, virtual]

Implements Menu.

Definition at line 29 of file profile_menu.hpp.

00029 {}


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:34 2014 for SuperTux by  doxygen 1.5.1