#textdomain wesnoth-lib
###
### Definition of the window to control formula debugger.
###

[window]
    id = "formula_debugger"
    description = "Formula debugger dialog."

    [resolution]
        definition = "default"
        automatic_placement = "true"
        vertical_placement = "center"
        horizontal_placement = "center"

        [grid]
            [row] #header
                grow_factor = 0

                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"

                    [label]
                        definition = "title"
                        label = _ "Formula debugger"
                    [/label]
                [/column]

                [column]
                    grow_factor = 0
                    [spacer]
                        definition = "default"
                    [/spacer]
                [/column]
            [/row]

            [row] #menu
                grow_factor = 0

                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"

                    [label]
                        definition = "default"
                        label= _ "Welcome"
                    [/label]
                [/column]

                [column]
                    grow_factor = 0
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [label]
                        id="state"
                        definition = "default"
                        label= _ "state"
                    [/label]
                [/column]
            [/row]

            [row] #stack-title
                grow_factor = 2
                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [label]
                        definition = "default"
                        label= _ "Call stack"
                    [/label]
                [/column]

                [column]
                    grow_factor = 0
                    horizontal_alignment="center"
                    [label]
                        definition = "default"
                        label = _ "Actions"
                    [/label]
                [/column]
            [/row]

            [row] #stack-main
                grow_factor = 2

                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    vertical_alignment = "top"
                    horizontal_alignment = "left"
                    [scroll_label]
                        id = "stack"
                        definition = "default"
                    [/scroll_label]
                [/column]

                [column]
                    grow_factor = 0
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "center"
                    vertical_alignment = "top"
                    [grid]
                        [row]
                            grow_factor=0
                            [column]
                                grow_factor=0
                                [button]
                                    id = "step"
                                    definition = "default"
                                    label = _ "Step operation"
                                [/button]
                            [/column]
                        [/row]
                        [row]
                            grow_factor=0
                            [column]
                                grow_factor=0
                                [button]
                                    id = "next"
                                    definition = "default"
                                    label = _ "Next operation"
                                [/button]
                            [/column]
                        [/row]
                        [row]
                            grow_factor=0
                            [column]
                                grow_factor=0
                                [button]
                                    id = "stepout"
                                    definition = "default"
                                    label = _ "Step out"
                                [/button]
                            [/column]
                        [/row]
                        [row]
                            grow_factor=0
                            [column]
                                grow_factor=0
                                [button]
                                    id = "continue"
                                    definition = "default"
                                    label = _ "Continue"
                                [/button]
                            [/column]
                        [/row]
                    [/grid]
                [/column]
            [/row]

            [row] #trace-title
                grow_factor = 0
                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [label]
                        definition = "default"
                        label= _ "Execution trace"
                    [/label]
                [/column]

                [column]
                    grow_factor = 0
                    horizontal_alignment="center"
                    [spacer]
                        definition = "default"
                    [/spacer]
                [/column]
            [/row]

            [row] #trace-main
                grow_factor = 6

                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [scroll_label]
                        id = "execution"
                        definition = "default"
                    [/scroll_label]
                [/column]

                [column]
                    grow_factor = 0
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [spacer]
                        definition = "default"
                    [/spacer]
                [/column]
            [/row]

            [row] #status
                grow_factor = 0

                [column]
                    grow_factor = 7
                    border = "all"
                    border_size = 5
                    horizontal_alignment = "left"
                    [spacer]
                        definition = "default"
                    [/spacer]
                [/column]

                [column]
                    grow_factor = 0
                    [button]
                        id = "cancel"
                        definition = "default"
                        label = _ "Quit"
                    [/button]
                [/column]
            [/row]
        [/grid]
    [/resolution]
[/window]
