Commit Graph

75 Commits

Author SHA1 Message Date
Mat Sutcliffe
a592bb2bbe Include style 2021-09-18 15:07:49 +01:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
2aeacf49a7 Issue #114 Use CSetBuilder and CMapBuilder 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
2c66e2215e Issue #77 Move all methods of CLogUtilities to other classes 2020-12-19 18:50:40 +00:00
Mat Sutcliffe
761fd56cc9 Issue #77 Break cyclic dependency between CDatastoreUtility CAircraftModelList by factoring out dependent functionality 2020-12-19 18:50:39 +00:00
Mat Sutcliffe
63f5d28622 Issue #77 Break cyclic dependency between CVariant and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
1991b4847a Issue #77 Break cyclic dependency between CPropertyIndex and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Mat Sutcliffe
371c1f4f7c Issue #77 Break cyclic dependency between CLogCategory and numerous classes 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
b1185eb541 Issue #77 toIcon returns a simple enum instead of a full object 2020-12-19 18:50:31 +00:00
Mat Sutcliffe
8e065a8fef Issue #77 Factor out parts of CDirectoryUtils into CSwiftDirectories
CDirectoryUtils is utilities for manipulating directories.
CSwiftDirectories is getters that return directories used by swift.
2020-08-29 14:16:12 +01:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
9b5ffdf924 Ref T704, moved "ifPossibleReduceNameTelephonyCountry" into airline code list, unified functions 2019-09-16 22:40:33 +01:00
Klaus Basan
4237839bbd Ref T704, split matching utils for logging in aviation context 2019-09-16 22:40:32 +01:00
Klaus Basan
7ee2814c73 Smaller improvements in matching messages/style 2019-09-16 22:40:30 +01:00
Klaus Basan
5da74faad0 Ref T684, renamed to "getAirlinePrefix()", as airline comes first 2019-09-16 22:39:54 +01:00
Klaus Basan
e3dceccefd Airline icon as HTML img code 2019-05-13 11:21:11 +02:00
Mat Sutcliffe
a366ad8943 Added with() and withValidation() methods in CLogCategoryList. 2019-04-12 13:30:54 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
fe7a45afcf Ref T516 Update CStatusMessage call sites to use new syntax. 2019-02-22 20:35:51 +00:00
Mat Sutcliffe
1493106970 Style: removed outdated comments and includes. 2019-02-22 20:35:15 +00:00
Klaus Basan
2d3e2e2d99 Ref T265, Ref T430, Ref T473 functions renamed 2019-02-22 20:23:55 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Mat Sutcliffe
cecec6107c Fixed clazy warnings: use QStringRef. 2019-02-22 20:23:38 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Klaus Basan
84bf19697c Ref T310, utility functions for statistics (incl.renaming) 2018-08-28 01:15:49 +02:00
Klaus Basan
68607a3cb8 Ref T298, better string handling/messages 2018-08-09 01:25:30 +02:00
Klaus Basan
33d4cf82ea Ref T242, null functions for livery, airline, aircraft 2018-02-09 04:43:50 +01:00
Klaus Basan
e001b0338f Ref T242, utility functions for matching
* search among airline aircraft
* improved logging information
* search among airline ICAO aircraft (which aircraft does the airline use?)
* check ecosystem before merging with VATSIM data
2018-02-09 04:43:47 +01:00
Klaus Basan
10f942e702 Formatting, minor tweaks 2018-02-09 04:43:45 +01:00
Klaus Basan
9048ff0977 Ref T182, aircraft ICAO, airline ICAO and livery also contribute to scoring log messages 2017-11-09 04:42:20 +01:00
Klaus Basan
7db5e9aea3 Ref T182, adjust scoring in livery, ICAO codes 2017-11-09 04:42:07 +01:00
Klaus Basan
0f133f6505 Ref T182, livery/ICAO classed formatting 2017-11-09 04:42:06 +01:00
Klaus Basan
3fb2f88032 Ref T129, some more utility functions for aviation value objects
* removed static variables from SELCAL
* more finder functions for airline ICAO list
* check for IATA code
* unify callsign now public
2017-10-10 00:28:20 +01:00
Klaus Basan
a9198e4f13 Ref T103, Unified naming of directory functions
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
debd9c802f Ref T103, moved directory functions from CBuildConfig to CDirectoryUtils
getApplicationDir renamed to getBinDir() as it works different on MacOs
see https://dev.swift-project.org/w/dev/swiftpc/dirstructure/
2017-09-24 19:49:51 +01:00
Klaus Basan
9ad721b77a Ref T99, use new icon names
* use icon id list from directory for performance
* some minor adjustments
2017-09-24 19:49:26 +01:00
Klaus Basan
afbb87298f Ref T77, prefix for getDbKeyAsStringInParentheses 2017-05-09 19:13:53 +02:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Klaus Basan
f9e0146df9 refs #827, added groupid/name/designator 2017-04-17 23:57:32 +01:00
Klaus Basan
630ec78d38 refs #820, utility functions for score and groupBy 2016-12-13 19:01:43 +01:00
Mathew Sutcliffe
461474e29d refs #800 Fixed "using namespace" in header. 2016-12-13 19:00:25 +01:00
Klaus Basan
ff3f04f74c refs #768, allow more detailed tooltips
(makes it sometimes much easier to identify an entity)
2016-12-06 09:34:14 +01:00
Klaus Basan
8718260623 refs #768, update of value objects
* Adjusted validation
* Use default airline object when a color livery is created (refs #774 also)
* Added/improved completer strings (e.g. getVDesignatorDbKey())
* utility functions in lists
2016-12-06 09:33:07 +01:00
Mathew Sutcliffe
87eeac4e15 refs #710 Simple algorithms to replace several regular expressions. 2016-08-30 04:02:00 +01:00
Klaus Basan
f91cf3bbf3 refs #734, added NAVY/MARINES as 2 letter codes
* adjustement for 2 letter codes
* icons
2016-08-26 21:06:05 +01:00
Mathew Sutcliffe
67b36bbfcf refs #721 Trying the unaltered name first is slower
because in nearly all cases, it just leads to comparing the names twice.
2016-08-26 21:04:48 +01:00
Mathew Sutcliffe
15cf07c1c5 refs #721 For performance, avoid regular expressions where a simple algorithm would suffice. 2016-08-26 21:04:47 +01:00