#textdomain wesnoth-lib ### ### Definition of the window to select logging options. ### These first six strings match the names from logging.cpp ### #define _NAME "label"#enddef #define _DEBUG "debug"#enddef #define _INFO "info"#enddef #define _WARN "warn"#enddef #define _ERR "err"#enddef #define _NONE "none"#enddef #define _DEBUG_TOOLTIP _ "Debug level logging: maximum information"#enddef #define _INFO_TOOLTIP _ "Info level logging: more information"#enddef #define _WARN_TOOLTIP _ "Warning level logging: less information"#enddef #define _ERR_TOOLTIP _ "Error level logging: minimum information"#enddef #define _NONE_TOOLTIP _ "Disable logging"#enddef #define _GUI_LOGGER_RADIOS GROUP_MACRO_NAME [column] grow_factor = 1 horizontal_alignment = "center" border = "all" border_size = 5 # HACK: Inner grid to allow the radio button to get aligned to the # center of the cell without growing horizontally (which results # in the circle portion ending up left-aligned) [grid] linked_group = {{GROUP_MACRO_NAME}} [row] [column] grow_factor = 0 horizontal_alignment = "center" [toggle_button] id = {{GROUP_MACRO_NAME}} definition = "radio_no_label" tooltip = {{GROUP_MACRO_NAME}_TOOLTIP} [/toggle_button] [/column] [/row] [/grid] [/column] #enddef #define _GUI_LOGGER_HEADERS GROUP_MACRO_NAME MINI_LABEL [column] grow_factor = 1 horizontal_grow = true border = "top,bottom" border_size = 5 [label] definition = "gold_small" text_alignment = "center" linked_group = {{GROUP_MACRO_NAME}} label = {MINI_LABEL} tooltip = {{GROUP_MACRO_NAME}_TOOLTIP} [/label] [/column] #enddef [window] id = "log_settings" description = "Advanced options to control how much information is printed to console." [resolution] definition = "default" automatic_placement = true vertical_placement = "center" horizontal_placement = "center" {GUI_WINDOW_FIXED_SIZE_CENTERED 800 600} [linked_group] id = {_NAME} fixed_width = true [/linked_group] [linked_group] id = {_DEBUG} fixed_width = true [/linked_group] [linked_group] id = {_INFO} fixed_width = true [/linked_group] [linked_group] id = {_WARN} fixed_width = true [/linked_group] [linked_group] id = {_ERR} fixed_width = true [/linked_group] [linked_group] id = {_NONE} fixed_width = true [/linked_group] [tooltip] id = "tooltip" [/tooltip] [helptip] id = "tooltip" [/helptip] [grid] [row] [column] horizontal_grow = true [grid] [row] [column] grow_factor = 1 border = "all" border_size = 5 horizontal_alignment = "left" vertical_alignment = "top" [label] definition = "title" label = _ "Logging Options" [/label] [/column] [column] border = "all" border_size = 5 horizontal_alignment = "right" [text_box] id = "filter_box" definition = "default" {FILTER_TEXT_BOX_HINT} [/text_box] [/column] [/row] [/grid] [/column] [/row] [row] grow_factor = 1 [column] grow_factor = 1 border = "all" border_size = 5 horizontal_grow = true vertical_grow = true [listbox] id = "logger_listbox" definition = "default" horizontal_scrollbar_mode = "never" [header] [row] [column] grow_factor = 1 horizontal_grow = true [label] definition = "gold_small" linked_group = {_NAME} label = _ "Log Domain" [/label] [/column] {_GUI_LOGGER_HEADERS _DEBUG _"log_level^Debug"} {_GUI_LOGGER_HEADERS _INFO _"log_level^Info"} {_GUI_LOGGER_HEADERS _WARN _"log_level^Warning"} {_GUI_LOGGER_HEADERS _ERR _"log_level^Error"} {_GUI_LOGGER_HEADERS _NONE _"log_level^None"} [/row] [/header] [list_definition] [row] [column] vertical_grow = true horizontal_grow = true [toggle_panel] definition = "default" [grid] [row] [column] grow_factor = 1 horizontal_alignment = "left" border = "all" border_size = 5 [label] id = {_NAME} definition = "default" linked_group = {_NAME} [/label] [/column] {_GUI_LOGGER_RADIOS _DEBUG} {_GUI_LOGGER_RADIOS _INFO} {_GUI_LOGGER_RADIOS _WARN} {_GUI_LOGGER_RADIOS _ERR} {_GUI_LOGGER_RADIOS _NONE} [/row] [/grid] [/toggle_panel] [/column] [/row] [/list_definition] [/listbox] [/column] [/row] [row] grow_factor = 0 [column] horizontal_alignment = "right" [grid] [row] grow_factor = 0 [column] border = "all" border_size = 5 horizontal_alignment = "right" [button] id = "ok" definition = "default" label = _ "OK" [/button] [/column] [column] border = "all" border_size = 5 horizontal_alignment = "right" [button] id = "cancel" definition = "default" label = _ "Cancel" [/button] [/column] [/row] [/grid] [/column] [/row] [/grid] [/resolution] [/window] #undef _GUI_LOGGER_RADIOS #undef _GUI_LOGGER_HEADERS #undef _NAME #undef _DEBUG #undef _DEBUG_TOOLTIP #undef _INFO #undef _INFO_TOOLTIP #undef _WARN #undef _WARN_TOOLTIP #undef _ERR #undef _ERR_TOOLTIP #undef _NONE #undef _NONE_TOOLTIP