#include <profile_menu.hpp>
Inherits Menu.
Public Member Functions | |
ProfileMenu () | |
void | menu_action (MenuItem *item) |
void | check_menu () |
Definition at line 22 of file profile_menu.hpp.
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 }
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] |