blob: 347d6852e58eebf72e3580fccf3ba3f2734187a7 (
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
|
@GUI::Widget {
name: "basic_model_tab"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Label {
text: "Here is a basic model, displayed on a table widget. Its clients are updated via granular updates. You can add or remove items with the widgets below."
text_alignment: "CenterLeft"
thickness: 2
fixed_height: 34
}
@GUI::TableView {
name: "model_table"
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 30
@GUI::TextBox {
name: "new_item_name"
placeholder: "Enter some text to be added..."
}
@GUI::Button {
name: "add_new_item"
fixed_width: 22
fixed_height: 22
tooltip: "Add the text as an item to the model"
}
@GUI::Button {
name: "remove_selected_item"
fixed_width: 22
fixed_height: 22
tooltip: "Remove the selected item from the model"
}
}
}
|