Chat Log: made dialog fixed-size and cleaned up WML
This commit is contained in:
parent
58a4a455a9
commit
600e0c47b0
1 changed files with 206 additions and 189 deletions
|
@ -4,208 +4,225 @@
|
|||
###
|
||||
|
||||
[window]
|
||||
id = "chat_log"
|
||||
description = "Chat log dialog."
|
||||
id = "chat_log"
|
||||
description = "Chat log dialog."
|
||||
|
||||
[resolution]
|
||||
definition = "default"
|
||||
automatic_placement = "true"
|
||||
vertical_placement = "center"
|
||||
horizontal_placement = "center"
|
||||
maximum_width = 800
|
||||
maximum_height = 600
|
||||
[resolution]
|
||||
definition = "default"
|
||||
|
||||
[tooltip]
|
||||
id = "tooltip"
|
||||
[/tooltip]
|
||||
{GUI_WINDOW_FIXED_SIZE_CENTERED 800 600}
|
||||
|
||||
[helptip]
|
||||
id = "tooltip"
|
||||
[/helptip]
|
||||
[tooltip]
|
||||
id = "tooltip"
|
||||
[/tooltip]
|
||||
|
||||
[grid]
|
||||
[row] #header
|
||||
grow_factor = 0
|
||||
[helptip]
|
||||
id = "tooltip"
|
||||
[/helptip]
|
||||
|
||||
[column]
|
||||
grow_factor = 7
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
[grid]
|
||||
|
||||
[label]
|
||||
definition = "title"
|
||||
label = _ "Chat Log"
|
||||
[/label]
|
||||
[/column]
|
||||
[/row]
|
||||
[row] #menu
|
||||
grow_factor = 0
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
horizontal_alignment = "left"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
definition = "default"
|
||||
label = _ "Page:"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[slider]
|
||||
id = "page_number"
|
||||
definition = "minimal"
|
||||
minimum_value = 1
|
||||
maximum_value = 100
|
||||
step_size = 1
|
||||
# Unused, kept for 1.12 i18n in case the default slider
|
||||
# variant with a label needs to be restored.
|
||||
maximum_value_label = _"Last"
|
||||
[/slider]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
id = "page_label"
|
||||
definition = "default"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
[button]
|
||||
id = "previous_page"
|
||||
definition = "left_arrow_short_ornate"
|
||||
label = _ "Previous"
|
||||
tooltip = _ "Previous page"
|
||||
[/button]
|
||||
[/column]
|
||||
[column]
|
||||
[button]
|
||||
id = "next_page"
|
||||
definition = "right_arrow_short_ornate"
|
||||
label = _ "Next"
|
||||
tooltip = _ "Next page"
|
||||
[/button]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[column]
|
||||
horizontal_alignment = "right"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
definition = "default"
|
||||
label = _ "Filter:"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 1
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[text_box]
|
||||
id = "filter"
|
||||
definition = "default"
|
||||
[/text_box]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
[row] #choice
|
||||
grow_factor="7"
|
||||
[column]
|
||||
grow_factor = 7
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_grow = "true"
|
||||
[label]
|
||||
definition = "title"
|
||||
label = _ "Chat Log"
|
||||
[/label]
|
||||
[/column]
|
||||
[/row]
|
||||
|
||||
#
|
||||
# HACK:
|
||||
# In order to reserve a minimum screen space for the
|
||||
# central widget and avoid sudden window size changes when
|
||||
# switching pages or entering text in the search box, we
|
||||
# use two spacer widgets within a subgrid to restrict this
|
||||
# cell's minimum size. It's important to keep the spacers'
|
||||
# dimensions within certain limits so as to not cause
|
||||
# dialog-spanning scrollbars to appear on 800x480.
|
||||
#
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
||||
{GUI_FORCE_WIDGET_MINIMUM_SIZE 200 250 (
|
||||
[scroll_label]
|
||||
id = "msg"
|
||||
definition = "description"
|
||||
[/scroll_label]
|
||||
)}
|
||||
[/column]
|
||||
[/row]
|
||||
[row] #status
|
||||
grow_factor = 0
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
[grid]
|
||||
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
[button]
|
||||
id = "copy"
|
||||
definition = "action_copy"
|
||||
label = _ "clipboard^Copy"
|
||||
tooltip = _ "Copy this log to clipboard"
|
||||
[/button]
|
||||
[/column]
|
||||
[row]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[label]
|
||||
definition = "default"
|
||||
label = _ "Page:"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[slider]
|
||||
id = "page_number"
|
||||
definition = "minimal"
|
||||
minimum_value = 1
|
||||
maximum_value = 100
|
||||
step_size = 1
|
||||
|
||||
# Unused, kept for 1.12 i18n in case the default slider
|
||||
# variant with a label needs to be restored.
|
||||
maximum_value_label = _"Last"
|
||||
[/slider]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[label]
|
||||
id = "page_label"
|
||||
definition = "default"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
|
||||
[grid]
|
||||
|
||||
[row]
|
||||
|
||||
[column]
|
||||
[button]
|
||||
id = "previous_page"
|
||||
definition = "left_arrow_short_ornate"
|
||||
label = _ "Previous"
|
||||
tooltip = _ "Previous page"
|
||||
[/button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
[button]
|
||||
id = "next_page"
|
||||
definition = "right_arrow_short_ornate"
|
||||
label = _ "Next"
|
||||
tooltip = _ "Next page"
|
||||
[/button]
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[label]
|
||||
definition = "default"
|
||||
label = _ "Filter:"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[text_box]
|
||||
id = "filter"
|
||||
definition = "default"
|
||||
[/text_box]
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[row]
|
||||
grow_factor= 1
|
||||
|
||||
[column]
|
||||
grow_factor = 7
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_grow = "true"
|
||||
vertical_grow = "true"
|
||||
|
||||
[scroll_label]
|
||||
id = "msg"
|
||||
definition = "description"
|
||||
|
||||
# NOTE: this is necessary to avoid internal invalidate_layout calls when the scrollbar
|
||||
# switches visibility in scrollbar_container, which resets the scrollbar position.
|
||||
vertical_scrollbar_mode = "always"
|
||||
[/scroll_label]
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
|
||||
[grid]
|
||||
|
||||
[row]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "left"
|
||||
|
||||
[button]
|
||||
id = "copy"
|
||||
definition = "action_copy"
|
||||
label = _ "clipboard^Copy"
|
||||
tooltip = _ "Copy this log to clipboard"
|
||||
[/button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "right"
|
||||
|
||||
[button]
|
||||
id = "cancel"
|
||||
definition = "default"
|
||||
label = _ "Close"
|
||||
[/button]
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
|
||||
[/resolution]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_alignment = "right"
|
||||
[button]
|
||||
id = "cancel"
|
||||
definition = "default"
|
||||
label = _ "Close"
|
||||
[/button]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/resolution]
|
||||
[/window]
|
||||
|
||||
# kate: indent-mode normal; encoding utf-8; space-indent on;
|
||||
|
|
Loading…
Add table
Reference in a new issue