Implements simple parsing of legacy GUI1 item markup. More...
#include <old_markup.hpp>
Public Member Functions | |
tlegacy_menu_item (const std::string &str=std::string()) | |
const std::string & | icon () const |
const std::string & | label () const |
const std::string & | description () const |
bool | is_default () const |
tlegacy_menu_item & | operator= (const tlegacy_menu_item &rhs) |
Private Attributes | |
std::string | icon_ |
The icon for the menu item. More... | |
std::string | label_ |
The first text item of the menu item, normally a short string. More... | |
std::string | desc_ |
The second text item of the menu item, normally a longer string. More... | |
bool | default_ |
Is the item the default item and thus initially selected. More... | |
Implements simple parsing of legacy GUI1 item markup.
Definition at line 26 of file old_markup.hpp.
|
explicit |
|
inline |
Definition at line 55 of file old_markup.hpp.
References desc_.
Referenced by mp::gamebrowser::populate_game_item_campaign_or_scenario_info(), lua_gui2::show_message_dialog(), and gui2::tcampaign_difficulty::tcampaign_difficulty().
|
inline |
Definition at line 45 of file old_markup.hpp.
References icon_.
Referenced by lua_gui2::show_message_dialog(), and gui2::tcampaign_difficulty::tcampaign_difficulty().
|
inline |
Definition at line 60 of file old_markup.hpp.
References default_.
Referenced by lua_gui2::show_message_dialog(), and gui2::tcampaign_difficulty::tcampaign_difficulty().
|
inline |
Definition at line 50 of file old_markup.hpp.
References label_.
Referenced by mp::gamebrowser::populate_game_item_campaign_or_scenario_info(), lua_gui2::show_message_dialog(), and gui2::tcampaign_difficulty::tcampaign_difficulty().
|
inline |
Definition at line 65 of file old_markup.hpp.
|
private |
Is the item the default item and thus initially selected.
It's unspecified what happens if multiple items in a menu are selected.
Definition at line 90 of file old_markup.hpp.
Referenced by is_default(), and tlegacy_menu_item().
|
private |
The second text item of the menu item, normally a longer string.
Definition at line 83 of file old_markup.hpp.
Referenced by description(), operator=(), and tlegacy_menu_item().
|
private |
The icon for the menu item.
Definition at line 77 of file old_markup.hpp.
Referenced by icon(), operator=(), and tlegacy_menu_item().
|
private |
The first text item of the menu item, normally a short string.
Definition at line 80 of file old_markup.hpp.
Referenced by label(), operator=(), and tlegacy_menu_item().