-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages.kv
201 lines (197 loc) · 6.13 KB
/
pages.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#: kivy 2.0.0
#:import now datetime.datetime
#:import link webbrowser
<Page3>:
rv:rv
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size:root.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y:0.92
orientation: 'vertical'
padding: 10, 10
spacing: 10
RV:
viewclass: 'RallyRow'
id: rv
RoundedButton:
size_hint_y: 0.2
color: 0,0,0
font_size: (self.height ** 1.9 + self.width**1.3) ** 0.5
bold: True
text: 'Capture'
on_press: root.on_capture(now.now())
<StageSel>:
stg_sel_drop: stg_sel_drop
stg_sel_text: stg_sel_text
day: day
stage: stage
stg_sel: stg_sel
box: box
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size:root.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
id: box
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.15
Label:
size_hint_x: 0.4
text: "Present Task"
color: 0,0,0
Spinner:
id: stage
text: 'Time Control IN'
size_hint_x:0.6
values: 'Time Control IN', 'Arrival in Special Stage', 'Start of Special Stage', 'Finish of Special Stage','Rally Start of the day', 'Rally Finish of the day','Service IN', 'Service OUT', 'Regroup IN', 'Regroup OUT'
on_text: root.on_stage(self.text)
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.15
Label:
size_hint_x: 0.4
text: "Rally Day"
color: 0,0,0
Spinner:
id: day
text: '1'
size_hint_x:0.6
values: '1','2','3','4','5'
on_text: root.but_text_ch(day_no=self.text)
BoxLayout:
id: stg_sel
orientation: "horizontal"
size_hint_y: 0.15
Label:
id: stg_sel_text
size_hint_x: 0.4
text: "Stage No."
color: 0,0,0
Spinner:
id: stg_sel_drop
text: '01'
size_hint_x:0.6
values: '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30'
on_text: root.but_text_ch(stg_no=self.text)
Label:
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size_hint_x: 1
size_hint_y: 0.47 if root.show_stg_sel else 0.62
text: ''
color: 0,0,0
<ViewLog>:
rv:rv
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
RV:
id:rv
viewclass: 'LogRow'
<SetPage>:
use_ll: use_ll
use_rt: use_rt
sync_but:sync_but
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
RoundedButton:
id:sync_but
color:0,0,0
bold: True
text_size:self.size
valign:'center'
halign: 'center'
size_hint_y:0.1
text: 'Sync Time'
on_release: root.sync()
RoundedButton:
color:0,0,0
bold: True
size_hint_y:0.1
text: 'Erase ALL Captures'
on_release: root.erase_log()
BoxLayout:
orientation:'horizontal'
padding: 10, 10
spacing: 10
size_hint_y:0.1
Label:
size_hint_x:0.7
text_size:self.size
halign: 'center'
valign: 'center'
color: 0,0,0
text:'Use Restart Time'
Switch:
id: use_rt
size_hint_x:0.3
on_active: root.on_rt_active(self.active)
BoxLayout:
orientation:'horizontal'
padding: 10, 10
spacing: 10
size_hint_y:0.1
Label:
size_hint_x:0.7
color: 0,0,0
text:'Use Lifeline'
Switch:
id: use_ll
size_hint_x:0.3
on_active: root.on_ll_active(self.active)
Label:
underline:True
size_hint_y:0.6
markup: True
text_size:self.size
bold: True
halign: 'center'
valign: 'top'
text: '[ref=mail]Feedback and Queries\[email protected][/ref]'
color:0,0,0
on_ref_press: link.open('mailto:[email protected]')