Mat Sutcliffe
f2eba38282
Use QString::arg instead of std::sprintf
2020-12-15 23:35:57 +00:00
Mat Sutcliffe
40362c1f4a
Use sprintf to decompose the degrees, minutes, and seconds
...
Instead of repeatedly multiplying by 100, which can cause
epsilon errors to grow to too significant magnitudes.
2020-12-08 21:02:19 +00:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
ac454ebf3a
Issue #77 Use Qt facilites instead of own implementations
2020-08-29 14:16:09 +01:00
Mat Sutcliffe
0c78c187f8
Issue #77 Style
2020-08-28 00:45:27 +01:00
Mat Sutcliffe
78987a678f
Suppress Qt 5.15 deprecation warnings
2020-06-29 18:34:14 +01:00
Klaus Basan
09d86aceb5
String utils minor improvements
2020-06-12 18:42:45 +01:00
Klaus Basan
8f4c4a249c
[5.14.1] UI adjustments
...
* OS native check of screen resolution (Qt free, experimental)
* changed rounding
* use string for scale factor so we can use fractions as 2/3
* utility functions to clean numbers, parse fractions
It looks like:
* my WIN10 scaling is 250%
* obviously swift rounds that to 3 (device ratio)
* now using FLOOR policy down-rounding to 2
* rational: scaling up (scale factor) is better as down-scaling as the factors would be clearer
* 2->3 1.5, but 3->2 means 0.66667
2020-06-12 18:42:30 +01:00
Klaus Basan
1238357749
String utility function for balanced quotes
2020-06-12 18:42:26 +01:00
Mat Sutcliffe
07e64099b1
Ref T725 Extend CLogMessage to allow ICoordinateGeodetic arguments,
...
using a system of traits to select the stringifier corresponding to the argument type.
2019-10-23 00:38:25 +02:00
Mat Sutcliffe
dd86be3335
String simplification (accent removal) using Unicode decomposition
2019-09-16 22:40:44 +01:00
Klaus Basan
878a207f85
Ref T660, utility functions
2019-09-16 22:40:23 +01:00
Klaus Basan
213ca4274d
Airline group functions
2019-05-23 13:13:00 +02:00
Mat Sutcliffe
a6facc7e7c
Ref T552 Removed old unused string-based QDataStream operator that would cause ambiguity with new ones.
2019-04-12 13:30:54 +01:00
Klaus Basan
d875df6fc7
Remove the comments from qss
2019-04-11 22:12:19 +01:00
Klaus Basan
c899bfbea7
Minor tweak remove redundant "/' and string message improvements
2019-04-11 22:11:40 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
6bd3a50ed8
Ref T265, Ref T430, Ref T473 improved validator for parts
2019-02-22 20:23:54 +00:00
Mat Sutcliffe
5443701e09
Fixed return by const value.
2019-02-22 20:23:45 +00:00
Klaus Basan
b0814726d8
Status message without tabs/CR
2018-11-04 17:42:46 +01:00
Klaus Basan
eed3eeb700
Ref T415, utility function to parse "ini"-file
2018-11-04 17:42:45 +01:00
Klaus Basan
61629231ff
Ref T365, utility functions
2018-09-22 01:26:34 +02:00
Klaus Basan
c3cf39e102
Renamed to simplifyAccents (actually the chars are not removed, but replaced)
2018-09-17 18:28:29 +02:00
Klaus Basan
6c9804a1df
Ref T353, clean string used with remarks and route
...
* use ASCII only characters
* simplify string
* max. length
2018-09-17 18:28:24 +02:00
Klaus Basan
d60b900b84
Ref T323, functions to detect 0-9 chars since isDigit detects a lot of other chars
2018-09-12 17:40:21 +02:00
Klaus Basan
a9d728f451
Ref T338, utility functions / parsing
...
- nthIndexOf
- measurement unit can be parsed case insensitive
- CSimpleCommandParser::remainingStringAfter from n-th space
- improved frequency parsing
2018-09-12 17:01:41 +02:00
Klaus Basan
3d2d999f7a
Ref T338, style
2018-09-09 02:55:16 +02:00
Klaus Basan
183280fa75
Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
...
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.
- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00
Klaus Basan
018a60f23c
Ref T304, array index fix if "7za.exe" is not available
2018-08-13 23:52:39 +02:00
Klaus Basan
87b96f8910
Cleanup: toFormattedQString was not really used and just redirecting toQString
...
* marked deprecated
* and replaced by toQString
2018-06-13 13:59:35 +02:00
Klaus Basan
a7a1674faa
Ref T264, string utility function
2018-05-22 13:35:01 +02:00
Klaus Basan
68d4243ca7
Ref T258, utility functions
2018-02-22 01:26:54 +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
0addfa8281
Ref T241, made QStrings static const
2018-02-05 03:45:27 +01:00
Klaus Basan
f049900e1f
Ref T223, use const values for standard pressure
...
* standardISASeaLevelPressure
* use static const values for standard pressure
* minor formatting
2018-01-15 23:00:34 +01:00
Klaus Basan
265869dc1f
Ref T210, boolToEnabledDisabled
2017-12-21 19:49:37 +01:00
Klaus Basan
379357d5d5
Formatting
2017-12-21 19:49:34 +01:00
Klaus Basan
afbf3f05c8
Ref T150, utility functions in URL list
...
* renamed to withAppendedPath
* findByHost
* addFailed utility functions
2017-09-24 19:54:30 +01:00
Klaus Basan
bb13a32c7c
Ref T111, utility function for local decimal point
2017-09-24 19:51:34 +01:00
Klaus Basan
b1295cd457
Ref T111, added utility functions used for swift plugin (dummy driver)
...
* new reader functions
* plugin info
2017-09-24 19:51:04 +01:00
Klaus Basan
32abac5d94
Ref T97, fuzzy search function
2017-09-24 19:49:11 +01:00
Klaus Basan
8299552812
refs #921 , string utility functions
2017-04-18 00:06:26 +01:00
Mathew Sutcliffe
5791de6860
refs #800 Fixed some implicit conversion warnings.
2016-12-13 19:00:26 +01:00
Mathew Sutcliffe
87eeac4e15
refs #710 Simple algorithms to replace several regular expressions.
2016-08-30 04:02:00 +01:00
Klaus Basan
f9922353c4
refs #720 , improved distributor and airline/livery detection
...
* mark data read from DB (req. for string key where existing key value is not reliable indicator for DB data)
* detect distributors by part of model string
* use a simplified name (no spaces, no special characters) to find a match
* allow to obtain model strings (=keys) as set and list
2016-08-26 20:54:52 +01:00
Klaus Basan
773f318a07
ref #701 , "improved countries"
...
* utility function for "accent free" strings
* added 3 letter ISO, alias names
* improved searching in countries
2016-07-03 13:22:25 +02:00
Klaus Basan
fcba4f2e75
refs #681 , value object for FSD setup
2016-06-29 15:38:06 +02:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
0c6780a392
refs #634 , fixes and improvements in selectors/completers
...
* upper case
* get raw data from selector
* sort completers
2016-04-11 20:16:24 +02:00
Mathew Sutcliffe
c7a0aa2fb4
refs #584 Moved Mixin::String to stringutils.h
2016-02-08 17:26:40 +00:00