14 #define GETTEXT_DOMAIN "wesnoth-lib"
35 widget_id_.push_back(
"err");
36 widget_id_.push_back(
"warn");
37 widget_id_.push_back(
"info");
38 widget_id_.push_back(
"debug");
48 while(iss >> one_domain){
49 domain_list_.push_back(one_domain);
57 tlistbox& logger_box = find_widget<tlistbox>(&window,
"logger_listbox",
false);
61 std::map<std::string, string_map>
data;
64 item[
"label"] = this_domain;
72 twidget* this_widget = this_grid->
find(this_id,
false);
74 if(button !=
nullptr) {
std::vector< std::string > widget_id_
void pre_show(twindow &window)
Inherited from tdialog.
REGISTER_DIALOG(label_settings)
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
bool set_log_domain_severity(std::string const &name, int severity)
void set_logger(const std::basic_string< char > log_domain)
void 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.
void set_restore(const bool restore)
std::map< std::string, tgroup< std::string > > groups_
std::map< std::string, t_string > string_map
bool get_log_domain_severity(std::string const &name, int &severity)
std::string list_logdomains(const std::string &filter)
void post_show(twindow &window)
Inherited from tdialog.
Standard logging facilities (interface).
twidget * find(const std::string &id, const bool must_be_active) override
See twidget::find.
void add_member(tselectable_ *widget, const T &value)
Adds a widget/value pair to the group vector.
GLsizei const GLcharARB ** string
void set_member_states(const T &value)
Sets the toggle values for all widgets besides the one associated with the specified value to false...
std::vector< std::string > domain_list_
const tgrid * get_row_grid(const unsigned row) const
Returns the grid of the wanted row.