comparison MainWindow.ui @ 1:0b3630a29ad8

Initial version based on previous repository. Project was ported to QT6 and in now cmake based.
author Ideenmodellierer <tiefenrauscher@web.de>
date Thu, 27 Nov 2025 18:40:28 +0100
parents
children e30f00f760d3
comparison
equal deleted inserted replaced
0:76ccd6ce50c0 1:0b3630a29ad8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>MainWindow</class>
4 <widget class="QMainWindow" name="MainWindow">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>451</width>
10 <height>418</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string notr="true">OSTC Companion</string>
15 </property>
16 <property name="windowIcon">
17 <iconset>
18 <normaloff>:/Images/app_OSTC_Companion.svg</normaloff>:/Images/app_OSTC_Companion.svg</iconset>
19 </property>
20 <widget class="QWidget" name="centralWidget">
21 <layout class="QGridLayout" name="gridLayout">
22 <item row="7" column="0" colspan="4">
23 <widget class="QProgressBar" name="progressBar">
24 <property name="alignment">
25 <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
26 </property>
27 <property name="textVisible">
28 <bool>true</bool>
29 </property>
30 </widget>
31 </item>
32 <item row="0" column="1">
33 <widget class="QComboBox" name="computerType">
34 <property name="toolTip">
35 <string>H&amp;W dive computer model.</string>
36 </property>
37 <property name="currentIndex">
38 <number>0</number>
39 </property>
40 <item>
41 <property name="text">
42 <string notr="true">OSTC2 mk.2/2n/2c</string>
43 </property>
44 </item>
45 <item>
46 <property name="text">
47 <string notr="true">OSTC hwOS (USB)</string>
48 </property>
49 </item>
50 <item>
51 <property name="text">
52 <string notr="true">OSTC hwOS (Bluetooth)</string>
53 </property>
54 </item>
55 <item>
56 <property name="text">
57 <string notr="true">OSTC4</string>
58 </property>
59 </item>
60 </widget>
61 </item>
62 <item row="0" column="3" rowspan="6">
63 <layout class="QVBoxLayout" name="verticalLayout">
64 <property name="spacing">
65 <number>0</number>
66 </property>
67 <property name="rightMargin">
68 <number>0</number>
69 </property>
70 <property name="bottomMargin">
71 <number>0</number>
72 </property>
73 <item>
74 <layout class="QHBoxLayout" name="horizontalLayout">
75 <item>
76 <widget class="QPushButton" name="connectButton">
77 <property name="minimumSize">
78 <size>
79 <width>0</width>
80 <height>23</height>
81 </size>
82 </property>
83 <property name="toolTip">
84 <string>Open or re-open the last selected USB or Bluetooth port (See Preferences).
85 NOTE: make sure to connect the serial cable, or to set the bluetooth mode first...</string>
86 </property>
87 <property name="styleSheet">
88 <string notr="true">QPushButton {
89 border: 1px solid blue;
90 border-radius: 6px;
91 background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
92 stop:0.00 white,
93 stop:0.55 #55aaff,
94 stop:0.56 #4964ff,
95 stop:1.00 #55aaff)
96 }</string>
97 </property>
98 <property name="text">
99 <string>Connect</string>
100 </property>
101 <property name="autoDefault">
102 <bool>true</bool>
103 </property>
104 </widget>
105 </item>
106 </layout>
107 </item>
108 <item>
109 <widget class="QPushButton" name="dateButton">
110 <property name="toolTip">
111 <string>Set the H&amp;W computer date and time.
112 Can be automatic at each connect, if asked to in the Preferences.
113 (Valid once device is connected).</string>
114 </property>
115 <property name="text">
116 <string>Set Date &amp;&amp; Time</string>
117 </property>
118 </widget>
119 </item>
120 <item>
121 <widget class="QPushButton" name="nameButton">
122 <property name="toolTip">
123 <string>Change the name displayed on the H&amp;W device.
124 (Valid once device is connected).</string>
125 </property>
126 <property name="text">
127 <string>Set Name...</string>
128 </property>
129 </widget>
130 </item>
131 <item>
132 <widget class="QPushButton" name="iconButton">
133 <property name="toolTip">
134 <string>Upload a customization icon.
135 Only supported on Frog yet.
136 (Valid once device is connected).</string>
137 </property>
138 <property name="text">
139 <string>Set Icon...</string>
140 </property>
141 </widget>
142 </item>
143 <item>
144 <widget class="QPushButton" name="signalButton">
145 <property name="text">
146 <string>Check Signal</string>
147 </property>
148 </widget>
149 </item>
150 <item>
151 <widget class="QPushButton" name="upgradeButton">
152 <property name="toolTip">
153 <string>Ask for a firmware file, and upload it to the H&amp;W device.
154 Can be done before or after device (re-)connection.</string>
155 </property>
156 <property name="text">
157 <string>Upgrade Firmware...</string>
158 </property>
159 </widget>
160 </item>
161 <item>
162 <widget class="QPushButton" name="closeButton">
163 <property name="toolTip">
164 <string>Close USB or Bluetooth connection to the device.</string>
165 </property>
166 <property name="text">
167 <string>Close</string>
168 </property>
169 </widget>
170 </item>
171 <item>
172 <spacer name="verticalSpacer">
173 <property name="orientation">
174 <enum>Qt::Orientation::Vertical</enum>
175 </property>
176 <property name="sizeType">
177 <enum>QSizePolicy::Policy::Minimum</enum>
178 </property>
179 <property name="sizeHint" stdset="0">
180 <size>
181 <width>105</width>
182 <height>8</height>
183 </size>
184 </property>
185 </spacer>
186 </item>
187 <item>
188 <widget class="QPushButton" name="quitButton">
189 <property name="text">
190 <string>Quit</string>
191 </property>
192 </widget>
193 </item>
194 </layout>
195 </item>
196 <item row="6" column="0" colspan="4">
197 <widget class="QLabel" name="companionUrlL">
198 <property name="text">
199 <string notr="true">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;See us on &lt;a href=&quot;https://ostc-planner.net/wp/companion/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;ostc-planner.net/wp/companion&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
200 </property>
201 <property name="openExternalLinks">
202 <bool>true</bool>
203 </property>
204 </widget>
205 </item>
206 <item row="2" column="0">
207 <spacer name="horizontalSpacer_2">
208 <property name="orientation">
209 <enum>Qt::Orientation::Horizontal</enum>
210 </property>
211 <property name="sizeHint" stdset="0">
212 <size>
213 <width>40</width>
214 <height>20</height>
215 </size>
216 </property>
217 </spacer>
218 </item>
219 <item row="0" column="0">
220 <widget class="QToolButton" name="settingsButton">
221 <property name="toolTip">
222 <string>Open the Preferences menu.</string>
223 </property>
224 <property name="text">
225 <string>...</string>
226 </property>
227 <property name="icon">
228 <iconset>
229 <normaloff>:/Images/Settings.svg</normaloff>:/Images/Settings.svg</iconset>
230 </property>
231 </widget>
232 </item>
233 <item row="8" column="0" colspan="4">
234 <widget class="QPlainTextEdit" name="console">
235 <property name="minimumSize">
236 <size>
237 <width>0</width>
238 <height>46</height>
239 </size>
240 </property>
241 <property name="frameShadow">
242 <enum>QFrame::Shadow::Sunken</enum>
243 </property>
244 <property name="verticalScrollBarPolicy">
245 <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOn</enum>
246 </property>
247 <property name="horizontalScrollBarPolicy">
248 <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum>
249 </property>
250 <property name="undoRedoEnabled">
251 <bool>false</bool>
252 </property>
253 <property name="readOnly">
254 <bool>true</bool>
255 </property>
256 <property name="centerOnScroll">
257 <bool>false</bool>
258 </property>
259 <property name="tabStopWidth" stdset="0">
260 <number>4</number>
261 </property>
262 </widget>
263 </item>
264 <item row="2" column="1">
265 <widget class="QLabel" name="computerImage">
266 <property name="sizePolicy">
267 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
268 <horstretch>0</horstretch>
269 <verstretch>0</verstretch>
270 </sizepolicy>
271 </property>
272 <property name="minimumSize">
273 <size>
274 <width>160</width>
275 <height>120</height>
276 </size>
277 </property>
278 <property name="maximumSize">
279 <size>
280 <width>160</width>
281 <height>120</height>
282 </size>
283 </property>
284 <property name="text">
285 <string/>
286 </property>
287 <property name="pixmap">
288 <pixmap>:/Images/frog_160x120.png</pixmap>
289 </property>
290 </widget>
291 </item>
292 <item row="2" column="2">
293 <spacer name="horizontalSpacer_3">
294 <property name="orientation">
295 <enum>Qt::Orientation::Horizontal</enum>
296 </property>
297 <property name="sizeHint" stdset="0">
298 <size>
299 <width>40</width>
300 <height>20</height>
301 </size>
302 </property>
303 </spacer>
304 </item>
305 <item row="0" column="2">
306 <spacer name="horizontalSpacer">
307 <property name="orientation">
308 <enum>Qt::Orientation::Horizontal</enum>
309 </property>
310 <property name="sizeType">
311 <enum>QSizePolicy::Policy::Minimum</enum>
312 </property>
313 <property name="sizeHint" stdset="0">
314 <size>
315 <width>8</width>
316 <height>20</height>
317 </size>
318 </property>
319 </spacer>
320 </item>
321 <item row="5" column="1">
322 <spacer name="verticalSpacer_3">
323 <property name="orientation">
324 <enum>Qt::Orientation::Vertical</enum>
325 </property>
326 <property name="sizeType">
327 <enum>QSizePolicy::Policy::Minimum</enum>
328 </property>
329 <property name="sizeHint" stdset="0">
330 <size>
331 <width>20</width>
332 <height>0</height>
333 </size>
334 </property>
335 </spacer>
336 </item>
337 <item row="1" column="1">
338 <spacer name="verticalSpacer_2">
339 <property name="orientation">
340 <enum>Qt::Orientation::Vertical</enum>
341 </property>
342 <property name="sizeType">
343 <enum>QSizePolicy::Policy::Minimum</enum>
344 </property>
345 <property name="sizeHint" stdset="0">
346 <size>
347 <width>20</width>
348 <height>0</height>
349 </size>
350 </property>
351 </spacer>
352 </item>
353 <item row="5" column="2">
354 <widget class="QPushButton" name="editLog">
355 <property name="enabled">
356 <bool>false</bool>
357 </property>
358 <property name="text">
359 <string>Edit Log</string>
360 </property>
361 </widget>
362 </item>
363 </layout>
364 </widget>
365 </widget>
366 <layoutdefault spacing="6" margin="11"/>
367 <resources/>
368 <connections>
369 <connection>
370 <sender>computerType</sender>
371 <signal>activated(int)</signal>
372 <receiver>MainWindow</receiver>
373 <slot>changeTypeSlot()</slot>
374 <hints>
375 <hint type="sourcelabel">
376 <x>113</x>
377 <y>29</y>
378 </hint>
379 <hint type="destinationlabel">
380 <x>34</x>
381 <y>67</y>
382 </hint>
383 </hints>
384 </connection>
385 <connection>
386 <sender>quitButton</sender>
387 <signal>clicked()</signal>
388 <receiver>MainWindow</receiver>
389 <slot>close()</slot>
390 <hints>
391 <hint type="sourcelabel">
392 <x>351</x>
393 <y>210</y>
394 </hint>
395 <hint type="destinationlabel">
396 <x>320</x>
397 <y>211</y>
398 </hint>
399 </hints>
400 </connection>
401 <connection>
402 <sender>dateButton</sender>
403 <signal>clicked()</signal>
404 <receiver>MainWindow</receiver>
405 <slot>dateSlot()</slot>
406 <hints>
407 <hint type="sourcelabel">
408 <x>406</x>
409 <y>57</y>
410 </hint>
411 <hint type="destinationlabel">
412 <x>324</x>
413 <y>81</y>
414 </hint>
415 </hints>
416 </connection>
417 <connection>
418 <sender>nameButton</sender>
419 <signal>clicked()</signal>
420 <receiver>MainWindow</receiver>
421 <slot>nameSlot()</slot>
422 <hints>
423 <hint type="sourcelabel">
424 <x>406</x>
425 <y>80</y>
426 </hint>
427 <hint type="destinationlabel">
428 <x>324</x>
429 <y>111</y>
430 </hint>
431 </hints>
432 </connection>
433 <connection>
434 <sender>iconButton</sender>
435 <signal>clicked()</signal>
436 <receiver>MainWindow</receiver>
437 <slot>iconSlot()</slot>
438 <hints>
439 <hint type="sourcelabel">
440 <x>406</x>
441 <y>103</y>
442 </hint>
443 <hint type="destinationlabel">
444 <x>325</x>
445 <y>141</y>
446 </hint>
447 </hints>
448 </connection>
449 <connection>
450 <sender>upgradeButton</sender>
451 <signal>clicked()</signal>
452 <receiver>MainWindow</receiver>
453 <slot>upgradeSlot()</slot>
454 <hints>
455 <hint type="sourcelabel">
456 <x>406</x>
457 <y>149</y>
458 </hint>
459 <hint type="destinationlabel">
460 <x>323</x>
461 <y>171</y>
462 </hint>
463 </hints>
464 </connection>
465 <connection>
466 <sender>connectButton</sender>
467 <signal>clicked()</signal>
468 <receiver>MainWindow</receiver>
469 <slot>connectSlot()</slot>
470 <hints>
471 <hint type="sourcelabel">
472 <x>405</x>
473 <y>33</y>
474 </hint>
475 <hint type="destinationlabel">
476 <x>323</x>
477 <y>53</y>
478 </hint>
479 </hints>
480 </connection>
481 <connection>
482 <sender>settingsButton</sender>
483 <signal>clicked()</signal>
484 <receiver>MainWindow</receiver>
485 <slot>settingsSlot()</slot>
486 <hints>
487 <hint type="sourcelabel">
488 <x>31</x>
489 <y>30</y>
490 </hint>
491 <hint type="destinationlabel">
492 <x>191</x>
493 <y>63</y>
494 </hint>
495 </hints>
496 </connection>
497 <connection>
498 <sender>closeButton</sender>
499 <signal>clicked()</signal>
500 <receiver>MainWindow</receiver>
501 <slot>closeSlot()</slot>
502 <hints>
503 <hint type="sourcelabel">
504 <x>305</x>
505 <y>186</y>
506 </hint>
507 <hint type="destinationlabel">
508 <x>357</x>
509 <y>183</y>
510 </hint>
511 </hints>
512 </connection>
513 </connections>
514 <slots>
515 <slot>changeTypeSlot()</slot>
516 <slot>dateSlot()</slot>
517 <slot>nameSlot()</slot>
518 <slot>iconSlot()</slot>
519 <slot>upgradeSlot()</slot>
520 <slot>connectSlot()</slot>
521 <slot>settingsSlot()</slot>
522 <slot>scanSlot()</slot>
523 <slot>closeSlot()</slot>
524 </slots>
525 </ui>