blob: 326f2567b8ce08353bec0c81aa7c1f3954e470a4 (
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
|
@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [10]
spacing: 5
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 20
}
fixed_height: 40
@GUI::Label {
fixed_width: 32
fixed_height: 32
icon: "/res/icons/32x32/network.png"
}
@GUI::Label {
text: "Select adapter:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::ComboBox {
model_only: true
name: "adapters_combobox"
}
}
@GUI::GroupBox {
title: "Network"
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {
margins: [10]
}
@GUI::CheckBox {
text: "Enabled"
name: "enabled_checkbox"
}
@GUI::CheckBox {
text: "Obtain settings automatically (using DHCP)"
name: "dhcp_checkbox"
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
preferred_height: 30
@GUI::Label {
text: "IP Address:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::TextBox {
name: "ip_address_textbox"
}
@GUI::Label {
text: "/"
fixed_width: 10
}
@GUI::SpinBox {
name: "cidr_spinbox"
fixed_width: 50
min: 1
max: 32
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
preferred_height: 30
@GUI::Label {
text: "Default gateway:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::TextBox {
name: "default_gateway_textbox"
}
}
}
}
|