mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 20:02:31 +00:00

In commit fc7c87b765a30a706690a88c0ca194f25ef4eda9 someone missed the logic surrounding the Open Log File button's setup that should've been made not Windows-specific anymore. This commit enables the Open Log File button back whenever Wesnoth has a log file open for the current session. It also removes a few more leftovers of the old Windows-specific UI layout path.
667 lines
11 KiB
INI
667 lines
11 KiB
INI
#textdomain wesnoth-lib
|
|
|
|
#define _GUI_GAME_PATHS_ENTRY ID_STEM LABEL
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
|
|
[label]
|
|
id = "label_"+{ID_STEM}
|
|
definition = "default"
|
|
|
|
label = {LABEL}
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[text_box]
|
|
id = "path_"+{ID_STEM}
|
|
definition = "default"
|
|
[/text_box]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[button]
|
|
id = "copy_"+{ID_STEM}
|
|
definition = "action_copy"
|
|
label = _ "filesystem^Copy"
|
|
tooltip = _ "Copy this path to clipboard"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[button]
|
|
id = "browse_"+{ID_STEM}
|
|
definition = "action_browse"
|
|
label = _ "filesystem^Browse"
|
|
tooltip = _ "Browse this location using a file manager"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
#enddef
|
|
|
|
#define _GUI_VERINFO_TAB
|
|
[toggle_panel]
|
|
linked_group = "tabs"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
{_GUI_VERINFO_TAB_PADDING}
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = all
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = "tab_label"
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
{_GUI_VERINFO_TAB_PADDING}
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/toggle_panel]
|
|
#enddef
|
|
|
|
#define _GUI_VERINFO_TAB_PADDING
|
|
[column]
|
|
border = all
|
|
border_size = 5
|
|
|
|
[spacer][/spacer]
|
|
|
|
[/column]
|
|
#enddef
|
|
|
|
#define _GUI_VERINFO_TAB_PAGE_GAME_PATHS
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_alignment = top
|
|
|
|
[grid]
|
|
|
|
#
|
|
# NOTE: the following ids must follow the C++ code's expectations
|
|
# (see gui2::tgame_version::path_map_).
|
|
#
|
|
|
|
{_GUI_GAME_PATHS_ENTRY datadir ( _ "Game data:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY config ( _ "Configuration:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY userdata ( _ "User data:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY saves ( _ "Saved games:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY addons ( _ "Add-ons:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY cache ( _ "Cache:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY logs ( _ "Logs:")}
|
|
|
|
{_GUI_GAME_PATHS_ENTRY screenshots ( _ "Screenshots:")}
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_alignment = right
|
|
vertical_alignment = top
|
|
border = all
|
|
border_size = 5
|
|
|
|
[button]
|
|
id = "open_stderr"
|
|
label = _ "Open Log File"
|
|
tooltip = _ "Opens the log file, which may contain useful debug information"
|
|
[/button]
|
|
[/column]
|
|
|
|
[/row]
|
|
#enddef
|
|
|
|
#define _GUI_VERINFO_TAB_PAGE_BUILD_INFO
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_alignment = top
|
|
border = "left,right,bottom"
|
|
border_size = 5
|
|
|
|
[listbox]
|
|
id = "deps_listbox"
|
|
definition = "default"
|
|
|
|
[header]
|
|
[row]
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
definition = "gold_small"
|
|
label = _ "library^Name"
|
|
linked_group = "dep_name"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
definition = "gold_small"
|
|
label = _ "library^Build version"
|
|
text_alignment = "center"
|
|
linked_group = "dep_build_version"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
definition = "gold_small"
|
|
label = _ "library^Runtime version"
|
|
text_alignment = "center"
|
|
linked_group = "dep_rt_version"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/header]
|
|
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
[toggle_panel]
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = "dep_name"
|
|
definition = "default"
|
|
linked_group = "dep_name"
|
|
wrap = true
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = "dep_build_version"
|
|
linked_group = "dep_build_version"
|
|
text_alignment = "center"
|
|
wrap = true
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = "dep_rt_version"
|
|
linked_group = "dep_rt_version"
|
|
text_alignment = "center"
|
|
wrap = true
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/toggle_panel]
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
|
|
[/listbox]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
#enddef
|
|
|
|
#define _GUI_VERINFO_TAB_PAGE_GAME_FEATURES
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
label = _ "The following features were selected when building this version of Wesnoth:"
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_alignment = top
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[listbox]
|
|
id = "opts_listbox"
|
|
definition = "default"
|
|
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
[toggle_panel]
|
|
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
grow_factor = 2
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = "opt_name"
|
|
linked_group = "opt_name"
|
|
wrap = true
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = "opt_status"
|
|
definition = "default_large"
|
|
linked_group = "opt_status"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/toggle_panel]
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
|
|
[/listbox]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
#enddef
|
|
|
|
[window]
|
|
id = "game_version"
|
|
description = "List of paths used by the game to locate resource and configuration files."
|
|
|
|
[resolution]
|
|
definition = "default"
|
|
|
|
click_dismiss = true
|
|
maximum_width = 650
|
|
maximum_height = 600
|
|
|
|
[tooltip]
|
|
id = "tooltip"
|
|
[/tooltip]
|
|
|
|
[helptip]
|
|
id = "tooltip"
|
|
[/helptip]
|
|
|
|
[linked_group]
|
|
id = "tabs"
|
|
fixed_width = true
|
|
fixed_height = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "dep_name"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "dep_build_version"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "dep_rt_version"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "opt_name"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "opt_status"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
border = all
|
|
border_size = 5
|
|
|
|
[image]
|
|
label = "wesnoth-icon.png"
|
|
[/image]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_alignment = top
|
|
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
border = all
|
|
border_size = 5
|
|
|
|
[label]
|
|
label = _ "The Battle for Wesnoth"
|
|
definition = "title"
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
border = all
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = version
|
|
definition = default_bold
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_alignment = left
|
|
vertical_alignment = top
|
|
border = all
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = os
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
[column]
|
|
border = all
|
|
border_size = 5
|
|
|
|
[spacer][/spacer]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
border = all
|
|
border_size = 5
|
|
|
|
[horizontal_listbox]
|
|
id = "tab_bar"
|
|
horizontal_scrollbar_mode = "never"
|
|
vertical_scrollbar_mode = "never"
|
|
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
{_GUI_VERINFO_TAB}
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
|
|
[list_data]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
|
|
[widget]
|
|
id = "tab_label"
|
|
label = _ "Paths"
|
|
[/widget]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
|
|
[widget]
|
|
id = "tab_label"
|
|
label = _ "Libraries"
|
|
[/widget]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
|
|
[widget]
|
|
id = "tab_label"
|
|
label = _ "Features"
|
|
[/widget]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/list_data]
|
|
[/horizontal_listbox]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
|
|
horizontal_grow = true
|
|
|
|
[stacked_widget]
|
|
id = tabs_container
|
|
|
|
[layer]
|
|
{_GUI_VERINFO_TAB_PAGE_GAME_PATHS}
|
|
[/layer]
|
|
|
|
[layer]
|
|
{_GUI_VERINFO_TAB_PAGE_BUILD_INFO}
|
|
[/layer]
|
|
|
|
[layer]
|
|
{_GUI_VERINFO_TAB_PAGE_GAME_FEATURES}
|
|
[/layer]
|
|
|
|
[/stacked_widget]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
horizontal_alignment = left
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[button]
|
|
id = "copy_all"
|
|
definition = "action_copy"
|
|
label = _ "page^Copy"
|
|
tooltip = _ "Copy the full report to clipboard"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_alignment = right
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[button]
|
|
id = "ok"
|
|
definition = "default"
|
|
|
|
label = _ "Close"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/resolution]
|
|
|
|
[/window]
|
|
|
|
#undef _GUI_GAME_PATHS_ENTRY
|
|
#undef _GUI_VERINFO_TAB
|
|
#undef _GUI_VERINFO_TAB_PADDING
|
|
#undef _GUI_VERINFO_TAB_PAGE_GAME_PATHS
|
|
#undef _GUI_VERINFO_TAB_PAGE_BUILD_INFO
|
|
#undef _GUI_VERINFO_TAB_PAGE_GAME_FEATURES
|