-
Notifications
You must be signed in to change notification settings - Fork 8
/
camera_setting_screen.kv
161 lines (161 loc) · 6.22 KB
/
camera_setting_screen.kv
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<CameraSettingScreen>:
md_bg_color: .2, .2, .2, 1
on_pre_enter: self.on_pre_enter()
MDBoxLayout:
orientation: 'vertical'
MDTopAppBar:
title: app.textini[app.lang]["label_adfi"]
md_bg_color: app.theme_cls.primary_dark
MDLabel:
id: message
halign: "center"
size_hint: 1, .1
color: 1, 1, 1, 1
text: app.textini[app.lang]["camera_settings"] + " " + app.textini[app.lang]["step"] + " 1/2 : " + app.textini[app.lang]["cs_camera_choice"]
padding: "4dp", "4dp"
MDBoxLayout:
id: buttons
size_hint: 1, .1
MDRectangleFlatButton:
id: cb0
text_color: "white"
text: "Camera 0: " + app.textini[app.lang]["no_camera"]
disabled: True
on_release: camera_view.active_camera(0), parameter_table.display_parameter(0)
MDRectangleFlatButton:
id: cb1
text_color: "white"
text: "Camera 1: " + app.textini[app.lang]["no_camera"]
disabled: True
on_release: camera_view.active_camera(1), parameter_table.display_parameter(1)
MDRectangleFlatButton:
id: cb2
text_color: "white"
text: "Camera 2: " + app.textini[app.lang]["no_camera"]
disabled: True
on_release: camera_view.active_camera(2), parameter_table.display_parameter(2)
MDRectangleFlatButton:
id: cb3
text_color: "white"
text: "Camera 3: " + app.textini[app.lang]["no_camera"]
disabled: True
on_release: camera_view.active_camera(3), parameter_table.display_parameter(3)
MDRectangleFlatButton:
id: cb4
text_color: "white"
text: "Camera 4: " + app.textini[app.lang]["no_camera"]
disabled: True
on_release: camera_view.active_camera(4), parameter_table.display_parameter(4)
MDBoxLayout:
MDLabel:
size_hint: .7, 1
text: ""
ParameterTable:
id: parameter_table
adaptive_height: True
size_hint: .3, 1
cols: 2
rows: 12
MDLabel:
id: camera_name
font_size: "22sp"
text: ""
MDLabel:
text: ""
MDLabel:
text: app.textini[app.lang]["param_width"]
MDLabel:
id: param_width
text: ""
MDLabel:
text: app.textini[app.lang]["param_height"]
MDLabel:
id: param_height
text: ""
MDLabel:
text: app.textini[app.lang]["param_auto_focus"]
MDLabel:
id: param_auto_focus
text: ""
MDLabel:
text: app.textini[app.lang]["param_focus"]
MDLabel:
id: param_focus
text: ""
MDLabel:
text: app.textini[app.lang]["param_auto_exposure"]
MDLabel:
id: param_auto_exposure
text: ""
MDLabel:
text: app.textini[app.lang]["param_exposure"]
MDLabel:
id: param_exposure
text: ""
MDLabel:
text: app.textini[app.lang]["param_gamma"]
MDLabel:
id: param_gamma
text: ""
MDLabel:
text: app.textini[app.lang]["param_gain"]
MDLabel:
id: param_gain
text: ""
MDLabel:
id: space
text: ""
MDLabel:
id: space
text: ""
MDRectangleFlatButton:
id: parameter_settings_button
text_color: "white"
font_size: "18sp"
text: app.textini[app.lang]["cs_parameter_settings"]
on_release: camera_view.camera_setting()
disabled: True
MDRectangleFlatButton:
id: save_settings_button
text_color: "white"
font_size: "18sp"
text: app.textini[app.lang]["cs_save_settings"]
on_release: camera_view.save_camera_parameter()
disabled: True
MDRectangleFlatButton:
id: delete_saved_settings_button
text_color: "white"
font_size: "18sp"
text: app.textini[app.lang]["cs_delete_saved_settings"]
on_release: camera_view.show_delete_settings_dialog()
disabled: True
MDLabel:
id: space
text: ""
MDRectangleFlatButton:
pos_hint: {'center_x': .5}
size_hint: .3, .1
text_color: "white"
font_size: "18sp"
text: app.textini[app.lang]["next"]
on_release:
camera_view.clock_unschedule()
app.sm.transition.direction = "left"
app.sm.current = "target_area"
padding: "4dp", "4dp"
MDLabel:
id: bottom_space
halign: "center"
size_hint: 1, .15
color: 0, 0, 0, 0
MDBottomAppBar:
md_bg_color: app.theme_cls.primary_dark
MDTopAppBar:
title: app.textini[app.lang]["label_copyright"]
icon: "close"
type: "bottom"
mode: "end"
on_action_button: app.popup_open()
CameraView:
id: camera_view
pos: 200, 200