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 pathatcstationlistmodel_8cpp_source.html
255 lines (253 loc) · 54.3 KB
/
atcstationlistmodel_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
<!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/models/atcstationlistmodel.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_7c8af91da0cb1780ffa3a3b448c62e41.html">models</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">atcstationlistmodel.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) 2013 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 "<a class="code" href="atcstationlistmodel_8h.html">blackgui/models/atcstationlistmodel.h</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="atcstationtreemodel_8h.html">blackgui/models/atcstationtreemodel.h</a>"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="columnformatters_8h.html">blackgui/models/columnformatters.h</a>"</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="columns_8h.html">blackgui/models/columns.h</a>"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="callsign_8h.html">blackmisc/aviation/callsign.h</a>"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="mixincompare_8h.html">blackmisc/mixin/mixincompare.h</a>"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="icon_8h.html">blackmisc/icon.h</a>"</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="user_8h.html">blackmisc/network/user.h</a>"</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="frequency_8h.html">blackmisc/pq/frequency.h</a>"</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="length_8h.html">blackmisc/pq/length.h</a>"</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="units_8h.html">blackmisc/pq/units.h</a>"</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="propertyindexvariantmap_8h.html">blackmisc/propertyindexvariantmap.h</a>"</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <QDateTime></span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <QList></span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <QMap></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <QModelIndex></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <QString></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <Qt></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <QtDebug></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <QtGlobal></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">using namespace </span>BlackMisc::PhysicalQuantities;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">using namespace </span>BlackMisc::Audio;</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::Network;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span><a class="code" href="namespace_black_gui_1_1_models.html">BlackGui::Models</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a63dd26030df854e039096c56f409232c"> 33</a></span>  CAtcStationListModel::CAtcStationListModel(<a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a71f40c07936e328ffe6655fe656c9b9f">AtcStationMode</a> stationMode, <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *parent) : <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_callsign_objects.html">CListModelCallsignObjects</a>(<span class="stringliteral">"ModelAtcList"</span>, parent)</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  this-><a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a4e5c66bca306bbcf81622c27146df71a">setStationMode</a>(stationMode);</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>  <span class="comment">// force strings for translation in resource files</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"callsign"</span>);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"frequency"</span>);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"distance"</span>);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"controllername"</span>);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"online"</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"bookedfrom"</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  (void)QT_TRANSLATE_NOOP(<span class="stringliteral">"ModelAtcList"</span>, <span class="stringliteral">"bookeduntil"</span>);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a4e5c66bca306bbcf81622c27146df71a"> 47</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a4e5c66bca306bbcf81622c27146df71a">CAtcStationListModel::setStationMode</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a71f40c07936e328ffe6655fe656c9b9f">CAtcStationListModel::AtcStationMode</a> stationMode)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (m_stationMode == stationMode) <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  m_stationMode = stationMode;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#a2977cdd32d0c8c81e3caeca1dea90c48">clear</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">switch</span> (stationMode)</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>  <span class="keywordflow">case</span> NotSet:</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">case</span> StationsOnline:</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>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#abd321f012407c9f9e83a63908c0227a6">CColumn::standardString</a>(<span class="stringliteral">"cs."</span>, <span class="stringliteral">"callsign"</span>, { CAtcStation::IndexCallsign, CCallsign::IndexCallsignStringAsSet }));</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a> col(<span class="stringliteral">"type"</span>, CAtcStation::IndexIcon);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  col.<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#a64f814ba0f7f56a2d203b57d411ccf72">setSortPropertyIndex</a>({ CAtcStation::IndexCallsign, CCallsign::IndexSuffix });</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(col);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"frequency"</span>, CAtcStation::IndexFrequency, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_com_frequency_formatter.html">CComFrequencyFormatter</a>()));</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"distance"</span>, CAtcStation::IndexRelativeDistance, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_airspace_distance_formatter.html">CAirspaceDistanceFormatter</a>()));</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"r."</span>, <span class="stringliteral">"in range"</span>, CAtcStation::IndexIsInRange, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_bool_icon_formatter.html">CBoolIconFormatter</a>(<span class="stringliteral">"in range"</span>, <span class="stringliteral">"outside range"</span>)));</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"xc."</span>, <span class="stringliteral">"AFV cross coupled"</span>, CAtcStation::IndexIsAfvCrossCoupled, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_bool_icon_formatter.html">CBoolIconFormatter</a>(<span class="stringliteral">"AFV cross coupled"</span>, <span class="stringliteral">"not coupled"</span>)));</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"range"</span>, CAtcStation::IndexRange, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_airspace_distance_formatter.html">CAirspaceDistanceFormatter</a>()));</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#a515c092d089b59b7cc9c583b2a213aca">addColumnIncognito</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#abd321f012407c9f9e83a63908c0227a6">CColumn::standardString</a>(<span class="stringliteral">"controllername"</span>, { CAtcStation::IndexController, CUser::IndexRealName }));</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"from"</span>, <span class="stringliteral">"booked from"</span>, CAtcStation::IndexBookedFrom, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html">CDateTimeFormatter</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a0216e89f14920abb926514b7b6b2406e">CDateTimeFormatter::formatHm</a>())));</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"until"</span>, <span class="stringliteral">"booked until"</span>, CAtcStation::IndexBookedUntil, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html">CDateTimeFormatter</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a0216e89f14920abb926514b7b6b2406e">CDateTimeFormatter::formatHm</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>  <span class="comment">// default sort order</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  this-><a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a6ea5efba05751b06022d6ead95bd0bee">setSortColumnByPropertyIndex</a>(CAtcStation::IndexRelativeDistance);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a7d9399e3884e60a4963c556d95c9b035">m_sortOrder</a> = <a class="codeRef" href="http://doc.qt.io/qt-5/qt.html#SortOrder-enum">Qt::AscendingOrder</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">case</span> StationsBooked:</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#abd321f012407c9f9e83a63908c0227a6">CColumn::standardString</a>(<span class="stringliteral">"cs."</span>, <span class="stringliteral">"callsign"</span>, { CAtcStation::IndexCallsign, CCallsign::IndexCallsignStringAsSet }));</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a> col = <a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"type"</span>, CAtcStation::IndexIcon);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  col.<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#a64f814ba0f7f56a2d203b57d411ccf72">setSortPropertyIndex</a>({ CAtcStation::IndexCallsign, CCallsign::IndexSuffix });</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(col);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">""</span>, <span class="stringliteral">"on/offline"</span>, CAtcStation::IndexIsOnline, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_bool_led_formatter.html">CBoolLedFormatter</a>(<span class="stringliteral">"online"</span>, <span class="stringliteral">"offline"</span>)));</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#a515c092d089b59b7cc9c583b2a213aca">addColumnIncognito</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html#abd321f012407c9f9e83a63908c0227a6">CColumn::standardString</a>(<span class="stringliteral">"controllername"</span>, { CAtcStation::IndexController, CUser::IndexRealName }));</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"from"</span>, <span class="stringliteral">"booked from"</span>, CAtcStation::IndexBookedFrom, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html">CDateTimeFormatter</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a73bc9233ccab768050330a1c896d3aeb">CDateTimeFormatter::formatYmdhm</a>())));</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"until"</span>, <span class="stringliteral">"booked until"</span>, CAtcStation::IndexBookedUntil, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html">CDateTimeFormatter</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a73bc9233ccab768050330a1c896d3aeb">CDateTimeFormatter::formatYmdhm</a>())));</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>.<a class="code" href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">addColumn</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_column.html">CColumn</a>(<span class="stringliteral">"frequency"</span>, CAtcStation::IndexFrequency, <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_com_frequency_formatter.html">CComFrequencyFormatter</a>()));</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="comment">// default sort order</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  this-><a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a6ea5efba05751b06022d6ead95bd0bee">setSortColumnByPropertyIndex</a>(CAtcStation::IndexBookedFrom);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a7d9399e3884e60a4963c556d95c9b035">m_sortOrder</a> = <a class="codeRef" href="http://doc.qt.io/qt-5/qt.html#SortOrder-enum">Qt::AscendingOrder</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  qFatal(<span class="stringliteral">"Wrong mode"</span>);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">break</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>  }</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#aa1ac9038a7572218f9c66d8b153c1dce"> 100</a></span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html">CAtcStationTreeModel</a> *<a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#aa1ac9038a7572218f9c66d8b153c1dce">CAtcStationListModel::toAtcTreeModel</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html">CAtcStationTreeModel</a> *tm = <span class="keyword">new</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html">CAtcStationTreeModel</a>(<a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#parent">QObject::parent</a>());</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  tm-><a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html#a5fd091bdaa065ef1e41337b73415678e">setColumns</a>(<a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">m_columns</a>);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  tm-><a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html#adc72b9ab6dc7c2bb68b69fa97e83219b">updateContainer</a>(this-><a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a637c1430db42df9e0816306506ba829b">container</a>());</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> tm;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#ac905923b3af3f8b064b1aebac9249937"> 108</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#ac905923b3af3f8b064b1aebac9249937">CAtcStationListModel::changedAtcStationConnectionStatus</a>(<span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_aviation_1_1_c_atc_station.html">CAtcStation</a> &station, <span class="keywordtype">bool</span> added)</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">if</span> (station.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_atc_station.html#a41849eb0f8f3f41e85285c684193c8e9">getCallsign</a>().<a class="code" href="class_black_misc_1_1_aviation_1_1_c_callsign.html#a26923f4ca5abc09d358cedb7cc7d09ff">isEmpty</a>()) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (added)</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="keyword">const</span> <span class="keywordtype">bool</span> c = <a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base.html#aa7e23a537421649d37966655348cff9e">m_container</a>.contains(&CAtcStation::getCallsign, station.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_atc_station.html#a41849eb0f8f3f41e85285c684193c8e9">getCallsign</a>());</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (!c) { this-><a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a34aee21bd866b658059c9202ba2abc62">insert</a>(station); }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  {</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qmodelindex.html">QModelIndex</a> <a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">if</span> (<a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base.html#aee9bafbfd49011dd33420548b300c40b">rowCount</a>(<a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>) == 0) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qabstractitemmodel.html#beginRemoveRows">beginRemoveRows</a>(<a class="codeRef" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>, 0, 0);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  this-><a class="code" href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a4747067315fff1ce4acb73ac2dbf5268">removeIf</a>(&CAtcStation::getCallsign, station.<a class="code" href="class_black_misc_1_1_aviation_1_1_c_atc_station.html#a41849eb0f8f3f41e85285c684193c8e9">getCallsign</a>());</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qabstractitemmodel.html#endRemoveRows">endRemoveRows</a>();</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> } <span class="comment">// namespace</span></div>
<div class="ttc" id="aatcstationlistmodel_8h_html"><div class="ttname"><a href="atcstationlistmodel_8h.html">atcstationlistmodel.h</a></div></div>
<div class="ttc" id="aatcstationtreemodel_8h_html"><div class="ttname"><a href="atcstationtreemodel_8h.html">atcstationtreemodel.h</a></div></div>
<div class="ttc" id="acallsign_8h_html"><div class="ttname"><a href="callsign_8h.html">callsign.h</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_airspace_distance_formatter_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_airspace_distance_formatter.html">BlackGui::Models::CAirspaceDistanceFormatter</a></div><div class="ttdoc">Airspace distance displayed in NM.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00491">columnformatters.h:492</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_list_model_html_a4e5c66bca306bbcf81622c27146df71a"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a4e5c66bca306bbcf81622c27146df71a">BlackGui::Models::CAtcStationListModel::setStationMode</a></div><div class="ttdeci">void setStationMode(AtcStationMode stationMode)</div><div class="ttdoc">Set station mode.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationlistmodel_8cpp_source.html#l00047">atcstationlistmodel.cpp:47</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_list_model_html_a71f40c07936e328ffe6655fe656c9b9f"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#a71f40c07936e328ffe6655fe656c9b9f">BlackGui::Models::CAtcStationListModel::AtcStationMode</a></div><div class="ttdeci">AtcStationMode</div><div class="ttdoc">What kind of stations.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationlistmodel_8h_source.html#l00027">atcstationlistmodel.h:28</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_list_model_html_aa1ac9038a7572218f9c66d8b153c1dce"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#aa1ac9038a7572218f9c66d8b153c1dce">BlackGui::Models::CAtcStationListModel::toAtcTreeModel</a></div><div class="ttdeci">CAtcStationTreeModel * toAtcTreeModel() const</div><div class="ttdoc">A group by type (TWR, APP, ...) model.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationlistmodel_8cpp_source.html#l00100">atcstationlistmodel.cpp:100</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_list_model_html_ac905923b3af3f8b064b1aebac9249937"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_list_model.html#ac905923b3af3f8b064b1aebac9249937">BlackGui::Models::CAtcStationListModel::changedAtcStationConnectionStatus</a></div><div class="ttdeci">void changedAtcStationConnectionStatus(const BlackMisc::Aviation::CAtcStation &station, bool added)</div><div class="ttdoc">Used to quickly update single station (better response for the user)</div><div class="ttdef"><b>Definition:</b> <a href="atcstationlistmodel_8cpp_source.html#l00108">atcstationlistmodel.cpp:108</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_tree_model_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html">BlackGui::Models::CAtcStationTreeModel</a></div><div class="ttdoc">ATC list model.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationtreemodel_8h_source.html#l00019">atcstationtreemodel.h:20</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_tree_model_html_a5fd091bdaa065ef1e41337b73415678e"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html#a5fd091bdaa065ef1e41337b73415678e">BlackGui::Models::CAtcStationTreeModel::setColumns</a></div><div class="ttdeci">void setColumns(const CColumns &columns)</div><div class="ttdoc">Set columns.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationtreemodel_8h_source.html#l00031">atcstationtreemodel.h:31</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_atc_station_tree_model_html_adc72b9ab6dc7c2bb68b69fa97e83219b"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_atc_station_tree_model.html#adc72b9ab6dc7c2bb68b69fa97e83219b">BlackGui::Models::CAtcStationTreeModel::updateContainer</a></div><div class="ttdeci">void updateContainer(const BlackMisc::Aviation::CAtcStationList &stations)</div><div class="ttdoc">Update container.</div><div class="ttdef"><b>Definition:</b> <a href="atcstationtreemodel_8cpp_source.html#l00038">atcstationtreemodel.cpp:38</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_bool_icon_formatter_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_bool_icon_formatter.html">BlackGui::Models::CBoolIconFormatter</a></div><div class="ttdoc">Format as bool pixmap.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00273">columnformatters.h:274</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_bool_led_formatter_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_bool_led_formatter.html">BlackGui::Models::CBoolLedFormatter</a></div><div class="ttdoc">Format as bool LED value.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00239">columnformatters.h:240</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_column_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_column.html">BlackGui::Models::CColumn</a></div><div class="ttdoc">Single column.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8h_source.html#l00025">columns.h:26</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_column_html_a64f814ba0f7f56a2d203b57d411ccf72"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_column.html#a64f814ba0f7f56a2d203b57d411ccf72">BlackGui::Models::CColumn::setSortPropertyIndex</a></div><div class="ttdeci">void setSortPropertyIndex(const BlackMisc::CPropertyIndex &propertyIndex)</div><div class="ttdoc">Property index used when sorting, option alternative.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8cpp_source.html#l00028">columns.cpp:28</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_column_html_abd321f012407c9f9e83a63908c0227a6"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_column.html#abd321f012407c9f9e83a63908c0227a6">BlackGui::Models::CColumn::standardString</a></div><div class="ttdeci">static CColumn standardString(const QString &headerName, const BlackMisc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())</div><div class="ttdoc">Get a standard string object formatted column.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8cpp_source.html#l00055">columns.cpp:55</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_columns_html_a2977cdd32d0c8c81e3caeca1dea90c48"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_columns.html#a2977cdd32d0c8c81e3caeca1dea90c48">BlackGui::Models::CColumns::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Clear.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8h_source.html#l00216">columns.h:216</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_columns_html_a515c092d089b59b7cc9c583b2a213aca"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_columns.html#a515c092d089b59b7cc9c583b2a213aca">BlackGui::Models::CColumns::addColumnIncognito</a></div><div class="ttdeci">void addColumnIncognito(const CColumn &column)</div><div class="ttdoc">Add a column as incognito enabled.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8cpp_source.html#l00103">columns.cpp:103</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_columns_html_ac626ff4d800bb082af8eef50efa1c09a"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_columns.html#ac626ff4d800bb082af8eef50efa1c09a">BlackGui::Models::CColumns::addColumn</a></div><div class="ttdeci">void addColumn(const CColumn &column)</div><div class="ttdoc">Add a column.</div><div class="ttdef"><b>Definition:</b> <a href="columns_8cpp_source.html#l00095">columns.cpp:95</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_com_frequency_formatter_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_com_frequency_formatter.html">BlackGui::Models::CComFrequencyFormatter</a></div><div class="ttdoc">COM frequencies.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00464">columnformatters.h:465</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_date_time_formatter_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html">BlackGui::Models::CDateTimeFormatter</a></div><div class="ttdoc">Formatter when column contains QDateTime, QDate or QTime.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00317">columnformatters.h:318</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_date_time_formatter_html_a0216e89f14920abb926514b7b6b2406e"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a0216e89f14920abb926514b7b6b2406e">BlackGui::Models::CDateTimeFormatter::formatHm</a></div><div class="ttdeci">static const QString & formatHm()</div><div class="ttdoc">Hour minute.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00341">columnformatters.h:341</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_date_time_formatter_html_a73bc9233ccab768050330a1c896d3aeb"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_date_time_formatter.html#a73bc9233ccab768050330a1c896d3aeb">BlackGui::Models::CDateTimeFormatter::formatYmdhm</a></div><div class="ttdeci">static const QString & formatYmdhm()</div><div class="ttdoc">Year month day hour minute.</div><div class="ttdef"><b>Definition:</b> <a href="columnformatters_8h_source.html#l00334">columnformatters.h:334</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_html_a34aee21bd866b658059c9202ba2abc62"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a34aee21bd866b658059c9202ba2abc62">BlackGui::Models::CListModelBase::insert</a></div><div class="ttdeci">virtual void insert(const ObjectType &object)</div><div class="ttdoc">Similar to ContainerType::insert here inserts at first position.</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbase_8cpp_source.html#l00374">listmodelbase.cpp:374</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_html_a4747067315fff1ce4acb73ac2dbf5268"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a4747067315fff1ce4acb73ac2dbf5268">BlackGui::Models::CListModelBase::removeIf</a></div><div class="ttdeci">int removeIf(K0 k0, V0 v0, KeysValues... keysValues)</div><div class="ttdoc">Remove elements matching some particular key/value pair(s).</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbase_8h_source.html#l00158">listmodelbase.h:158</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_html_a637c1430db42df9e0816306506ba829b"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base.html#a637c1430db42df9e0816306506ba829b">BlackGui::Models::CListModelBase::container</a></div><div class="ttdeci">const ContainerType & container() const</div><div class="ttdoc">Used container data.</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbase_8cpp_source.html#l00313">listmodelbase.cpp:313</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_html_aa7e23a537421649d37966655348cff9e"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base.html#aa7e23a537421649d37966655348cff9e">BlackGui::Models::CListModelBase::m_container</a></div><div class="ttdeci">ContainerType m_container</div><div class="ttdoc">used container</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbase_8h_source.html#l00204">listmodelbase.h:204</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_html_aee9bafbfd49011dd33420548b300c40b"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base.html#aee9bafbfd49011dd33420548b300c40b">BlackGui::Models::CListModelBase::rowCount</a></div><div class="ttdeci">virtual int rowCount(const QModelIndex &parentIndex=QModelIndex()) const final</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbase_8cpp_source.html#l00029">listmodelbase.cpp:29</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_non_template_html_a6ea5efba05751b06022d6ead95bd0bee"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a6ea5efba05751b06022d6ead95bd0bee">BlackGui::Models::CListModelBaseNonTemplate::setSortColumnByPropertyIndex</a></div><div class="ttdeci">virtual bool setSortColumnByPropertyIndex(const BlackMisc::CPropertyIndex &propertyIndex)</div><div class="ttdoc">Set column for sorting.</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbasenontemplate_8cpp_source.html#l00072">listmodelbasenontemplate.cpp:72</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_non_template_html_a7d9399e3884e60a4963c556d95c9b035"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#a7d9399e3884e60a4963c556d95c9b035">BlackGui::Models::CListModelBaseNonTemplate::m_sortOrder</a></div><div class="ttdeci">Qt::SortOrder m_sortOrder</div><div class="ttdoc">sort order (asc/desc)</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbasenontemplate_8h_source.html#l00184">listmodelbasenontemplate.h:184</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_base_non_template_html_aa3ffc1aaf6f5ce0269738760d68d3374"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_base_non_template.html#aa3ffc1aaf6f5ce0269738760d68d3374">BlackGui::Models::CListModelBaseNonTemplate::m_columns</a></div><div class="ttdeci">CColumns m_columns</div><div class="ttdoc">columns metadata</div><div class="ttdef"><b>Definition:</b> <a href="listmodelbasenontemplate_8h_source.html#l00181">listmodelbasenontemplate.h:181</a></div></div>
<div class="ttc" id="aclass_black_gui_1_1_models_1_1_c_list_model_callsign_objects_html"><div class="ttname"><a href="class_black_gui_1_1_models_1_1_c_list_model_callsign_objects.html">BlackGui::Models::CListModelCallsignObjects</a></div><div class="ttdoc">List model for callsign based objects (callsign is unique key)</div><div class="ttdef"><b>Definition:</b> <a href="listmodelcallsignobjects_8h_source.html#l00025">listmodelcallsignobjects.h:27</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_atc_station_html"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_atc_station.html">BlackMisc::Aviation::CAtcStation</a></div><div class="ttdoc">Value object encapsulating information about an ATC station.</div><div class="ttdef"><b>Definition:</b> <a href="atcstation_8h_source.html#l00036">atcstation.h:37</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_atc_station_html_a41849eb0f8f3f41e85285c684193c8e9"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_atc_station.html#a41849eb0f8f3f41e85285c684193c8e9">BlackMisc::Aviation::CAtcStation::getCallsign</a></div><div class="ttdeci">const CCallsign & getCallsign() const</div><div class="ttdoc">Get callsign.</div><div class="ttdef"><b>Definition:</b> <a href="atcstation_8h_source.html#l00083">atcstation.h:83</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_aviation_1_1_c_callsign_html_a26923f4ca5abc09d358cedb7cc7d09ff"><div class="ttname"><a href="class_black_misc_1_1_aviation_1_1_c_callsign.html#a26923f4ca5abc09d358cedb7cc7d09ff">BlackMisc::Aviation::CCallsign::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdoc">Is empty?</div><div class="ttdef"><b>Definition:</b> <a href="callsign_8h_source.html#l00063">callsign.h:63</a></div></div>
<div class="ttc" id="acolumnformatters_8h_html"><div class="ttname"><a href="columnformatters_8h.html">columnformatters.h</a></div></div>
<div class="ttc" id="acolumns_8h_html"><div class="ttname"><a href="columns_8h.html">columns.h</a></div></div>
<div class="ttc" id="afrequency_8h_html"><div class="ttname"><a href="frequency_8h.html">frequency.h</a></div></div>
<div class="ttc" id="aicon_8h_html"><div class="ttname"><a href="icon_8h.html">icon.h</a></div></div>
<div class="ttc" id="alength_8h_html"><div class="ttname"><a href="length_8h.html">length.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_models_html"><div class="ttname"><a href="namespace_black_gui_1_1_models.html">BlackGui::Models</a></div><div class="ttdoc">Models to be used with views, mainly QTableView.</div></div>
<div class="ttc" id="apropertyindexvariantmap_8h_html"><div class="ttname"><a href="propertyindexvariantmap_8h.html">propertyindexvariantmap.h</a></div></div>
<div class="ttc" id="aqabstractitemmodel_html_beginRemoveRows"><div class="ttname"><a href="http://doc.qt.io/qt-5/qabstractitemmodel.html#beginRemoveRows">QAbstractItemModel::beginRemoveRows</a></div><div class="ttdeci">void beginRemoveRows(const QModelIndex &parent, int first, int last)</div></div>
<div class="ttc" id="aqabstractitemmodel_html_endRemoveRows"><div class="ttname"><a href="http://doc.qt.io/qt-5/qabstractitemmodel.html#endRemoveRows">QAbstractItemModel::endRemoveRows</a></div><div class="ttdeci">void endRemoveRows()</div></div>
<div class="ttc" id="aqmodelindex_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qmodelindex.html">QModelIndex</a></div></div>
<div class="ttc" id="aqobject_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qobject.html">QObject</a></div></div>
<div class="ttc" id="aqobject_html_parent"><div class="ttname"><a href="http://doc.qt.io/qt-5/qobject.html#parent">QObject::parent</a></div><div class="ttdeci">QObject * parent() const const</div></div>
<div class="ttc" id="aqt_html_SortOrder-enum"><div class="ttname"><a href="http://doc.qt.io/qt-5/qt.html#SortOrder-enum">Qt::AscendingOrder</a></div><div class="ttdeci">AscendingOrder</div></div>
<div class="ttc" id="aunits_8h_html"><div class="ttname"><a href="units_8h.html">units.h</a></div></div>
<div class="ttc" id="auser_8h_html"><div class="ttname"><a href="user_8h.html">user.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>