Commit Graph

1597 Commits

Author SHA1 Message Date
Klaus Basan
cbcafe2021 Use CStatusMessagesDetail in log component 2018-01-30 20:30:33 +01:00
Klaus Basan
9bbef8cc28 Component to show status messages and details, encapsulated so it can be used elsewhere
* originally part of log component
* now independent component

Motivated by Ref T231, Ref T232
2018-01-30 20:30:30 +01:00
Klaus Basan
ecf84eebf0 Some filter dialog / status message UI size adjustments 2018-01-30 20:30:27 +01:00
Klaus Basan
5d56c295f8 Dtor in view base 2018-01-30 20:30:23 +01:00
Klaus Basan
af75c88784 Cockpit UI improvements
* private slots -> private
* Stylesheet update for readonly
2018-01-30 20:30:18 +01:00
Klaus Basan
50eb93cf40 Ref T229, do not display a directory if same as default
* component: made overlay compliant
* sim.dir can be empty on a machine where no simulator is installed
* formatting
* utility functions
2018-01-30 20:30:12 +01:00
Klaus Basan
9a9abbe382 Min. sizes for copy component 2018-01-30 20:30:10 +01:00
Klaus Basan
d5c9a29618 Check the min. window sizes
* on smaller screens makes sure the min.sizes are not exceeded
* normally not changing min.sizes
2018-01-30 20:30:08 +01:00
Klaus Basan
464f64367e Minor mapping tool UI adjustments 2018-01-30 20:30:05 +01:00
Klaus Basan
bef22fcd27 Ref T229, "private slots" -> "private" 2018-01-30 20:30:03 +01:00
Klaus Basan
add47dfccd The settings / cache directory can be opened from UI [..] 2018-01-30 20:30:00 +01:00
Klaus Basan
d0141692a2 Config wizard can open help from "?" 2018-01-30 20:29:58 +01:00
Klaus Basan
7322c14d64 Ref T225, utility function, messages can be directly shown as overlay 2018-01-30 20:29:41 +01:00
Klaus Basan
eaf0095454 Ref T225, force stylesheet in CForm base class and used by all forms
* Allows to use stylesheet attributes like [readonly]
* changing to "readonly" applies correct stylesheet
2018-01-30 20:29:38 +01:00
Klaus Basan
0916c90038 Ref T225, use coordinate dialog in weather component
Remark: There was a redundant, also unfinished code in weather UI component for coordinate entry. This is now encapsulated in coordinate form/dialog.
2018-01-30 20:29:36 +01:00
Klaus Basan
a764ea7534 Ref T225, coordinate dialog 2018-01-30 20:29:34 +01:00
Klaus Basan
fc84bf6579 Ref T225, some coordinate form improvements and renamings 2018-01-30 20:29:32 +01:00
Klaus Basan
8e2a1b1b6f Ref T225, utility function to force stylesheet update
* Needed when setting UI element to readonly, and stylesheet is different for readonly
* see https://stackoverflow.com/q/48141205/356726
2018-01-30 20:29:29 +01:00
Klaus Basan
b574ede2e2 Some minor UI improvements
* buttons right aligned
* min-height in qss
* removed "public slots" where not needed
* QMessageBox when changing widget style (because it is so slow)
2018-01-30 20:29:24 +01:00
Klaus Basan
8273a9881f Ref T228, when using dialog, the dialog class will handle all saving.
Therefor "this->saveSettingsOnShutdown(false)"
2018-01-30 20:29:22 +01:00
Klaus Basan
ee8ea8e599 Ref T228, some renamings 2018-01-30 20:29:20 +01:00
Klaus Basan
558f3c3e56 Ref T228, key needs to be added, not description 2018-01-30 20:29:18 +01:00
Klaus Basan
ceedfdcc58 Minor UI adjustments 2018-01-30 20:29:10 +01:00
Roland Winklmeier
7c903001d5 Raw FSD message component and dialog
Maniphest Tasks: T222
2018-01-29 12:17:24 +01:00
Roland Winklmeier
d046738574 Convert private slots to private 2018-01-17 14:27:24 +01:00
Klaus Basan
95e28b0f89 Status bar can elide messages 2018-01-17 03:33:45 +01:00
Klaus Basan
519fce5a7a Ref T219, override pilot if valid / not only if having credentials
Remark: Also overrides if there is no password
2018-01-17 03:33:43 +01:00
Klaus Basan
3375ca1b25 Ref T219, renaming buttons/function to "override" 2018-01-17 03:33:41 +01:00
Klaus Basan
18c7d7cf59 Use overlay messages for validation 2018-01-17 03:33:39 +01:00
Klaus Basan
977130ce52 Overlay messages
* setReducedInfo, no timestamp/category
* color as parameter for shadow
2018-01-17 03:33:37 +01:00
Klaus Basan
fff9585c5d Minor UI adjustments 2018-01-17 03:33:35 +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
56adde399e Entry check 2018-01-15 22:50:37 +01:00
Roland Winklmeier
de4fe44156 Fix sending the correct pressure altitude for a pilot position
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet.
* This caused a wrong altitude in radar clients.
* We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation.
* MS Flight Simulators have the pressure altitude in the APIs available.
* For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level.
* Finally, we use the new available pressure altitude to send it to the FSD server.

Maniphest Tasks: Ref T223
2018-01-15 22:49:08 +01:00
Klaus Basan
718d5abf90 Ref T219, unified selector namings and keep editable even without DB completer data.
Also "private slots" -> "private"
2018-01-14 18:47:50 +01:00
Klaus Basan
1b1c4e588c Ref T199, do not use hardcoded names of file names 2018-01-14 18:47:48 +01:00
Klaus Basan
be58262f0f Ref T199, do not display 0 timestamp and re-display timestamp after copy 2018-01-14 18:47:41 +01:00
Klaus Basan
eac422f853 Ref T199, bootstrap (aka setup) cache explicitly initialized
* initMultiSimulatorCache
* initCaches detecting bootstrap and init via high level functions
2018-01-14 18:47:39 +01:00
Klaus Basan
6785529916 Stylesheet adjustments 2018-01-14 18:47:33 +01:00
Klaus Basan
3e1573e6b4 Ref T199, improved copy dialog
* filter disabling or hiding can be toggled
* bootstrap file can be shown/hidden
* fixed naming typo "setCacheMode"
2018-01-14 18:47:30 +01:00
Klaus Basan
7dd77b8ca3 Ref T220, use improved version of screen geometry detection
* use cmd.line argument to skip restoring if needed
* close splash screen as last
* log metrics info
2018-01-14 18:47:26 +01:00
Klaus Basan
350a75d672 Formatting 2018-01-14 18:47:24 +01:00
Klaus Basan
8e130aa895 Ref T220, cmd.line option for window resizing 2018-01-14 18:47:22 +01:00
Klaus Basan
ef25192424 Ref T220, register main widget 2018-01-14 18:47:20 +01:00
Klaus Basan
89bd648021 Ref T220, some changes in gui utility
* use qreal font metrics
* pixel ratio
2018-01-14 18:47:17 +01:00
Klaus Basan
48a85f80a8 Ref T220, min. height for Login Network component 2018-01-14 18:47:10 +01:00
Klaus Basan
e1d044521e Ref T220, save/store main window geometry/state 2018-01-14 18:47:08 +01:00
Klaus Basan
4c39b8923e Ref T220, set application name earlier and use member to get application name 2018-01-14 18:47:06 +01:00
Klaus Basan
b74652c94a Ref T220, renamed some main window / widget functions
Make clearer if dealing with a window or widget
2018-01-14 18:47:03 +01:00
Klaus Basan
d3480c41b3 Ref T220, fixed font settings so correct font is displayed
Remark: The qss based font info is not available at ctor call time, but only if everything is initialized
2018-01-14 18:47:01 +01:00