Commit Graph

338 Commits

Author SHA1 Message Date
Mat Sutcliffe
33209fa1eb Use std::as_const (C++17 feature) 2021-07-13 17:56:31 +01:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Mat Sutcliffe
89659fdeaa Issue #77 Break cyclic dependency statusmessage <-> jsonexception 2020-08-29 14:16:19 +01: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
2ae0352e75 [doxygen] Fix broken groupings 2020-08-01 19:48:37 +01:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
0d66a995ce Context menus to temp.disable parts (for single aircraft) and "0" zero pitch 2020-06-12 18:42:48 +01:00
Klaus Basan
9eaeb0f52b [UI] Menu separator 2020-06-12 18:42:44 +01:00
Klaus Basan
cfb2fa9d22 Split "Display and rendered" aircraft,
just to avoid accidentally disabling aircraft when using "follow"
2020-06-12 18:42:41 +01:00
Klaus Basan
7f6e3e5378 [Worker] In order to make background validation (worker) stoppable, using an "atomic bool stop flag"
Originally Ref T145, Ref T647
2020-06-12 18:42:36 +01:00
Klaus Basan
9dc85da42d Text message view, scroll down if sorted by timestamp 2020-01-07 19:57:28 +00:00
Klaus Basan
10a6b06a59 Ref T764, display flight plan of other aircraft 2020-01-07 19:57:23 +00:00
Klaus Basan
3705818445 Style 2020-01-07 19:57:18 +00:00
Klaus Basan
964948e3e8 [Performance] Load indicator in views
* Only use load indicator (per default) for DB object views
* In any case disable load indicator for status messages
2020-01-07 19:57:17 +00:00
Klaus Basan
80725e96dc [AFV] Ref T731, Ref T739 model/view for audio device info 2020-01-07 19:46:15 +00:00
Klaus Basan
e12dc3a73a Utility functions to sort text messages by timestamp (ascending/descending)
* compare function for text message
* resort function
* text message edit can display HTML text messages with ascending/descending timestamp
* made CTextMessageListModel -> CListModelTimestampObject
2019-09-16 22:41:30 +01:00
Klaus Basan
9a384ebc54 Ref T660, add simulator directory to model view for validation 2019-09-16 22:40:21 +01:00
Klaus Basan
f3ec7a8a68 Ref T660, utility functions
* check if model is in path
* addAsValidOrInvalidModel
* set corresponding simulator for validation
* display validation of empty model set
2019-09-16 20:29:57 +01:00
Klaus Basan
fd281a464c Always allow vertical resize in case we change from word wrap to non word-wrap 2019-09-16 20:29:38 +01:00
Klaus Basan
4eb10a4de8 Use shortcut function for CTRL A 2019-09-16 20:29:33 +01:00
Klaus Basan
c56775e815 Ref T637, allow 3 letter ICAOs in FP
* strict or lenient airport check
* allow to enter 3 letter ICAO codes in FP
2019-05-13 11:20:48 +02:00
Klaus Basan
0eed0f0f00 Doxygen 2019-05-13 11:20:48 +02:00
Klaus Basan
bbd6811c8d Improved vertical resizing / vertical header vor interactive vertical resizing 2019-05-13 11:20:45 +02:00
Klaus Basan
99c6a03b6f Support for an empty column 2019-05-13 11:20:44 +02:00
Klaus Basan
f6d68660c9 Allow to toggle word wrap in views 2019-05-13 11:20:43 +02:00
Klaus Basan
6d97db83ed Avoid multiline columns by disabling word wrap 2019-05-13 11:20:43 +02:00
Klaus Basan
d32e596c89 Remove the workaoround from QTableView, made stretching default 2019-05-13 11:20:42 +02:00
Klaus Basan
9436bce9be Minor mapping tool improvements, including scrollTo first highlighted row 2019-05-13 11:20:33 +02:00
Klaus Basan
68b53c2a74 Use pre-sorted messages
Ref T247 follow up
2019-04-11 22:12:18 +01:00
Klaus Basan
d51b26cf8d Aligned signatures for context and dialog to use sim.directory in validator
Ref T247 follow up
2019-04-11 22:12:17 +01:00
Klaus Basan
3bb5efcb29 Style Ref T592 related 2019-04-11 22:12:08 +01:00
Klaus Basan
0732c32922 Typo, style 2019-04-11 22:12:01 +01:00
Klaus Basan
30b65d6c36 Fixed selection of view rows when changing to filtered data
* return values for select functions
* select function must be "public override"
* reselect filtered data as well
2019-04-11 22:12:00 +01:00
Roland Rossgotterer
338d4d0cdb Use QScreen instead of QDesktopWidget::screen 2019-04-11 22:11:49 +01:00
Roland Rossgotterer
c82ff139fe Remove usage of deprecated qSort 2019-04-11 22:11:49 +01:00
Klaus Basan
781253a6ad Ref T571, radar view style 2019-04-11 22:11:47 +01:00
Klaus Basan
0a013fc906 Style 2019-04-11 22:11:46 +01:00
Klaus Basan
754f70a4ed Context menu to highlight the previously saved invalid models, originally Ref T247 2019-04-11 22:11:45 +01:00
Klaus Basan
8344f03cf3 Improved model validation dialog
* validation can be triggered async
* validation context menu can be disabled
* originally Ref T247
2019-04-11 22:11:44 +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
cc6adc6c40 Ref T539, tree view can select objects and hence refresh ATIS display
* select signal for tree view
* signal/slots and connects
2019-02-22 20:36:17 +00:00
Klaus Basan
22ae03bd3b Moved CEnableForDockWidgetInfoArea to ns BlackGui, was in BlackGui::Components for some reason
Discovered during T536
2019-02-22 20:36:12 +00:00
Klaus Basan
6fafaabbab Ref T534, enable overlay messages for view/tree view 2019-02-22 20:36:10 +00:00
Klaus Basan
474207eeab Ref T472, heap issue follow up + minor clean ups
* unfortunately the issue did still persist
* reason still unknown
* not expanding all seems to solve it

Maybe using the high level API without own model would be better
https://www.bogotobogo.com/Qt/Qt5_QTreeWidget.php
2019-02-22 20:36:10 +00:00
Klaus Basan
91050e198c Ref T529, view improvements
* protected slots -> protected
* removed unused functions
* load indicator timeout slot
2019-02-22 20:36:06 +00:00
Klaus Basan
c123c8bbca Using the same optimizations as in category tree view (Ref T472)
* isEmpty
* digest signal
2019-02-22 20:36:04 +00:00
Klaus Basan
fe05c2287b Ref T472, fixed expandAll/fullResizeToContents heap issue
* after updating the container update "expandAll" was called
* in onExpanded multiple "fullResizeToContents" occured, resulting in the healp issue below
* as it was a good idea anyway to reduce the slow "fullResizeToContents" anyway, so we are using a CDigestSignal
* this also solved the HEAP issue (for some reason I have NOT investigated)

HEAP[swiftdata.exe]: HEAP: Free Heap block 000001AB439BFFF0 modified at 000001AB439C00BC after it was freed
2019-02-22 20:36:04 +00:00
Klaus Basan
ac7958367b Ref T472, isEmpty for category tree 2019-02-22 20:36:04 +00:00
Klaus Basan
b2ec28e3cd Ref T529, model/views get sort order values 2019-02-22 20:36:03 +00:00
Klaus Basan
7cd1eb5ea5 Ref T529, automatically adjust model/view columns depening on status messages
Add/remove order column automatically
2019-02-22 20:36:02 +00:00