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. | |
| std::string | label_ |
| The first text item of the menu item, normally a short string. | |
| std::string | desc_ |
| The second text item of the menu item, normally a longer string. | |
| bool | default_ |
| Is the item the default item and thus initially selected. | |
Implements simple parsing of legacy GUI1 item markup.
Definition at line 27 of file old_markup.hpp.
| gui2::tlegacy_menu_item::tlegacy_menu_item | ( | const std::string & | str = std::string() |
) | [explicit] |
| const std::string& gui2::tlegacy_menu_item::description | ( | ) | const [inline] |
Definition at line 54 of file old_markup.hpp.
References desc_.
Referenced by gui2::twml_message_::pre_show(), and gui2::tcampaign_difficulty::pre_show().

| const std::string& gui2::tlegacy_menu_item::icon | ( | ) | const [inline] |
Definition at line 46 of file old_markup.hpp.
References icon_.
Referenced by gui2::twml_message_::pre_show(), and gui2::tcampaign_difficulty::pre_show().

| bool gui2::tlegacy_menu_item::is_default | ( | ) | const [inline] |
Definition at line 58 of file old_markup.hpp.
References default_.
Referenced by gui2::twml_message_::pre_show(), and gui2::tcampaign_difficulty::pre_show().

| const std::string& gui2::tlegacy_menu_item::label | ( | ) | const [inline] |
Definition at line 50 of file old_markup.hpp.
References label_.
Referenced by gui2::twml_message_::pre_show(), and gui2::tcampaign_difficulty::pre_show().

| tlegacy_menu_item& gui2::tlegacy_menu_item::operator= | ( | const tlegacy_menu_item & | rhs | ) | [inline] |
Definition at line 62 of file old_markup.hpp.
bool gui2::tlegacy_menu_item::default_ [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 86 of file old_markup.hpp.
Referenced by is_default(), and tlegacy_menu_item().
std::string gui2::tlegacy_menu_item::desc_ [private] |
The second text item of the menu item, normally a longer string.
Definition at line 79 of file old_markup.hpp.
Referenced by description(), operator=(), and tlegacy_menu_item().
std::string gui2::tlegacy_menu_item::icon_ [private] |
The icon for the menu item.
Definition at line 73 of file old_markup.hpp.
Referenced by icon(), operator=(), and tlegacy_menu_item().
std::string gui2::tlegacy_menu_item::label_ [private] |
The first text item of the menu item, normally a short string.
Definition at line 76 of file old_markup.hpp.
Referenced by label(), operator=(), and tlegacy_menu_item().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:50 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |