Lua console: made window fullscreen and cleaned up layout code

This commit is contained in:
Charles Dang 2016-07-30 16:46:55 +11:00
parent dc3d22a5e4
commit fbef58a29a

View file

@ -4,156 +4,144 @@
###
[window]
id = "lua_interpreter"
description = "Lua interpreter console dialog."
id = "lua_interpreter"
description = "Lua interpreter console dialog."
[resolution]
definition = "default"
automatic_placement = "true"
vertical_placement = "center"
horizontal_placement = "center"
#maximum_width = 800
#maximum_height = 600
[resolution]
definition = "borderless"
[tooltip]
id = "tooltip"
[/tooltip]
{GUI_WINDOW_FULLSCREEN}
[helptip]
id = "tooltip"
[/helptip]
[tooltip]
id = "tooltip"
[/tooltip]
[grid]
[row] #header
grow_factor = 0
[column]
horizontal_grow = "true"
[grid]
[row]
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_alignment = "left"
[helptip]
id = "tooltip"
[/helptip]
[label]
definition = "title"
label = _ "Lua Console"
[/label]
[/column]
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_alignment = "right"
[grid]
[row] #header
grow_factor = 0
[column]
horizontal_grow = "true"
[grid]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "kernel_type"
definition = "default"
[/label]
[/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 = _ "Lua Console"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
#
# 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.
#
[label]
id = "kernel_type"
definition = "default"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
{GUI_FORCE_WIDGET_MINIMUM_SIZE 760 400 (
[scroll_label]
id = "msg"
definition = "verbatim"
[/scroll_label]
)}
[/column]
[/row]
[row]
grow_factor=0
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_grow = "true"
[row] #choice
grow_factor = 1
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = "true"
vertical_grow = "true"
[text_box]
id = "text_entry"
definition = "default"
history = "lua_text_entry"
[/text_box]
[/column]
[/row]
[row] #status
grow_factor = 0
[scroll_label]
id = "msg"
definition = "verbatim"
[/scroll_label]
[/column]
[/row]
[column]
horizontal_grow = "true"
[row]
grow_factor=0
[column]
grow_factor = 7
border = "all"
border_size = 5
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"
# FIXME: tooltips cause weird interactions with map
# labels while running a GUI2 dialog, so let's
# not use a tooltip yet.
#tooltip = _ "Copy this log to clipboard"
[/button]
[/column]
[text_box]
id = "text_entry"
definition = "default"
history = "lua_text_entry"
[/text_box]
[/column]
[/row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "clear"
label = _ "Clear Console"
# FIXME: tooltips cause weird interactions with map
# labels while running a GUI2 dialog, so let's
# not use a tooltip yet.
#tooltip = _ "Clear the log area"
[/button]
[/column]
[row] #status
grow_factor = 0
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"
label = _ "Close"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[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"
# FIXME: tooltips cause weird interactions with map
# labels while running a GUI2 dialog, so let's
# not use a tooltip yet.
#tooltip = _ "Copy this log to clipboard"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "clear"
label = _ "Clear Console"
# FIXME: tooltips cause weird interactions with map
# labels while running a GUI2 dialog, so let's
# not use a tooltip yet.
#tooltip = _ "Clear the log area"
[/button]
[/column]
[column]
grow_factor = 1
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;