summaryrefslogtreecommitdiff
path: root/Userland/Applications/CrashReporter/CrashReporterWindow.gml
blob: e5597b145edc69af5bd160006094c24cdc78d806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
@GUI::Widget {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [5]
    }

    @GUI::Widget {
        fixed_height: 44
        layout: @GUI::HorizontalBoxLayout {
            spacing: 10
        }

        @GUI::ImageWidget {
            name: "icon"
        }

        @GUI::Label {
            name: "description"
            text_alignment: "CenterLeft"
        }
    }

    @GUI::Widget {
        fixed_height: 18
        layout: @GUI::HorizontalBoxLayout {}

        @GUI::Label {
            text: "Executable path:"
            text_alignment: "CenterLeft"
            fixed_width: 90
        }

        @GUI::LinkLabel {
            name: "executable_link"
            text_alignment: "CenterLeft"
        }
    }

    @GUI::Widget {
        fixed_height: 18
        layout: @GUI::HorizontalBoxLayout {}

        @GUI::Label {
            text: "Coredump path:"
            text_alignment: "CenterLeft"
            fixed_width: 90
        }

        @GUI::LinkLabel {
            name: "coredump_link"
            text_alignment: "CenterLeft"
        }
    }

    @GUI::Widget {
        fixed_height: 18
        layout: @GUI::HorizontalBoxLayout {}

        @GUI::Label {
            text: "Arguments:"
            text_alignment: "CenterLeft"
            fixed_width: 90
        }

        @GUI::Label {
            name: "arguments_label"
            text_alignment: "CenterLeft"
        }
    }

    @GUI::Progressbar {
        name: "progressbar"
        text: "Generating crash report: "
    }

    @GUI::TabWidget {
        name: "tab_widget"
        visible: false
    }

    @GUI::Widget {
        fixed_height: 32
        layout: @GUI::HorizontalBoxLayout {}

        @GUI::Button {
            name: "debug_button"
            text: "Debug in Hack Studio"
            fixed_width: 150
        }

        // HACK: We need something like Layout::add_spacer() in GML! :^)
        @GUI::Widget {}

        @GUI::Button {
            name: "close_button"
            text: "Close"
            fixed_width: 70
        }
    }
}