Thu, 07 Jul 2022 08:51:57 +0200
Added my_height global variable and edit in profile setup. This sets the height of the brewery above or below sealevel. Added calculations for the air pressure, boilpoint and IBU_reduction that all depend on the height. Currently not yet in use. Split out the real IBU calculation from the generic toIBU function. This has no effect on the results.
329 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <ui version="4.0"> | |
3 | <class>DetailiSpindel</class> | |
4 | <widget class="QDialog" name="DetailiSpindel"> | |
5 | <property name="geometry"> | |
6 | <rect> | |
7 | <x>0</x> | |
8 | <y>0</y> | |
9 | <width>1024</width> | |
10 | <height>560</height> | |
11 | </rect> | |
12 | </property> | |
13 | <property name="windowTitle"> | |
14 | <string>Dialog</string> | |
15 | </property> | |
16 | <layout class="QGridLayout" name="gridLayout"> | |
17 | <item row="0" column="0"> | |
18 | <widget class="QWidget" name="topWidget" native="true"> | |
19 | <widget class="QGroupBox" name="powerBox"> | |
20 | <property name="geometry"> | |
21 | <rect> | |
22 | <x>740</x> | |
23 | <y>0</y> | |
24 | <width>261</width> | |
25 | <height>121</height> | |
26 | </rect> | |
27 | </property> | |
28 | <widget class="QLabel" name="powerLabel"> | |
29 | <property name="geometry"> | |
30 | <rect> | |
31 | <x>190</x> | |
32 | <y>70</y> | |
33 | <width>61</width> | |
34 | <height>20</height> | |
35 | </rect> | |
36 | </property> | |
37 | <property name="text"> | |
38 | <string>Power</string> | |
39 | </property> | |
40 | <property name="alignment"> | |
41 | <set>Qt::AlignCenter</set> | |
42 | </property> | |
43 | </widget> | |
44 | <widget class="QLabel" name="alarmLabel"> | |
45 | <property name="geometry"> | |
46 | <rect> | |
47 | <x>130</x> | |
48 | <y>70</y> | |
49 | <width>61</width> | |
50 | <height>20</height> | |
51 | </rect> | |
52 | </property> | |
53 | <property name="text"> | |
54 | <string>Alarm</string> | |
55 | </property> | |
56 | <property name="alignment"> | |
57 | <set>Qt::AlignCenter</set> | |
58 | </property> | |
59 | </widget> | |
60 | <widget class="Led" name="powerLED"> | |
61 | <property name="geometry"> | |
62 | <rect> | |
63 | <x>210</x> | |
64 | <y>40</y> | |
65 | <width>20</width> | |
66 | <height>20</height> | |
67 | </rect> | |
68 | </property> | |
69 | <property name="toolTip"> | |
70 | <string>Color Led component</string> | |
71 | </property> | |
72 | <property name="whatsThis"> | |
73 | <string>Led indicator</string> | |
74 | </property> | |
75 | <property name="checked"> | |
76 | <bool>false</bool> | |
77 | </property> | |
78 | <property name="color"> | |
79 | <color> | |
80 | <red>28</red> | |
81 | <green>113</green> | |
82 | <blue>216</blue> | |
83 | </color> | |
84 | </property> | |
85 | </widget> | |
86 | <widget class="Led" name="alarmLED"> | |
87 | <property name="geometry"> | |
88 | <rect> | |
89 | <x>150</x> | |
90 | <y>40</y> | |
91 | <width>20</width> | |
92 | <height>20</height> | |
93 | </rect> | |
94 | </property> | |
95 | <property name="toolTip"> | |
96 | <string>Color Led component</string> | |
97 | </property> | |
98 | <property name="whatsThis"> | |
99 | <string>Led indicator</string> | |
100 | </property> | |
101 | <property name="checked"> | |
102 | <bool>false</bool> | |
103 | </property> | |
104 | </widget> | |
105 | </widget> | |
106 | <widget class="QGroupBox" name="controlBox"> | |
107 | <property name="geometry"> | |
108 | <rect> | |
109 | <x>0</x> | |
110 | <y>0</y> | |
111 | <width>721</width> | |
112 | <height>231</height> | |
113 | </rect> | |
114 | </property> | |
115 | <widget class="QLabel" name="uuidLabel"> | |
116 | <property name="geometry"> | |
117 | <rect> | |
118 | <x>10</x> | |
119 | <y>40</y> | |
120 | <width>141</width> | |
121 | <height>20</height> | |
122 | </rect> | |
123 | </property> | |
124 | <property name="text"> | |
125 | <string>Uuid:</string> | |
126 | </property> | |
127 | <property name="alignment"> | |
128 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
129 | </property> | |
130 | </widget> | |
131 | <widget class="QLabel" name="systemLabel"> | |
132 | <property name="geometry"> | |
133 | <rect> | |
134 | <x>10</x> | |
135 | <y>70</y> | |
136 | <width>141</width> | |
137 | <height>20</height> | |
138 | </rect> | |
139 | </property> | |
140 | <property name="text"> | |
141 | <string>System and unit:</string> | |
142 | </property> | |
143 | <property name="alignment"> | |
144 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
145 | </property> | |
146 | </widget> | |
147 | <widget class="QLabel" name="codeLabel"> | |
148 | <property name="geometry"> | |
149 | <rect> | |
150 | <x>10</x> | |
151 | <y>100</y> | |
152 | <width>141</width> | |
153 | <height>20</height> | |
154 | </rect> | |
155 | </property> | |
156 | <property name="text"> | |
157 | <string>Code and beer:</string> | |
158 | </property> | |
159 | <property name="alignment"> | |
160 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
161 | </property> | |
162 | </widget> | |
163 | <widget class="QLabel" name="modeLabel"> | |
164 | <property name="geometry"> | |
165 | <rect> | |
166 | <x>10</x> | |
167 | <y>130</y> | |
168 | <width>141</width> | |
169 | <height>20</height> | |
170 | </rect> | |
171 | </property> | |
172 | <property name="text"> | |
173 | <string>Working mode:</string> | |
174 | </property> | |
175 | <property name="alignment"> | |
176 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
177 | </property> | |
178 | </widget> | |
179 | <widget class="QLabel" name="voltLabel"> | |
180 | <property name="geometry"> | |
181 | <rect> | |
182 | <x>10</x> | |
183 | <y>160</y> | |
184 | <width>141</width> | |
185 | <height>20</height> | |
186 | </rect> | |
187 | </property> | |
188 | <property name="text"> | |
189 | <string>Battery voltage:</string> | |
190 | </property> | |
191 | <property name="alignment"> | |
192 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
193 | </property> | |
194 | </widget> | |
195 | <widget class="QLabel" name="tiltLabel"> | |
196 | <property name="geometry"> | |
197 | <rect> | |
198 | <x>10</x> | |
199 | <y>190</y> | |
200 | <width>141</width> | |
201 | <height>20</height> | |
202 | </rect> | |
203 | </property> | |
204 | <property name="text"> | |
205 | <string>Tilt angle°:</string> | |
206 | </property> | |
207 | <property name="alignment"> | |
208 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
209 | </property> | |
210 | </widget> | |
211 | <widget class="QLabel" name="boxLabel"> | |
212 | <property name="geometry"> | |
213 | <rect> | |
214 | <x>15</x> | |
215 | <y>10</y> | |
216 | <width>691</width> | |
217 | <height>25</height> | |
218 | </rect> | |
219 | </property> | |
220 | <property name="font"> | |
221 | <font> | |
222 | <pointsize>12</pointsize> | |
223 | <weight>75</weight> | |
224 | <bold>true</bold> | |
225 | </font> | |
226 | </property> | |
227 | <property name="text"> | |
228 | <string>iSpindel overview</string> | |
229 | </property> | |
230 | <property name="alignment"> | |
231 | <set>Qt::AlignCenter</set> | |
232 | </property> | |
233 | </widget> | |
234 | <widget class="QLineEdit" name="uuidEdit"> | |
235 | <property name="geometry"> | |
236 | <rect> | |
237 | <x>160</x> | |
238 | <y>40</y> | |
239 | <width>271</width> | |
240 | <height>23</height> | |
241 | </rect> | |
242 | </property> | |
243 | <property name="frame"> | |
244 | <bool>true</bool> | |
245 | </property> | |
246 | <property name="readOnly"> | |
247 | <bool>true</bool> | |
248 | </property> | |
249 | </widget> | |
250 | <widget class="QLineEdit" name="systemEdit"> | |
251 | <property name="geometry"> | |
252 | <rect> | |
253 | <x>160</x> | |
254 | <y>70</y> | |
255 | <width>181</width> | |
256 | <height>23</height> | |
257 | </rect> | |
258 | </property> | |
259 | <property name="frame"> | |
260 | <bool>true</bool> | |
261 | </property> | |
262 | <property name="readOnly"> | |
263 | <bool>true</bool> | |
264 | </property> | |
265 | </widget> | |
266 | <widget class="QLineEdit" name="statusEdit"> | |
267 | <property name="geometry"> | |
268 | <rect> | |
269 | <x>560</x> | |
270 | <y>70</y> | |
271 | <width>141</width> | |
272 | <height>23</height> | |
273 | </rect> | |
274 | </property> | |
275 | <property name="readOnly"> | |
276 | <bool>true</bool> | |
277 | </property> | |
278 | </widget> | |
279 | <widget class="QLineEdit" name="codeEdit"> | |
280 | <property name="geometry"> | |
281 | <rect> | |
282 | <x>160</x> | |
283 | <y>100</y> | |
284 | <width>381</width> | |
285 | <height>23</height> | |
286 | </rect> | |
287 | </property> | |
288 | <property name="readOnly"> | |
289 | <bool>true</bool> | |
290 | </property> | |
291 | </widget> | |
292 | <widget class="QComboBox" name="codePick"> | |
293 | <property name="geometry"> | |
294 | <rect> | |
295 | <x>560</x> | |
296 | <y>100</y> | |
297 | <width>141</width> | |
298 | <height>23</height> | |
299 | </rect> | |
300 | </property> | |
301 | <property name="sizeAdjustPolicy"> | |
302 | <enum>QComboBox::AdjustToContentsOnFirstShow</enum> | |
303 | </property> | |
304 | </widget> | |
305 | <widget class="QComboBox" name="modeEdit"> | |
306 | <property name="geometry"> | |
307 | <rect> | |
308 | <x>160</x> | |
309 | <y>130</y> | |
310 | <width>121</width> | |
311 | <height>23</height> | |
312 | </rect> | |
313 | </property> | |
314 | </widget> | |
315 | <widget class="QLineEdit" name="tiltEdit"> | |
316 | <property name="geometry"> | |
317 | <rect> | |
318 | <x>160</x> | |
319 | <y>190</y> | |
320 | <width>121</width> | |
321 | <height>23</height> | |
322 | </rect> | |
323 | </property> | |
324 | <property name="readOnly"> | |
325 | <bool>true</bool> | |
326 | </property> | |
327 | </widget> | |
328 | <widget class="QLineEdit" name="sgEdit"> | |
329 | <property name="geometry"> | |
330 | <rect> | |
331 | <x>560</x> | |
332 | <y>190</y> | |
333 | <width>121</width> | |
334 | <height>23</height> | |
335 | </rect> | |
336 | </property> | |
337 | <property name="readOnly"> | |
338 | <bool>true</bool> | |
339 | </property> | |
340 | </widget> | |
341 | <widget class="QLineEdit" name="voltEdit"> | |
342 | <property name="geometry"> | |
343 | <rect> | |
344 | <x>160</x> | |
345 | <y>160</y> | |
346 | <width>121</width> | |
347 | <height>23</height> | |
348 | </rect> | |
349 | </property> | |
350 | <property name="readOnly"> | |
351 | <bool>true</bool> | |
352 | </property> | |
353 | </widget> | |
354 | <widget class="QLabel" name="platoLabel"> | |
355 | <property name="geometry"> | |
356 | <rect> | |
357 | <x>410</x> | |
358 | <y>160</y> | |
359 | <width>141</width> | |
360 | <height>20</height> | |
361 | </rect> | |
362 | </property> | |
363 | <property name="text"> | |
364 | <string>Density °Plato:</string> | |
365 | </property> | |
366 | <property name="alignment"> | |
367 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
368 | </property> | |
369 | </widget> | |
370 | <widget class="QLabel" name="sgLabel"> | |
371 | <property name="geometry"> | |
372 | <rect> | |
373 | <x>410</x> | |
374 | <y>190</y> | |
375 | <width>141</width> | |
376 | <height>20</height> | |
377 | </rect> | |
378 | </property> | |
379 | <property name="text"> | |
380 | <string>Density SG:</string> | |
381 | </property> | |
382 | <property name="alignment"> | |
383 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
384 | </property> | |
385 | </widget> | |
386 | <widget class="QLineEdit" name="platoEdit"> | |
387 | <property name="geometry"> | |
388 | <rect> | |
389 | <x>560</x> | |
390 | <y>160</y> | |
391 | <width>121</width> | |
392 | <height>23</height> | |
393 | </rect> | |
394 | </property> | |
395 | <property name="readOnly"> | |
396 | <bool>true</bool> | |
397 | </property> | |
398 | </widget> | |
399 | </widget> | |
400 | <widget class="QGroupBox" name="thermoBox"> | |
401 | <property name="enabled"> | |
402 | <bool>true</bool> | |
403 | </property> | |
404 | <property name="geometry"> | |
405 | <rect> | |
406 | <x>0</x> | |
407 | <y>240</y> | |
408 | <width>721</width> | |
409 | <height>291</height> | |
410 | </rect> | |
411 | </property> | |
412 | <widget class="QLabel" name="thermoLabel"> | |
413 | <property name="geometry"> | |
414 | <rect> | |
415 | <x>150</x> | |
416 | <y>260</y> | |
417 | <width>91</width> | |
418 | <height>20</height> | |
419 | </rect> | |
420 | </property> | |
421 | <property name="text"> | |
422 | <string>Temperature</string> | |
423 | </property> | |
424 | <property name="alignment"> | |
425 | <set>Qt::AlignCenter</set> | |
426 | </property> | |
427 | </widget> | |
428 | <widget class="ManoMeter" name="thermoMeter"> | |
429 | <property name="geometry"> | |
430 | <rect> | |
431 | <x>70</x> | |
432 | <y>10</y> | |
433 | <width>251</width> | |
434 | <height>251</height> | |
435 | </rect> | |
436 | </property> | |
437 | <property name="toolTip"> | |
330 | 438 | <string>Shows the temperature</string> |
329 | 439 | </property> |
440 | <property name="autoFillBackground"> | |
441 | <bool>false</bool> | |
442 | </property> | |
443 | <property name="valueFont"> | |
444 | <font> | |
445 | <pointsize>18</pointsize> | |
446 | </font> | |
447 | </property> | |
448 | <property name="digitFont"> | |
449 | <font> | |
450 | <pointsize>14</pointsize> | |
451 | </font> | |
452 | </property> | |
453 | <property name="digitOffset"> | |
454 | <double>110.000000000000000</double> | |
455 | </property> | |
456 | </widget> | |
457 | <widget class="QProgressBar" name="svgBar"> | |
458 | <property name="geometry"> | |
459 | <rect> | |
460 | <x>360</x> | |
461 | <y>80</y> | |
462 | <width>321</width> | |
463 | <height>23</height> | |
464 | </rect> | |
465 | </property> | |
466 | <property name="value"> | |
467 | <number>24</number> | |
468 | </property> | |
469 | </widget> | |
470 | <widget class="QLabel" name="svgLabel"> | |
471 | <property name="geometry"> | |
472 | <rect> | |
473 | <x>360</x> | |
474 | <y>110</y> | |
475 | <width>321</width> | |
476 | <height>20</height> | |
477 | </rect> | |
478 | </property> | |
479 | <property name="text"> | |
480 | <string>Apperant Attenuation</string> | |
481 | </property> | |
482 | <property name="alignment"> | |
483 | <set>Qt::AlignCenter</set> | |
484 | </property> | |
485 | </widget> | |
486 | </widget> | |
487 | <widget class="QGroupBox" name="statusBox"> | |
488 | <property name="geometry"> | |
489 | <rect> | |
490 | <x>740</x> | |
491 | <y>130</y> | |
492 | <width>261</width> | |
493 | <height>291</height> | |
494 | </rect> | |
495 | </property> | |
496 | <widget class="QLabel" name="progressLabel"> | |
497 | <property name="geometry"> | |
498 | <rect> | |
499 | <x>10</x> | |
500 | <y>10</y> | |
501 | <width>241</width> | |
502 | <height>25</height> | |
503 | </rect> | |
504 | </property> | |
505 | <property name="font"> | |
506 | <font> | |
507 | <pointsize>12</pointsize> | |
508 | <weight>75</weight> | |
509 | <bold>true</bold> | |
510 | </font> | |
511 | </property> | |
512 | <property name="text"> | |
513 | <string>Fermentation progress</string> | |
514 | </property> | |
515 | <property name="alignment"> | |
516 | <set>Qt::AlignCenter</set> | |
517 | </property> | |
518 | </widget> | |
519 | <widget class="QLabel" name="ogLab"> | |
520 | <property name="geometry"> | |
521 | <rect> | |
522 | <x>10</x> | |
523 | <y>50</y> | |
524 | <width>71</width> | |
525 | <height>20</height> | |
526 | </rect> | |
527 | </property> | |
528 | <property name="text"> | |
529 | <string>OG</string> | |
530 | </property> | |
531 | </widget> | |
532 | <widget class="QLabel" name="sgLab"> | |
533 | <property name="geometry"> | |
534 | <rect> | |
535 | <x>10</x> | |
536 | <y>80</y> | |
537 | <width>71</width> | |
538 | <height>20</height> | |
539 | </rect> | |
540 | </property> | |
541 | <property name="text"> | |
542 | <string>SG</string> | |
543 | </property> | |
544 | </widget> | |
545 | <widget class="QLabel" name="svgLab"> | |
546 | <property name="geometry"> | |
547 | <rect> | |
548 | <x>10</x> | |
549 | <y>110</y> | |
550 | <width>71</width> | |
551 | <height>20</height> | |
552 | </rect> | |
553 | </property> | |
554 | <property name="text"> | |
555 | <string>SVG</string> | |
556 | </property> | |
557 | </widget> | |
558 | <widget class="QLabel" name="abvLab"> | |
559 | <property name="geometry"> | |
560 | <rect> | |
561 | <x>10</x> | |
562 | <y>140</y> | |
563 | <width>71</width> | |
564 | <height>20</height> | |
565 | </rect> | |
566 | </property> | |
567 | <property name="text"> | |
568 | <string>ABV</string> | |
569 | </property> | |
570 | </widget> | |
571 | <widget class="QLabel" name="batLab"> | |
572 | <property name="geometry"> | |
573 | <rect> | |
574 | <x>10</x> | |
575 | <y>170</y> | |
576 | <width>71</width> | |
577 | <height>20</height> | |
578 | </rect> | |
579 | </property> | |
580 | <property name="text"> | |
581 | <string>Battery</string> | |
582 | </property> | |
583 | </widget> | |
584 | <widget class="QLabel" name="ogVal"> | |
585 | <property name="geometry"> | |
586 | <rect> | |
587 | <x>100</x> | |
588 | <y>50</y> | |
589 | <width>71</width> | |
590 | <height>20</height> | |
591 | </rect> | |
592 | </property> | |
593 | </widget> | |
594 | <widget class="QLabel" name="sgVal"> | |
595 | <property name="geometry"> | |
596 | <rect> | |
597 | <x>100</x> | |
598 | <y>80</y> | |
599 | <width>71</width> | |
600 | <height>20</height> | |
601 | </rect> | |
602 | </property> | |
603 | </widget> | |
604 | <widget class="QLabel" name="svgVal"> | |
605 | <property name="geometry"> | |
606 | <rect> | |
607 | <x>100</x> | |
608 | <y>110</y> | |
609 | <width>71</width> | |
610 | <height>20</height> | |
611 | </rect> | |
612 | </property> | |
613 | </widget> | |
614 | <widget class="QLabel" name="abvVal"> | |
615 | <property name="geometry"> | |
616 | <rect> | |
617 | <x>100</x> | |
618 | <y>140</y> | |
619 | <width>71</width> | |
620 | <height>20</height> | |
621 | </rect> | |
622 | </property> | |
623 | </widget> | |
624 | <widget class="QLabel" name="batVal"> | |
625 | <property name="geometry"> | |
626 | <rect> | |
627 | <x>100</x> | |
628 | <y>170</y> | |
629 | <width>71</width> | |
630 | <height>20</height> | |
631 | </rect> | |
632 | </property> | |
633 | </widget> | |
634 | <widget class="QLabel" name="ogVal2"> | |
635 | <property name="geometry"> | |
636 | <rect> | |
637 | <x>180</x> | |
638 | <y>50</y> | |
639 | <width>71</width> | |
640 | <height>20</height> | |
641 | </rect> | |
642 | </property> | |
643 | </widget> | |
644 | <widget class="QLabel" name="sgVal2"> | |
645 | <property name="geometry"> | |
646 | <rect> | |
647 | <x>180</x> | |
648 | <y>80</y> | |
649 | <width>71</width> | |
650 | <height>20</height> | |
651 | </rect> | |
652 | </property> | |
653 | </widget> | |
654 | </widget> | |
655 | <widget class="QGroupBox" name="buttonBox"> | |
656 | <property name="geometry"> | |
657 | <rect> | |
658 | <x>740</x> | |
659 | <y>430</y> | |
660 | <width>261</width> | |
661 | <height>101</height> | |
662 | </rect> | |
663 | </property> | |
664 | <widget class="QPushButton" name="quitButton"> | |
665 | <property name="geometry"> | |
666 | <rect> | |
667 | <x>90</x> | |
668 | <y>60</y> | |
669 | <width>80</width> | |
670 | <height>23</height> | |
671 | </rect> | |
672 | </property> | |
673 | <property name="sizePolicy"> | |
674 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | |
675 | <horstretch>0</horstretch> | |
676 | <verstretch>0</verstretch> | |
677 | </sizepolicy> | |
678 | </property> | |
679 | <property name="text"> | |
680 | <string>Quit</string> | |
681 | </property> | |
682 | <property name="icon"> | |
683 | <iconset> | |
684 | <normaloff>:icons/silk/door_out.png</normaloff>:icons/silk/door_out.png</iconset> | |
685 | </property> | |
686 | </widget> | |
687 | <widget class="QPushButton" name="logButton"> | |
688 | <property name="geometry"> | |
689 | <rect> | |
690 | <x>90</x> | |
691 | <y>20</y> | |
692 | <width>80</width> | |
693 | <height>23</height> | |
694 | </rect> | |
695 | </property> | |
696 | <property name="text"> | |
697 | <string>Log</string> | |
698 | </property> | |
699 | <property name="icon"> | |
700 | <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> | |
701 | <normaloff>:/icons/silk/chart_line.png</normaloff>:/icons/silk/chart_line.png</iconset> | |
702 | </property> | |
703 | </widget> | |
704 | </widget> | |
705 | </widget> | |
706 | </item> | |
707 | </layout> | |
708 | </widget> | |
709 | <customwidgets> | |
710 | <customwidget> | |
711 | <class>Led</class> | |
712 | <extends>QWidget</extends> | |
713 | <header>analog/led.h</header> | |
714 | </customwidget> | |
715 | <customwidget> | |
716 | <class>ManoMeter</class> | |
717 | <extends>QWidget</extends> | |
718 | <header>analog/manometer.h</header> | |
719 | </customwidget> | |
720 | </customwidgets> | |
721 | <tabstops> | |
722 | <tabstop>quitButton</tabstop> | |
723 | </tabstops> | |
724 | <resources> | |
725 | <include location="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"/> | |
726 | </resources> | |
727 | <connections/> | |
728 | </ui> |