This repository was archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaircrafticaoform_8cpp_source.html
409 lines (407 loc) · 82.9 KB
/
aircrafticaoform_8cpp_source.html
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>swift: src/blackgui/editors/aircrafticaoform.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">swift
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_6b2000c826b43a25622ed520506b10d9.html">blackgui</a></li><li class="navelem"><a class="el" href="dir_e22e1faa15d6337943b6c6f777c5f27c.html">editors</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">aircrafticaoform.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "ui_aircrafticaoform.h"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="aircrafticaoform_8h.html">aircrafticaoform.h</a>"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="aircraftcombinedtypeselector_8h.html">blackgui/components/aircraftcombinedtypeselector.h</a>"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="dbaircrafticaoselectorcomponent_8h.html">blackgui/components/dbaircrafticaoselectorcomponent.h</a>"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="dropsite_8h.html">blackgui/dropsite.h</a>"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="aircrafticaoform_8h.html">blackgui/editors/aircrafticaoform.h</a>"</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="validationindicator_8h.html">blackgui/editors/validationindicator.h</a>"</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="guiapplication_8h.html">blackgui/guiapplication.h</a>"</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="guiutility_8h.html">blackgui/guiutility.h</a>"</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "blackgui/labelandicon.h"</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="webdataservices_8h.html">blackcore/webdataservices.h</a>"</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="aircrafticaocodelist_8h.html">blackmisc/aviation/aircrafticaocodelist.h</a>"</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="datastore_8h.html">blackmisc/db/datastore.h</a>"</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="mixincompare_8h.html">blackmisc/mixin/mixincompare.h</a>"</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="icons_8h.html">blackmisc/icons.h</a>"</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <QCheckBox></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <QComboBox></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <QLineEdit></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <QMetaType></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <QString></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">using namespace </span><a class="code" href="namespace_black_misc.html">BlackMisc</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">using namespace </span>BlackMisc::Aviation;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">using namespace </span>BlackMisc::Db;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">using namespace </span><a class="code" href="namespace_black_gui_1_1_components.html">BlackGui::Components</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span>BlackGui::Editors</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a56af3002ad1d1e2c8ba5b09de5ff125c"> 34</a></span>  CAircraftIcaoForm::CAircraftIcaoForm(<a class="codeRef" href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> *parent) : <a class="code" href="class_black_gui_1_1_editors_1_1_c_form.html">CForm</a>(parent),</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  ui(new Ui::<a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html">CAircraftIcaoForm</a>)</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  ui->setupUi(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  this-><a class="codeRef" href="http://doc.qt.io/qt-5/qwidget.html#setFocusProxy">setFocusProxy</a>(ui->le_Id);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  ui->lai_Id->set(CIcons::appAircraftIcao16(), <span class="stringliteral">"Id:"</span>);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  ui->le_Updated->setReadOnly(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  ui->le_Id->setValidator(<span class="keyword">new</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qintvalidator.html">QIntValidator</a>(0, 999999, ui->le_Id));</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  ui->aircraft_Selector->displayWithIcaoDescription(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#connect">connect</a>(ui->aircraft_Selector, &CDbAircraftIcaoSelectorComponent::changedAircraftIcao, <span class="keyword">this</span>, &<a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">CAircraftIcaoForm::setValue</a>);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Id</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#connect">connect</a>(ui->le_Id, &<a class="codeRef" href="http://doc.qt.io/qt-5/qlineedit.html#returnPressed">QLineEdit::returnPressed</a>, <span class="keyword">this</span>, &CAircraftIcaoForm::idEntered);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">// drag and drop, pasted</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#connect">connect</a>(ui->drop_DropData, &<a class="code" href="class_black_gui_1_1_c_drop_site.html#a0beadbf64ed54ce778a912689235e0a9">CDropSite::droppedValueObject</a>, <span class="keyword">this</span>, &CAircraftIcaoForm::droppedCode);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#connect">connect</a>(ui->tb_Paste, &<a class="codeRef" href="http://doc.qt.io/qt-5/qabstractbutton.html#clicked">QToolButton::clicked</a>, <span class="keyword">this</span>, &<a class="code" href="class_black_gui_1_1_editors_1_1_c_form.html#a0fba259a286b486f42bac0871e37dcbd">CAircraftIcaoForm::pasted</a>);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  ui->drop_DropData->setInfoText(<span class="stringliteral">"<drop aircraft ICAO code>"</span>);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  ui->drop_DropData->setAcceptedMetaTypeIds({ qMetaTypeId<CAircraftIcaoCode>(), qMetaTypeId<CAircraftIcaoCodeList>() });</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#adcc36b0edc2d7c1adb21ad9be7b8e213"> 55</a></span>  <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#adcc36b0edc2d7c1adb21ad9be7b8e213">CAircraftIcaoForm::~CAircraftIcaoForm</a>()</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {}</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5"> 58</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">CAircraftIcaoForm::setValue</a>(<span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">BlackMisc::Aviation::CAircraftIcaoCode</a> &icao)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span> (icao == m_originalCode) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  m_originalCode = icao;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  ui->le_Id->setText(icao.<a class="code" href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#ad521e8df12488fa3a25cab800a7a0cbe">getDbKeyAsString</a>());</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  ui->aircraft_Selector->setAircraftIcao(icao);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  ui->le_Manufacturer->setText(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a7ed099c7604d769263bdcebb51f17d65">getManufacturer</a>());</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  ui->le_ModelDescription->setText(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ab717feb8023ef49b1673d914fe70c5a4">getModelDescription</a>());</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  ui->le_Family->setText(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a8b959330af77abdc3030724116523d6d">getFamily</a>());</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  ui->le_Iata->setText(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a2456988541297d17697169696ffca1f8">getIataCode</a>());</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  ui->cb_Legacy->setChecked(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a35eaa180c41e83205918ca763d52568f">isLegacyAircraft</a>());</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  ui->cb_Military->setChecked(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ae868b9b6bf8f993797f7b48f37d58da7">isMilitary</a>());</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  ui->cb_RealWorld->setChecked(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a62ed1bca83a9581d864495a6d4863579">isRealWorld</a>());</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  ui->combined_TypeSelector->setCombinedType(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#aa0b7564546149c756dfbbfe787779f84">getCombinedType</a>());</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> rank(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#acd7783a19e34feaa3d763cb655e21d16">getRankString</a>());</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> wtc(icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a9dc922d06b681c9c75bcd8455a3a91cb">getWtc</a>());</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="class_black_gui_1_1_c_gui_utility.html#a645df6b88bdb3c09720391c9ef747d16">CGuiUtility::setComboBoxValueByStartingString</a>(ui->cb_Rank, rank, <span class="stringliteral">"unspecified"</span>);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_black_gui_1_1_c_gui_utility.html#a645df6b88bdb3c09720391c9ef747d16">CGuiUtility::setComboBoxValueByStartingString</a>(ui->cb_Wtc, wtc, <span class="stringliteral">"unspecified"</span>);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  ui->le_Updated->setText(icao.<a class="code" href="class_black_misc_1_1_i_timestamp_based.html#a1cfbcc7ae43f3537c38e6da94dc37765">getFormattedUtcTimestampYmdhms</a>());</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a3041b0b43e6e89eecb7b7ea612895000"> 84</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a3041b0b43e6e89eecb7b7ea612895000">CAircraftIcaoForm::jsonPasted</a>(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &json)</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span> (json.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span>; } <span class="comment">// avoid unnecessary conversions</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">try</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="class_black_misc_1_1_c_variant.html">CVariant</a> jsonVariant;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  jsonVariant.<a class="code" href="class_black_misc_1_1_c_variant.html#afbe25f56649a7b69be470ddd571fad49">convertFromJson</a>(<a class="code" href="group___j_s_o_n.html#ga77d39e837d9443c21fd3b36896b1de16">Json::jsonObjectFromString</a>(json));</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">if</span> (!jsonVariant.<a class="code" href="class_black_misc_1_1_c_variant.html#a19c267c546b8c6bc1cae8527c48bd457">canConvert</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a>>()) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a> icaos = jsonVariant.<a class="code" href="class_black_misc_1_1_c_variant.html#a09c6d40c0c5004e5b25d8e54865082b2">value</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a>>();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (!icaos.<a class="code" href="class_black_misc_1_1_c_sequence.html#aa68fa203f1b72b6e94834d6b85646dde">isEmpty</a>())</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">setValue</a>(icaos.<a class="code" href="class_black_misc_1_1_c_sequence.html#accf0d03e5dd2e7bdd83724604f78e38d">front</a>());</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_c_json_exception.html">CJsonException</a> &ex)</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  Q_UNUSED(ex);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#ac3bdefe53d57700dec7b8ad517ce66e9"> 104</a></span>  <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#ac3bdefe53d57700dec7b8ad517ce66e9">CAircraftIcaoForm::getValue</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> icao(ui->aircraft_Selector->getAircraftIcao());</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">if</span> (!icao.<a class="code" href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a7961ec8eab13b5d7b054eaf6e136dab3">hasValidDbKey</a>() && <a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a> && <a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a>-><a class="code" href="class_black_core_1_1_c_application.html#a73508404c530279edbf9b74ca596668b">getWebDataServices</a>())</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// not based on DB yet, do we have a DB key</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">int</span> k = this->getDbKeyFromGui();</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (k >= 0)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">// we got an id, we get the DB object for it</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> fromDb(<a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a>-><a class="code" href="class_black_core_1_1_c_application.html#a73508404c530279edbf9b74ca596668b">getWebDataServices</a>()-><a class="code" href="class_black_core_1_1_c_web_data_services.html#acce319ee7d7ea2ca89ac79c5c11e840f">getAircraftIcaoCodeForDbKey</a>(k));</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">if</span> (fromDb.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a416b033e59a976de6dabd23d35f299a6">getDesignator</a>() == icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a416b033e59a976de6dabd23d35f299a6">getDesignator</a>())</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// we replace by DB object</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  icao = fromDb;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> manufacturer(ui->le_Manufacturer->text().trimmed().toUpper());</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> modelDescription(ui->le_ModelDescription->text().trimmed());</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> iata(ui->le_Iata->text().trimmed().toUpper());</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> family(ui->le_Family->text().trimmed().toUpper());</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> wtc(ui->cb_Wtc->currentText().left(1));</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> combined(ui->combined_TypeSelector->getCombinedType());</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">bool</span> ok;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">int</span> rank = ui->cb_Rank->currentText().toInt(&ok);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (!ok) { rank = 10; }</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">bool</span> legacy = ui->cb_Legacy->isChecked();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">bool</span> military = ui->cb_Military->isChecked();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">bool</span> realWorld = ui->cb_RealWorld->isChecked();</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a56a214b55224482c9fd867c4f0ce9263">setManufacturer</a>(manufacturer);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ac4c5a089e27e310e3e231c94b5906cd4">setModelDescription</a>(modelDescription);</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ad4ebd4470f0f9f8395bd7f1b9cbd02b9">setWtc</a>(wtc);</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#aa183eb1ccd803e02235e7e067a035d8b">setCodeFlags</a>(military, legacy, realWorld);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a7e5ab1493266d0d9e9716189b322786e">setRank</a>(rank);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a217da14f0d20b5ff6b26a9595ec95f2a">setCombinedType</a>(combined);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a3d211e8304ba719a504d2674534e72c5">setFamily</a>(family);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  icao.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a781aab69970e838897209bc703cd9a79">setIataCode</a>(iata);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">return</span> icao;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a39d047d9d01aaec1dfb475c41272b004"> 146</a></span>  <a class="code" href="class_black_misc_1_1_c_status_message_list.html">CStatusMessageList</a> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a39d047d9d01aaec1dfb475c41272b004">CAircraftIcaoForm::validate</a>(<span class="keywordtype">bool</span> nested)<span class="keyword"> const</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  Q_UNUSED(nested);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> code(this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#ac3bdefe53d57700dec7b8ad517ce66e9">getValue</a>());</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_c_status_message_list.html">CStatusMessageList</a> msgs(code.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a8179364b69cf73c71d9e54041b398e64">validate</a>());</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  ui->val_Indicator->setState(msgs);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">return</span> msgs;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a36ddd2950225fc8104f6f22e7ba8d2c3"> 155</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a36ddd2950225fc8104f6f22e7ba8d2c3">CAircraftIcaoForm::allowDrop</a>(<span class="keywordtype">bool</span> allowDrop)</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  ui->drop_DropData->allowDrop(<a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a36ddd2950225fc8104f6f22e7ba8d2c3">allowDrop</a>);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  }</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a337eaa8f48b3ba9122fd7f649d928013"> 160</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a337eaa8f48b3ba9122fd7f649d928013">CAircraftIcaoForm::isDropAllowed</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> ui->drop_DropData->isDropAllowed();</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#aaff4e9960130ba624915c5c15c4c6c5d"> 165</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#aaff4e9960130ba624915c5c15c4c6c5d">CAircraftIcaoForm::setReadOnly</a>(<span class="keywordtype">bool</span> readOnly)</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="class_black_gui_1_1_editors_1_1_c_form.html#adbfbec68b7b6def79686bb3ecfafc684">m_readOnly</a> = readOnly;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  ui->aircraft_Selector->setReadOnly(readOnly);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  ui->le_Manufacturer->setReadOnly(readOnly);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  ui->le_ModelDescription->setReadOnly(readOnly);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  ui->le_Family->setReadOnly(readOnly);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  ui->le_Iata->setReadOnly(readOnly);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  ui->le_Id->setReadOnly(readOnly);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  ui->tb_Paste->setVisible(!readOnly);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="class_black_gui_1_1_c_gui_utility.html#acfbf62f1e378996882344c303221bea2">CGuiUtility::checkBoxReadOnly</a>(ui->cb_Legacy, readOnly);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="class_black_gui_1_1_c_gui_utility.html#acfbf62f1e378996882344c303221bea2">CGuiUtility::checkBoxReadOnly</a>(ui->cb_Military, readOnly);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="class_black_gui_1_1_c_gui_utility.html#acfbf62f1e378996882344c303221bea2">CGuiUtility::checkBoxReadOnly</a>(ui->cb_RealWorld, readOnly);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  ui->cb_Wtc->setEnabled(!readOnly);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  ui->cb_Rank->setEnabled(!readOnly);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  ui->drop_DropData->setVisible(!readOnly);</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  ui->combined_TypeSelector->setReadOnly(readOnly);</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_form.html#af363eccc9163f65dcb5b75d664ac273a">forceStyleSheetUpdate</a>();</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  }</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a698e0c05327d9ab696ac4ed8293c2cf3"> 188</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a698e0c05327d9ab696ac4ed8293c2cf3">CAircraftIcaoForm::setSelectOnly</a>()</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#aaff4e9960130ba624915c5c15c4c6c5d">setReadOnly</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  ui->tb_Paste->setVisible(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  ui->aircraft_Selector->setReadOnly(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  ui->le_Id->setReadOnly(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  ui->drop_DropData->setVisible(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a6d4eb897d7d54304345a1b65d05caceb"> 197</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a6d4eb897d7d54304345a1b65d05caceb">CAircraftIcaoForm::clear</a>()</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  {</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">setValue</a>(<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a>());</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a697297983a375809a9e68d31f6ba179b"> 202</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a697297983a375809a9e68d31f6ba179b">CAircraftIcaoForm::resetValue</a>()</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  {</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">setValue</a>(m_originalCode);</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">void</span> CAircraftIcaoForm::droppedCode(<span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_c_variant.html">BlackMisc::CVariant</a> &variantDropped)</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> icao;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (variantDropped.<a class="code" href="class_black_misc_1_1_c_variant.html#a19c267c546b8c6bc1cae8527c48bd457">canConvert</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a>>())</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  {</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  icao = variantDropped.<a class="code" href="class_black_misc_1_1_c_variant.html#a09c6d40c0c5004e5b25d8e54865082b2">value</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a>>();</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (variantDropped.<a class="code" href="class_black_misc_1_1_c_variant.html#a19c267c546b8c6bc1cae8527c48bd457">canConvert</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a>>())</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a> icaoList(variantDropped.<a class="code" href="class_black_misc_1_1_c_variant.html#a09c6d40c0c5004e5b25d8e54865082b2">value</a><<a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">CAircraftIcaoCodeList</a>>());</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">if</span> (icaoList.isEmpty()) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  icao = icaoList.front();</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  {</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">setValue</a>(icao);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  }</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordtype">void</span> CAircraftIcaoForm::idEntered()</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">if</span> (!<a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a> || !<a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a>-><a class="code" href="class_black_core_1_1_c_application.html#ae9c04df302b8917f626f94d6156175af">hasWebDataServices</a>())</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  {</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  ui->le_Id->undo();</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span> = ui->le_Id->text().toInt();</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">CAircraftIcaoCode</a> icao = <a class="code" href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a>-><a class="code" href="class_black_core_1_1_c_application.html#a73508404c530279edbf9b74ca596668b">getWebDataServices</a>()-><a class="code" href="class_black_core_1_1_c_web_data_services.html#acce319ee7d7ea2ca89ac79c5c11e840f">getAircraftIcaoCodeForDbKey</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">if</span> (!icao.<a class="code" href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a4404e446a6c65535ce3ab281edb7b267">isLoadedFromDb</a>())</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  {</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  ui->le_Id->undo();</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  }</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  this-><a class="code" href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">setValue</a>(icao);</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  }</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordtype">int</span> CAircraftIcaoForm::getDbKeyFromGui()<span class="keyword"> const</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> key(ui->le_Id->text().trimmed());</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">return</span> IDatastoreObjectWithIntegerKey::stringToDbKey(key);</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> } <span class="comment">// ns</span></div>
<div class="ttc" id="aaircraftcombinedtypeselector_8h_html"><div class="ttname"><a href="aircraftcombinedtypeselector_8h.html">aircraftcombinedtypeselector.h</a></div></div>
<div class="ttc" id="aaircrafticaocodelist_8h_html"><div class="ttname"><a href="aircrafticaocodelist_8h.html">aircrafticaocodelist.h</a></div></div>
<div class="ttc" id="aaircrafticaoform_8h_html"><div class="ttname"><a href="aircrafticaoform_8h.html">aircrafticaoform.h</a></div></div>
<div class="ttc" id="aclass_black_core_1_1_c_application_html_a73508404c530279edbf9b74ca596668b"><div class="ttname"><a href="class_black_core_1_1_c_application.html#a73508404c530279edbf9b74ca596668b">BlackCore::CApplication::getWebDataServices</a></div><div class="ttdeci">CWebDataServices * getWebDataServices() const</div><div class="ttdoc">Get the web data services.</div><div class="ttdef"><b>Definition:</b> <a href="application_8cpp_source.html#l00484">application.cpp:484</a></div></div>
<div class="ttc" id="aclass_black_core_1_1_c_application_html_ae9c04df302b8917f626f94d6156175af"><div class="ttname"><a href="class_black_core_1_1_c_application.html#ae9c04df302b8917f626f94d6156175af">BlackCore::CApplication::hasWebDataServices</a></div><div class="ttdeci">bool hasWebDataServices() const</div><div class="ttdoc">Web data services available?</div><div class="ttdef"><b>Definition:</b> <a href="application_8cpp_source.html#l00478">application.cpp:478</a></div></div>
<div class="ttc" id="aclass_black_core_1_1_c_web_data_services_html_acce319ee7d7ea2ca89ac79c5c11e840f"><div class="ttname"><a href="class_black_core_1_1_c_web_data_services.html#acce319ee7d7ea2ca89ac79c5c11e840f">BlackCore::CWebDataServices::getAircraftIcaoCodeForDbKey</a></div><div class="ttdeci">BlackMisc::Aviation::CAircraftIcaoCode getAircraftIcaoCodeForDbKey(int id) const</div><div class="ttdoc">ICAO code for id.</div><div class="ttdef"><b>Definition:</b> <a href="webdataservices_8cpp_source.html#l00742">webdataservices.cpp:742</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_c_drop_site_html_a0beadbf64ed54ce778a912689235e0a9"><div class="ttname"><a href="class_black_gui_1_1_c_drop_site.html#a0beadbf64ed54ce778a912689235e0a9">BlackGui::CDropSite::droppedValueObject</a></div><div class="ttdeci">void droppedValueObject(const BlackMisc::CVariant &droppedObject)</div><div class="ttdoc">Dropped value object.</div></div>
<div class="ttc" id="aclass_black_gui_1_1_c_gui_utility_html_a645df6b88bdb3c09720391c9ef747d16"><div class="ttname"><a href="class_black_gui_1_1_c_gui_utility.html#a645df6b88bdb3c09720391c9ef747d16">BlackGui::CGuiUtility::setComboBoxValueByStartingString</a></div><div class="ttdeci">static bool setComboBoxValueByStartingString(QComboBox *box, const QString &candidate, const QString &unspecified=QString())</div><div class="ttdoc">Find best match in comboBox.</div><div class="ttdef"><b>Definition:</b> <a href="guiutility_8cpp_source.html#l00305">guiutility.cpp:305</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_c_gui_utility_html_acfbf62f1e378996882344c303221bea2"><div class="ttname"><a href="class_black_gui_1_1_c_gui_utility.html#acfbf62f1e378996882344c303221bea2">BlackGui::CGuiUtility::checkBoxReadOnly</a></div><div class="ttdeci">static void checkBoxReadOnly(QCheckBox *checkBox, bool readOnly)</div><div class="ttdoc">Pseudo readonly state for checkbox.</div><div class="ttdef"><b>Definition:</b> <a href="guiutility_8cpp_source.html#l00456">guiutility.cpp:456</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html">BlackGui::Editors::CAircraftIcaoForm</a></div><div class="ttdoc">Aircraft ICAO form.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8h_source.html#l00027">aircrafticaoform.h:28</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a3041b0b43e6e89eecb7b7ea612895000"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a3041b0b43e6e89eecb7b7ea612895000">BlackGui::Editors::CAircraftIcaoForm::jsonPasted</a></div><div class="ttdeci">virtual void jsonPasted(const QString &json)</div><div class="ttdoc">JSON string has been pasted.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00084">aircrafticaoform.cpp:84</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a337eaa8f48b3ba9122fd7f649d928013"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a337eaa8f48b3ba9122fd7f649d928013">BlackGui::Editors::CAircraftIcaoForm::isDropAllowed</a></div><div class="ttdeci">bool isDropAllowed() const</div><div class="ttdoc">Is drop allowed?</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00160">aircrafticaoform.cpp:160</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a36ddd2950225fc8104f6f22e7ba8d2c3"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a36ddd2950225fc8104f6f22e7ba8d2c3">BlackGui::Editors::CAircraftIcaoForm::allowDrop</a></div><div class="ttdeci">void allowDrop(bool allowDrop)</div><div class="ttdoc">Allow to drop.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00155">aircrafticaoform.cpp:155</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a39d047d9d01aaec1dfb475c41272b004"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a39d047d9d01aaec1dfb475c41272b004">BlackGui::Editors::CAircraftIcaoForm::validate</a></div><div class="ttdeci">virtual BlackMisc::CStatusMessageList validate(bool nested=false) const</div><div class="ttdoc">Validate, empty list means OK.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00146">aircrafticaoform.cpp:146</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a47ab95bf7bc79d70a894efde267594c5"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a47ab95bf7bc79d70a894efde267594c5">BlackGui::Editors::CAircraftIcaoForm::setValue</a></div><div class="ttdeci">bool setValue(const BlackMisc::Aviation::CAircraftIcaoCode &icao)</div><div class="ttdoc">Set value.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00058">aircrafticaoform.cpp:58</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a697297983a375809a9e68d31f6ba179b"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a697297983a375809a9e68d31f6ba179b">BlackGui::Editors::CAircraftIcaoForm::resetValue</a></div><div class="ttdeci">void resetValue()</div><div class="ttdoc">Reset value to current value.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00202">aircrafticaoform.cpp:202</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a698e0c05327d9ab696ac4ed8293c2cf3"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a698e0c05327d9ab696ac4ed8293c2cf3">BlackGui::Editors::CAircraftIcaoForm::setSelectOnly</a></div><div class="ttdeci">virtual void setSelectOnly()</div><div class="ttdoc">Read only, but entity can be selected (normally used in mapping). Use setReadOnly to reset this very ...</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00188">aircrafticaoform.cpp:188</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_a6d4eb897d7d54304345a1b65d05caceb"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#a6d4eb897d7d54304345a1b65d05caceb">BlackGui::Editors::CAircraftIcaoForm::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Clear.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00197">aircrafticaoform.cpp:197</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_aaff4e9960130ba624915c5c15c4c6c5d"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#aaff4e9960130ba624915c5c15c4c6c5d">BlackGui::Editors::CAircraftIcaoForm::setReadOnly</a></div><div class="ttdeci">virtual void setReadOnly(bool readonly)</div><div class="ttdoc">Set editable.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00165">aircrafticaoform.cpp:165</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_ac3bdefe53d57700dec7b8ad517ce66e9"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#ac3bdefe53d57700dec7b8ad517ce66e9">BlackGui::Editors::CAircraftIcaoForm::getValue</a></div><div class="ttdeci">BlackMisc::Aviation::CAircraftIcaoCode getValue() const</div><div class="ttdoc">Get value.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00104">aircrafticaoform.cpp:104</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_aircraft_icao_form_html_adcc36b0edc2d7c1adb21ad9be7b8e213"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_aircraft_icao_form.html#adcc36b0edc2d7c1adb21ad9be7b8e213">BlackGui::Editors::CAircraftIcaoForm::~CAircraftIcaoForm</a></div><div class="ttdeci">virtual ~CAircraftIcaoForm()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaoform_8cpp_source.html#l00055">aircrafticaoform.cpp:55</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_form_html"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_form.html">BlackGui::Editors::CForm</a></div><div class="ttdoc">Form base class.</div><div class="ttdef"><b>Definition:</b> <a href="form_8h_source.html#l00025">form.h:26</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_form_html_a0fba259a286b486f42bac0871e37dcbd"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_form.html#a0fba259a286b486f42bac0871e37dcbd">BlackGui::Editors::CForm::pasted</a></div><div class="ttdeci">void pasted()</div><div class="ttdoc">Pasted from clipboard.</div><div class="ttdef"><b>Definition:</b> <a href="form_8cpp_source.html#l00043">form.cpp:43</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_form_html_adbfbec68b7b6def79686bb3ecfafc684"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_form.html#adbfbec68b7b6def79686bb3ecfafc684">BlackGui::Editors::CForm::m_readOnly</a></div><div class="ttdeci">bool m_readOnly</div><div class="ttdoc">read only</div><div class="ttdef"><b>Definition:</b> <a href="form_8h_source.html#l00064">form.h:64</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_editors_1_1_c_form_html_af363eccc9163f65dcb5b75d664ac273a"><div class="ttname"><a href="class_black_gui_1_1_editors_1_1_c_form.html#af363eccc9163f65dcb5b75d664ac273a">BlackGui::Editors::CForm::forceStyleSheetUpdate</a></div><div class="ttdeci">void forceStyleSheetUpdate()</div><div class="ttdoc">Forces a stylesheet update.</div><div class="ttdef"><b>Definition:</b> <a href="form_8cpp_source.html#l00051">form.cpp:51</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html">BlackMisc::Aviation::CAircraftIcaoCode</a></div><div class="ttdoc">Value object for ICAO classification.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00028">aircrafticaocode.h:31</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a217da14f0d20b5ff6b26a9595ec95f2a"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a217da14f0d20b5ff6b26a9595ec95f2a">BlackMisc::Aviation::CAircraftIcaoCode::setCombinedType</a></div><div class="ttdeci">void setCombinedType(const QString &type)</div><div class="ttdoc">Set type.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00146">aircrafticaocode.h:146</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a2456988541297d17697169696ffca1f8"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a2456988541297d17697169696ffca1f8">BlackMisc::Aviation::CAircraftIcaoCode::getIataCode</a></div><div class="ttdeci">const QString & getIataCode() const</div><div class="ttdoc">IATA code.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00098">aircrafticaocode.h:98</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a35eaa180c41e83205918ca763d52568f"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a35eaa180c41e83205918ca763d52568f">BlackMisc::Aviation::CAircraftIcaoCode::isLegacyAircraft</a></div><div class="ttdeci">bool isLegacyAircraft() const</div><div class="ttdoc">Legacy aircraft (no current ICAO code)</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00219">aircrafticaocode.h:219</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a3d211e8304ba719a504d2674534e72c5"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a3d211e8304ba719a504d2674534e72c5">BlackMisc::Aviation::CAircraftIcaoCode::setFamily</a></div><div class="ttdeci">void setFamily(const QString &family)</div><div class="ttdoc">Set family.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00113">aircrafticaocode.h:113</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a416b033e59a976de6dabd23d35f299a6"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a416b033e59a976de6dabd23d35f299a6">BlackMisc::Aviation::CAircraftIcaoCode::getDesignator</a></div><div class="ttdeci">const QString & getDesignator() const</div><div class="ttdoc">Get ICAO designator, e.g. "B737".</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00074">aircrafticaocode.h:74</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a56a214b55224482c9fd867c4f0ce9263"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a56a214b55224482c9fd867c4f0ce9263">BlackMisc::Aviation::CAircraftIcaoCode::setManufacturer</a></div><div class="ttdeci">void setManufacturer(const QString &manufacturer)</div><div class="ttdoc">Set the manufacturer.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00192">aircrafticaocode.h:192</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a62ed1bca83a9581d864495a6d4863579"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a62ed1bca83a9581d864495a6d4863579">BlackMisc::Aviation::CAircraftIcaoCode::isRealWorld</a></div><div class="ttdeci">bool isRealWorld() const</div><div class="ttdoc">Real world aircraft?</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00216">aircrafticaocode.h:216</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a781aab69970e838897209bc703cd9a79"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a781aab69970e838897209bc703cd9a79">BlackMisc::Aviation::CAircraftIcaoCode::setIataCode</a></div><div class="ttdeci">void setIataCode(const QString &iata)</div><div class="ttdoc">Set IATA code.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00101">aircrafticaocode.h:101</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a7e5ab1493266d0d9e9716189b322786e"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a7e5ab1493266d0d9e9716189b322786e">BlackMisc::Aviation::CAircraftIcaoCode::setRank</a></div><div class="ttdeci">void setRank(int rank)</div><div class="ttdoc">Ranking.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8cpp_source.html#l00531">aircrafticaocode.cpp:531</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a7ed099c7604d769263bdcebb51f17d65"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a7ed099c7604d769263bdcebb51f17d65">BlackMisc::Aviation::CAircraftIcaoCode::getManufacturer</a></div><div class="ttdeci">const QString & getManufacturer() const</div><div class="ttdoc">Get manufacturer, e.g. "Airbus".</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00189">aircrafticaocode.h:189</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a8179364b69cf73c71d9e54041b398e64"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a8179364b69cf73c71d9e54041b398e64">BlackMisc::Aviation::CAircraftIcaoCode::validate</a></div><div class="ttdeci">CStatusMessageList validate() const</div><div class="ttdoc">Validate data.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8cpp_source.html#l00096">aircrafticaocode.cpp:96</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a8b959330af77abdc3030724116523d6d"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a8b959330af77abdc3030724116523d6d">BlackMisc::Aviation::CAircraftIcaoCode::getFamily</a></div><div class="ttdeci">const QString & getFamily() const</div><div class="ttdoc">Family (e.g. A350)</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00110">aircrafticaocode.h:110</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_a9dc922d06b681c9c75bcd8455a3a91cb"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#a9dc922d06b681c9c75bcd8455a3a91cb">BlackMisc::Aviation::CAircraftIcaoCode::getWtc</a></div><div class="ttdeci">const QString & getWtc() const</div><div class="ttdoc">Get WTC.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00201">aircrafticaocode.h:201</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_aa0b7564546149c756dfbbfe787779f84"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#aa0b7564546149c756dfbbfe787779f84">BlackMisc::Aviation::CAircraftIcaoCode::getCombinedType</a></div><div class="ttdeci">const QString & getCombinedType() const</div><div class="ttdoc">Get type, e.g. "L2J".</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00122">aircrafticaocode.h:122</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_aa183eb1ccd803e02235e7e067a035d8b"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#aa183eb1ccd803e02235e7e067a035d8b">BlackMisc::Aviation::CAircraftIcaoCode::setCodeFlags</a></div><div class="ttdeci">void setCodeFlags(bool military, bool legacy, bool realWorld)</div><div class="ttdoc">Flags.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8cpp_source.html#l00504">aircrafticaocode.cpp:504</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_ab717feb8023ef49b1673d914fe70c5a4"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ab717feb8023ef49b1673d914fe70c5a4">BlackMisc::Aviation::CAircraftIcaoCode::getModelDescription</a></div><div class="ttdeci">const QString & getModelDescription() const</div><div class="ttdoc">Get IACO model description, e.g. "A-330-200".</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00149">aircrafticaocode.h:149</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_ac4c5a089e27e310e3e231c94b5906cd4"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ac4c5a089e27e310e3e231c94b5906cd4">BlackMisc::Aviation::CAircraftIcaoCode::setModelDescription</a></div><div class="ttdeci">void setModelDescription(const QString &modelDescription)</div><div class="ttdoc">Set the model description (ICAO description)</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00171">aircrafticaocode.h:171</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_acd7783a19e34feaa3d763cb655e21d16"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#acd7783a19e34feaa3d763cb655e21d16">BlackMisc::Aviation::CAircraftIcaoCode::getRankString</a></div><div class="ttdeci">QString getRankString() const</div><div class="ttdoc">Ranking.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8cpp_source.html#l00526">aircrafticaocode.cpp:526</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_ad4ebd4470f0f9f8395bd7f1b9cbd02b9"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ad4ebd4470f0f9f8395bd7f1b9cbd02b9">BlackMisc::Aviation::CAircraftIcaoCode::setWtc</a></div><div class="ttdeci">void setWtc(const QString &wtc)</div><div class="ttdoc">Set WTC.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00204">aircrafticaocode.h:204</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_html_ae868b9b6bf8f993797f7b48f37d58da7"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code.html#ae868b9b6bf8f993797f7b48f37d58da7">BlackMisc::Aviation::CAircraftIcaoCode::isMilitary</a></div><div class="ttdeci">bool isMilitary() const</div><div class="ttdoc">Military?</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocode_8h_source.html#l00213">aircrafticaocode.h:213</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list_html"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_aircraft_icao_code_list.html">BlackMisc::Aviation::CAircraftIcaoCodeList</a></div><div class="ttdoc">Value object encapsulating a list of ICAO codes.</div><div class="ttdef"><b>Definition:</b> <a href="aircrafticaocodelist_8h_source.html#l00027">aircrafticaocodelist.h:31</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_json_exception_html"><div class="ttname"><a href="class_black_misc_1_1_c_json_exception.html">BlackMisc::CJsonException</a></div><div class="ttdoc">Thrown when a convertFromJson method encounters an unrecoverable error in JSON data.</div><div class="ttdef"><b>Definition:</b> <a href="jsonexception_8h_source.html#l00021">jsonexception.h:22</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_sequence_html_aa68fa203f1b72b6e94834d6b85646dde"><div class="ttname"><a href="class_black_misc_1_1_c_sequence.html#aa68fa203f1b72b6e94834d6b85646dde">BlackMisc::CSequence::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdoc">Synonym for empty.</div><div class="ttdef"><b>Definition:</b> <a href="sequence_8h_source.html#l00286">sequence.h:286</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_sequence_html_accf0d03e5dd2e7bdd83724604f78e38d"><div class="ttname"><a href="class_black_misc_1_1_c_sequence.html#accf0d03e5dd2e7bdd83724604f78e38d">BlackMisc::CSequence::front</a></div><div class="ttdeci">reference front()</div><div class="ttdoc">Access the first element.</div><div class="ttdef"><b>Definition:</b> <a href="sequence_8h_source.html#l00226">sequence.h:226</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_status_message_list_html"><div class="ttname"><a href="class_black_misc_1_1_c_status_message_list.html">BlackMisc::CStatusMessageList</a></div><div class="ttdoc">Status messages, e.g. from Core -> GUI.</div><div class="ttdef"><b>Definition:</b> <a href="statusmessagelist_8h_source.html#l00028">statusmessagelist.h:33</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_variant_html"><div class="ttname"><a href="class_black_misc_1_1_c_variant.html">BlackMisc::CVariant</a></div><div class="ttdoc">Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...</div><div class="ttdef"><b>Definition:</b> <a href="variant_8h_source.html#l00056">variant.h:63</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_variant_html_a09c6d40c0c5004e5b25d8e54865082b2"><div class="ttname"><a href="class_black_misc_1_1_c_variant.html#a09c6d40c0c5004e5b25d8e54865082b2">BlackMisc::CVariant::value</a></div><div class="ttdeci">T value() const</div><div class="ttdoc">Return the value converted to the type T.</div><div class="ttdef"><b>Definition:</b> <a href="variant_8h_source.html#l00166">variant.h:166</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_variant_html_a19c267c546b8c6bc1cae8527c48bd457"><div class="ttname"><a href="class_black_misc_1_1_c_variant.html#a19c267c546b8c6bc1cae8527c48bd457">BlackMisc::CVariant::canConvert</a></div><div class="ttdeci">bool canConvert(int typeId) const</div><div class="ttdoc">True if this variant can be converted to the type with the given metatype ID.</div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_variant_html_afbe25f56649a7b69be470ddd571fad49"><div class="ttname"><a href="class_black_misc_1_1_c_variant.html#afbe25f56649a7b69be470ddd571fad49">BlackMisc::CVariant::convertFromJson</a></div><div class="ttdeci">void convertFromJson(const QJsonObject &json)</div><div class="ttdoc">Assign from JSON object.</div></div>
<div class="ttc" id="aclass_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key_html_a4404e446a6c65535ce3ab281edb7b267"><div class="ttname"><a href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a4404e446a6c65535ce3ab281edb7b267">BlackMisc::Db::IDatastoreObjectWithIntegerKey::isLoadedFromDb</a></div><div class="ttdeci">bool isLoadedFromDb() const</div><div class="ttdoc">Loaded from DB.</div><div class="ttdef"><b>Definition:</b> <a href="datastore_8cpp_source.html#l00051">datastore.cpp:51</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key_html_a7961ec8eab13b5d7b054eaf6e136dab3"><div class="ttname"><a href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a7961ec8eab13b5d7b054eaf6e136dab3">BlackMisc::Db::IDatastoreObjectWithIntegerKey::hasValidDbKey</a></div><div class="ttdeci">bool hasValidDbKey() const</div><div class="ttdoc">Has valid DB key.</div><div class="ttdef"><b>Definition:</b> <a href="datastore_8h_source.html#l00102">datastore.h:102</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key_html_ad521e8df12488fa3a25cab800a7a0cbe"><div class="ttname"><a href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#ad521e8df12488fa3a25cab800a7a0cbe">BlackMisc::Db::IDatastoreObjectWithIntegerKey::getDbKeyAsString</a></div><div class="ttdeci">QString getDbKeyAsString() const</div><div class="ttdoc">DB key as string.</div><div class="ttdef"><b>Definition:</b> <a href="datastore_8cpp_source.html#l00032">datastore.cpp:32</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_i_timestamp_based_html_a1cfbcc7ae43f3537c38e6da94dc37765"><div class="ttname"><a href="class_black_misc_1_1_i_timestamp_based.html#a1cfbcc7ae43f3537c38e6da94dc37765">BlackMisc::ITimestampBased::getFormattedUtcTimestampYmdhms</a></div><div class="ttdeci">QString getFormattedUtcTimestampYmdhms() const</div><div class="ttdoc">As yyyy MM dd HH mm ss.</div><div class="ttdef"><b>Definition:</b> <a href="timestampbased_8cpp_source.html#l00150">timestampbased.cpp:150</a></div></div>
<div class="ttc" id="adatastore_8h_html"><div class="ttname"><a href="datastore_8h.html">datastore.h</a></div></div>
<div class="ttc" id="adbaircrafticaoselectorcomponent_8h_html"><div class="ttname"><a href="dbaircrafticaoselectorcomponent_8h.html">dbaircrafticaoselectorcomponent.h</a></div></div>
<div class="ttc" id="adropsite_8h_html"><div class="ttname"><a href="dropsite_8h.html">dropsite.h</a></div></div>
<div class="ttc" id="agroup___j_s_o_n_html_ga77d39e837d9443c21fd3b36896b1de16"><div class="ttname"><a href="group___j_s_o_n.html#ga77d39e837d9443c21fd3b36896b1de16">BlackMisc::Json::jsonObjectFromString</a></div><div class="ttdeci">QJsonObject jsonObjectFromString(const QString &json, bool acceptCacheFormat)</div><div class="ttdoc">JSON Object from string.</div><div class="ttdef"><b>Definition:</b> <a href="json_8cpp_source.html#l00411">json.cpp:411</a></div></div>
<div class="ttc" id="aguiapplication_8h_html"><div class="ttname"><a href="guiapplication_8h.html">guiapplication.h</a></div></div>
<div class="ttc" id="aguiapplication_8h_html_a1dba1c5283e427943e3535790c3d14d0"><div class="ttname"><a href="guiapplication_8h.html#a1dba1c5283e427943e3535790c3d14d0">sGui</a></div><div class="ttdeci">BLACKGUI_EXPORT BlackGui::CGuiApplication * sGui</div><div class="ttdoc">Single instance of GUI application object.</div><div class="ttdef"><b>Definition:</b> <a href="guiapplication_8cpp_source.html#l00076">guiapplication.cpp:76</a></div></div>
<div class="ttc" id="aguiutility_8h_html"><div class="ttname"><a href="guiutility_8h.html">guiutility.h</a></div></div>
<div class="ttc" id="aicons_8h_html"><div class="ttname"><a href="icons_8h.html">icons.h</a></div></div>
<div class="ttc" id="amixincompare_8h_html"><div class="ttname"><a href="mixincompare_8h.html">mixincompare.h</a></div></div>
<div class="ttc" id="anamespace_black_gui_1_1_components_html"><div class="ttname"><a href="namespace_black_gui_1_1_components.html">BlackGui::Components</a></div><div class="ttdoc">High level reusable GUI components.</div></div>
<div class="ttc" id="anamespace_black_misc_html"><div class="ttname"><a href="namespace_black_misc.html">BlackMisc</a></div><div class="ttdoc">Base and utility classes available in all other projects.</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmatcher_8h_source.html#l00028">aircraftmatcher.h:29</a></div></div>
<div class="ttc" id="aqabstractbutton_html_clicked"><div class="ttname"><a href="http://doc.qt.io/qt-5/qabstractbutton.html#clicked">QAbstractButton::clicked</a></div><div class="ttdeci">void clicked(bool checked)</div></div>
<div class="ttc" id="aqintvalidator_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qintvalidator.html">QIntValidator</a></div></div>
<div class="ttc" id="aqlineedit_html_returnPressed"><div class="ttname"><a href="http://doc.qt.io/qt-5/qlineedit.html#returnPressed">QLineEdit::returnPressed</a></div><div class="ttdeci">void returnPressed()</div></div>
<div class="ttc" id="aqobject_html_connect"><div class="ttname"><a href="http://doc.qt.io/qt-5/qobject.html#connect">QObject::connect</a></div><div class="ttdeci">QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)</div></div>
<div class="ttc" id="aqstring_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></div></div>
<div class="ttc" id="aqstring_html_isEmpty"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#isEmpty">QString::isEmpty</a></div><div class="ttdeci">bool isEmpty() const const</div></div>
<div class="ttc" id="aqwidget_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a></div></div>
<div class="ttc" id="aqwidget_html_setFocusProxy"><div class="ttname"><a href="http://doc.qt.io/qt-5/qwidget.html#setFocusProxy">QWidget::setFocusProxy</a></div><div class="ttdeci">void setFocusProxy(QWidget *w)</div></div>
<div class="ttc" id="avalidationindicator_8h_html"><div class="ttname"><a href="validationindicator_8h.html">validationindicator.h</a></div></div>
<div class="ttc" id="awebdataservices_8h_html"><div class="ttname"><a href="webdataservices_8h.html">webdataservices.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Dec 3 2023 18:38:38 for swift by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>