blob: fa743b49ec03663c8557c0b039fd036cb912b6ff (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
@GUI::Widget {
fill_with_background_color: true
min_width: 260
min_height: 260
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::GroupBox {
title: "Size (px)"
preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 24
@GUI::Label {
text: "Width:"
fixed_width: 60
text_alignment: "CenterRight"
}
@GUI::SpinBox {
name: "width_spinbox"
min: 1
max: 16384
min_width: 140
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 24
@GUI::Label {
text: "Height:"
fixed_width: 60
text_alignment: "CenterRight"
}
@GUI::SpinBox {
name: "height_spinbox"
min: 1
max: 16384
min_width: 140
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 24
min_width: 140
@GUI::Widget {
fixed_width: 60
}
@GUI::CheckBox {
name: "keep_aspect_ratio_checkbox"
text: "Keep aspect ratio"
checked: true
autosize: true
}
}
}
@GUI::GroupBox {
title: "Scaling Mode"
preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::RadioButton {
name: "nearest_neighbor_radio"
text: "Nearest neighbor"
checked: true
autosize: true
}
@GUI::RadioButton {
name: "smooth_pixels_radio"
text: "Smooth Pixels"
autosize: true
}
@GUI::RadioButton {
name: "bilinear_radio"
text: "Bilinear"
autosize: true
}
@GUI::RadioButton {
name: "resize_canvas"
text: "Resize Canvas (None)"
autosize: true
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
@GUI::Layout::Spacer {}
@GUI::DialogButton {
name: "ok_button"
text: "OK"
}
@GUI::DialogButton {
name: "cancel_button"
text: "Cancel"
}
}
}
|