Commit Graph

288 Commits

Author SHA1 Message Date
Klaus Basan
e85680f1b0 Improved livery filter bar and filer, accept virtual airline designators 2019-02-22 20:35:09 +00:00
Klaus Basan
48b18c7acd Resize columns of "other swift versions" to percentage 2019-02-22 20:34:59 +00:00
Klaus Basan
7baf5f238e Allow columns with percentage width 2019-02-22 20:34:59 +00:00
Klaus Basan
314c48d5d1 Filter minor style/refactoring
* use normal functions instead of slots
* some renamings
2019-02-22 20:24:02 +00:00
Klaus Basan
4aec50ccfc Ref T478, removed the critical functions + adjustments
The code was never used as we decided not to translate swift, but do it all in English. So that code branch was never executed and I have removed the above 4 function + required adjustments.

* getTranslationContextChar
* getColumnNameChar
* getColumnToolTipChar
* getTranslationContextChar
2019-02-22 20:23:59 +00:00
Klaus Basan
000a03b2c9 Ref T265, Ref T430, Ref T473 CG/parts in UI model 2019-02-22 20:23:58 +00:00
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +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
1b4ed84e1b CListModelBase and CViewBase: reduce the number of template parameters
by relying on what can easily be deduced from the first parameter(s).
2019-02-22 20:23:44 +00:00
Mat Sutcliffe
5295473c4f Added fixme comments marking undefined behaviour in CColumn. 2019-02-22 20:23:44 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
684ffeb671 Fixed clazy warnings: rule of zero/three/five. 2019-02-22 20:23:35 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
e40af8132c Fixed clazy warnings: missing Q_OBJECT. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Roland Rossgotterer
beec08f70c Fix doubled period in source filename 2018-12-11 10:54:44 +01:00
Roland Rossgotterer
11f328b5c3 Split up listmodelbase
This is to reduce the number of symbols per single object file which caused MinGW 32 bit build to fail.
- Moved CListModelBaseNonTemplate into its own file
- Separated the template instantiations into domain specific source files
2018-12-11 10:54:43 +01:00
Klaus Basan
9f408e8319 Fixes in model set form as described by RP
https://swift-project.slack.com/archives/G96QTUBEG/p1544353355002400

* fixed missing radio button groups
* return values for some functions to detect "changes"
* minor style fixes
2018-12-10 03:41:16 +01:00
Klaus Basan
82324cb512 Ref T442, ATC station treeview
* store expand/collapsed state
* resize
* clear
2018-12-07 02:37:14 +01:00
Klaus Basan
6116797727 Ref T442, getColumns from view/model 2018-12-07 02:37:14 +01:00
Klaus Basan
02213e860d Ref T442, style 2018-12-07 02:37:14 +01:00
Klaus Basan
45e34001a8 Ref T442, moved tree model into own class
* columns can be used as with list model
* own class/file
2018-12-05 04:03:59 +01:00
Klaus Basan
8c74d8c386 Ref T442, column formatter utility functions 2018-12-05 04:03:44 +01:00
Klaus Basan
34cb0abdf0 Ref T442, style 2018-12-05 04:03:43 +01:00
Klaus Basan
b48e059930 Model style 2018-12-01 19:23:08 +01:00
Klaus Basan
0da8d85999 Ref T442, utility functions for logically sorting by suffix 2018-11-30 22:02:04 +01:00
Klaus Basan
9f6cb9a72f Allow to delete data directory from application view
* allow to re-init applicazion list (needed because directories can be deleted)
* context menu for "delete data directory"
2018-11-29 20:54:25 +01:00
Klaus Basan
c8ba6946bd Allow to enable HTML color (as tooltip must be "black") 2018-11-22 19:55:02 +01:00
Klaus Basan
753511cafb HTML overlay status message, smaller form of overlay message
* improved toHTML (with icon)
* overlay message
2018-11-22 19:54:51 +01:00
Klaus Basan
254abdf68b Style 2018-11-16 02:49:55 +01:00
Klaus Basan
b937f10992 Hotkey dialog style 2018-11-16 02:49:55 +01:00
Klaus Basan
a543ac89ae Status message model with tooltip 2018-11-04 17:42:46 +01:00
Klaus Basan
d7380966de Style 2018-11-04 17:42:44 +01:00
Klaus Basan
f4822b69dd Allow to save "selected objects" only as JSON 2018-11-04 17:42:42 +01:00
Roland Winklmeier
f6ea2a9107 Move CInputManager from singleton to CApplication member
The main reason why CInputManager was singleton is the easy access across
the code. That had the negative side effect that time of destruction was
at a very late stage of the shutdown and could not be controlled by us.
My moving it to CApplication, the access is equally easy (using sApp) and
allows to be cleaned up properly during graceful shutdown.

ref T391
2018-11-04 17:42:42 +01:00
Roland Winklmeier
c683d59994 Correct Longitude column index in CAirportListModel 2018-10-08 22:12:33 +02:00
Roland Winklmeier
ebe23a694b Fix GCC7 fallthrough warnings 2018-10-05 17:39:58 +02:00
Klaus Basan
72a7b67e7a Ref T362, style and minor fixes 2018-10-05 17:39:57 +02:00
Klaus Basan
e89b29fe1f Ref T343, use 7digit id 2018-09-12 17:40:29 +02:00
Klaus Basan
8c10237dce Ref T343, style 2018-09-12 17:40:27 +02:00
Klaus Basan
ece54729ef Views style 2018-09-08 15:36:24 +02:00
Klaus Basan
2fcb5fd304 Fixed missing compare index + style for matching statistics 2018-08-26 15:26:57 +02:00
Klaus Basan
6807eb8d35 Application info: Checking if directory exists (swift version exists) plus fixes in property functions 2018-08-17 02:25:43 +02:00
Klaus Basan
9bb3f98489 Style 2018-08-13 02:59:35 +02:00
Klaus Basan
fe4fd31688 Renamed to FullInterpolation (formerly VtolInterpolation) 2018-08-09 01:39:21 +02:00
Klaus Basan
ff9d6147c8 Ref T299, pitch bank heading info 2018-08-07 20:41:03 +02:00
Klaus Basan
fe99eb0fed Style and some view columns/UI renamings 2018-08-01 03:06:26 +02:00
Klaus Basan
c8fc50e787 Ref T296, adding scenery offset as situation member plus utility functions
* frontOrNull/backOrNull
* added offset in model
* style/renaming
2018-07-31 01:43:36 +02:00
Klaus Basan
bf36a69be0 Stashed data file can be dropped to model view
* utility functions
* style changes / renamings / slots -> normal functions
* extra flag to enable file drop (and changed signatures)
* split view load function into 2 parts, one can use passed file parameter
2018-07-25 02:37:02 +02:00