16 #define GETTEXT_DOMAIN "wesnoth-lib"
27 #ifdef GUI2_EXPERIMENTAL_LISTBOX
28 #include "gui/widgets/list.hpp"
40 , initial_topic_("introduction")
47 tree_view& topic_tree = find_widget<tree_view>(&
window,
"topic_tree",
false);
48 multi_page& topic_pages = find_widget<multi_page>(&
window,
"topic_text_pages",
false);
61 item[
"label"] = topic[
"title"];
70 item[
"label"] = topic[
"text"].empty() ?
"" : topic[
"text"].str();
95 const unsigned topic_i = lexical_cast<unsigned>(tree.
selected_item()->
id());
96 find_widget<multi_page>(
get_window(),
"topic_text_pages",
false).select_page(topic_i);
child_itors child_range(config_key_type key)
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
window * get_window()
Returns a pointer to the dialog's window.
grid & add_page(const widget_item &item)
Adds single page to the grid.
tree_view_node & add_node(const std::string &id, const widget_data &data, const int index=-1)
tree_view_node * selected_item()
base class of top level items, the only item which needs to store the final canvases to draw on.
void keyboard_capture(widget *widget)
Game configuration data as global variables.
REGISTER_DIALOG(editor_edit_unit)
void connect_signal_notify_modified(dispatcher &dispatcher, const signal_notification &signal)
Connects a signal handler for getting a notification upon modification.
std::map< std::string, widget_item > widget_data
std::map< std::string, t_string > widget_item
std::pair< std::string, unsigned > item