14 #define GETTEXT_DOMAIN "wesnoth-lib" 37 widget_id_.push_back(
"none");
38 widget_id_.push_back(
"err");
39 widget_id_.push_back(
"warn");
40 widget_id_.push_back(
"info");
41 widget_id_.push_back(
"debug");
47 std::string one_domain;
51 while(iss >> one_domain){
52 domain_list_.push_back(one_domain);
60 listbox& logger_box = find_widget<listbox>(&window,
"logger_listbox",
false);
64 std::map<std::string, string_map> data;
67 item[
"label"] = this_domain;
75 widget* this_widget = this_grid->
find(this_id,
false);
77 if(button !=
nullptr) {
81 int current_sev, max_sev = widget_id_.size();
83 if (current_sev <= max_sev) {
99 std::string active_value =
groups_[log_domain].get_active_member_value();
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
std::vector< std::string > widget_id_
std::vector< std::string > domain_list_
void set_logger(const std::basic_string< char > log_domain)
The display function.
unsigned in
If equal to search_counter, the node is off the list.
bool get_log_domain_severity(const std::string &name, int &severity)
This file contains the settings handling of the widget library.
virtual void pre_show(window &window) override
Inherited from modal_dialog.
widget * find(const std::string &id, const bool must_be_active) override
See widget::find.
Various uncategorised dialogs.
void add_member(selectable_item *w, const T &value)
Adds a widget/value pair to the group map.
grid & add_row(const string_map &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
std::map< std::string, group< std::string > > groups_
bool set_log_domain_severity(const std::string &name, int severity)
const grid * get_row_grid(const unsigned row) const
Returns the grid of the wanted row.
std::string list_logdomains(const std::string &filter)
Standard logging facilities (interface).
base class of top level items, the only item which needs to store the final canvases to draw on ...
void set_restore(const bool restore)
std::pair< std::string, unsigned > item
virtual void post_show(window &window) override
Inherited from modal_dialog.
void set_member_states(const T &value)
Sets the toggle values for all widgets besides the one associated with the specified value to false...