summaryrefslogtreecommitdiff
path: root/Userland/Applications/TextEditor/TextEditorWindow.gml
blob: 433d01abff1e0e66a30094b598d5838fe7f8a676 (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
@GUI::Widget {
    name: "main"
    fill_with_background_color: true

    layout: @GUI::VerticalBoxLayout {
        spacing: 2
    }

    @GUI::ToolBarContainer {
        @GUI::ToolBar {
            name: "toolbar"
        }
    }

    @GUI::HorizontalSplitter {
        @GUI::TextEditor {
            name: "editor"
        }

        @Web::OutOfProcessWebView {
            name: "webview"
            visible: false
        }
    }

    @GUI::Widget {
        name: "find_replace_widget"
        visible: false
        fill_with_background_color: true
        fixed_height: 48

        layout: @GUI::VerticalBoxLayout {
            margins: [2, 2, 2, 4]
        }

        @GUI::Widget {
            name: "find_widget"
            fill_with_background_color: true
            fixed_height: 22

            layout: @GUI::HorizontalBoxLayout {
            }

            @GUI::Button {
                name: "find_previous_button"
                text: "Find previous"
                fixed_width: 150
            }

            @GUI::Button {
                name: "find_next_button"
                text: "Find next"
                fixed_width: 150
            }
        }

        @GUI::Widget {
            name: "replace_widget"
            fill_with_background_color: true
            fixed_height: 22

            layout: @GUI::HorizontalBoxLayout {
            }

            @GUI::Button {
                name: "replace_previous_button"
                text: "Replace previous"
                fixed_width: 100
            }

            @GUI::Button {
                name: "replace_next_button"
                text: "Replace next"
                fixed_width: 100
            }

            @GUI::Button {
                name: "replace_all_button"
                text: "Replace all"
                fixed_width: 100
            }
        }
    }

    @GUI::StatusBar {
        name: "statusbar"
    }
}