Commit Graph

166 Commits

Author SHA1 Message Date
Klaus Basan
e545288630 refs#325, made simulator component CDockWidgetInfoAreaComponent compliant, finetuning with resizing in some components
* updates can be skipped, when widget is invisible
* current tab? only current tab updates
* reduced resize frequency in some cases
2014-10-07 13:10:44 +02:00
Klaus Basan
7304d8bd3e refs #325, name variant pair allows test for existing values
* equal value updates can be skipped
* equalsQVariant in CValueObject
* resizing parameter for views
2014-10-07 13:10:43 +02:00
Klaus Basan
f10e625b7f Added tooltips for some columns
* tooltips in views
* new helper method with tooltip
2014-10-07 13:10:42 +02:00
Klaus Basan
ae0ef4283c Display number of table rows in tab
* countChanged event
* applied in components
2014-10-07 13:10:41 +02:00
Klaus Basan
84b5cee7d8 Fixed / Improved timer handling in timer based component 2014-10-07 13:10:39 +02:00
Klaus Basan
ef5f5bde0f Formatting, new icons, minor tweaks 2014-10-07 13:10:37 +02:00
Klaus Basan
88951318de refs #325, using async updates in ATC station component 2014-10-07 13:10:30 +02:00
Klaus Basan
dc3eff1c1f refs #325, added async update member function to CListModelBase / CViewBase (+ resize modes)
* model:
** required a non templated base class for Q_OBJECT / slots
** added worker for thread, QConcurrent is not used as it does not work with template classes
* views:
** added cpp file for view base class
** added template parameter for container in views
** different modes how resizing will be applied
2014-10-07 13:10:28 +02:00
Klaus Basan
89dc0fb289 refs #325 update worker base class for asynchronous updates 2014-10-07 13:10:27 +02:00
Klaus Basan
59e409b0fb refs #325, reduced loading in aircraft component 2014-10-07 13:10:25 +02:00
Klaus Basan
d9cc02844d refs #325, reduced loading in users component 2014-10-07 13:10:24 +02:00
Klaus Basan
530d4b89ef refs #325, reduced loading in ATC stations component 2014-10-07 13:10:23 +02:00
Klaus Basan
f7719fb08b refs #325, improved info area
* signal when tab bar is changed (goal: reload in components when info area changes)
* tab bar locking (avoid unintended floating)
2014-10-07 13:10:22 +02:00
Klaus Basan
9e6a9a28cb Fixed bug in CListModelBase, avoid double sorting 2014-10-07 13:10:21 +02:00
Klaus Basan
2a11411bc0 refs #325 added sort flag for models / views, allow to update, but not to sort 2014-10-07 13:10:19 +02:00
Klaus Basan
5d6713032f Formatting, new icons 2014-10-07 13:10:17 +02:00
Klaus Basan
b989dec74d Slightly changed ATC stations appearance, reload ATIS / load METAR 2014-10-07 13:08:23 +02:00
Klaus Basan
2d1226fefc refs #325, reduced loading in ATC stations component 2014-10-07 13:08:22 +02:00
Klaus Basan
6e2204beeb refs #325, using CDockWidgetInfoAreaComponent in components 2014-10-07 13:08:21 +02:00
Klaus Basan
1cba31541b refs #325, supporting class to make parent dock widget and info area available to a component.
By that, the component has access to "isWidgetVisible", "isFloating" etc.
2014-10-07 13:08:19 +02:00
Klaus Basan
1ce7b11988 Formatting, renaming 2014-10-07 13:08:18 +02:00
Klaus Basan
936cc7c147 refs #325, as preparation to reduce loading I need to find out when an info area is visible.
Existing functions visible() / isHidden() are not suitable, as those represent "technical visibility".
We need a logical visibility telling us if the user can see / has selected the corresponing dockable widget.

* New base class info area (where dockable widgets are placed)
* Adjusted derived component (currently 1)
* Cleaned up old code in floatAllWidgets
2014-10-07 13:08:17 +02:00
Klaus Basan
2d7fe607fe Fixed station list tooltips 2014-10-07 13:08:16 +02:00
Mathew Sutcliffe
d1d276c559 refs #316 Reordered header includes. 2014-10-04 22:17:14 +01:00
Mathew Sutcliffe
f7e2523eaa refs #316 Blackgui changes: using CLogMessage and removed sendStatusMessage signals. 2014-10-04 22:16:48 +01:00
Mathew Sutcliffe
ce6cdf12a7 refs #316 Added CLogMessage for logging messages, and corresponding changes to CStatusMessage and CTextMessage. 2014-10-04 22:16:35 +01:00
Klaus Basan
bce67b7873 refs #319, refs #322 user can force reload and clearing the data in views
* context menu
* timer based component can fire directly
* View base class (non templated) so it can use Q_OBJECT
2014-09-11 12:08:09 +02:00
Klaus Basan
2127238ed4 Doxygen, renaming, formatting
* Formatting, renaming to current schema
* Minor tweaks
2014-09-09 20:07:27 +02:00
Klaus Basan
e4545f23d2 refs #322, included context menu and methods for injecting test data (ATC stations) in GUI 2014-09-09 20:07:23 +02:00
Klaus Basan
473f8cd608 Debug messages to monitor model reloading/sorting, will be removed later 2014-09-09 20:07:19 +02:00
Klaus Basan
62010a09c8 refs #319, Doxygen, headers, formatting 2014-09-09 20:07:17 +02:00
Klaus Basan
fc84673bb9 Handled performance issues and bugs noticed during testing of refs #319 / refs #322
* discussion: https://dev.vatsim-germany.org/boards/22/topics/2027?r=2040#message-2040
* fixed bug with ATC station component, wrong signals for booked stations
* booked stations loading to frequently (for each minor change such as online), changed to timestamp based concept
* update booked stations with receiving ATIS/voiceroom to online
* CDigestSignal class: new class and methods for collecting signals, avoiding too many signals - one of the cures for the performance issues
* fixed bug found during testing, missing start for timers when connecting to network
2014-09-09 20:07:16 +02:00
Klaus Basan
538cee89b2 refs #319, cleaned up views for formatters, in the same step fixed bug sort column based on view mode was missing 2014-09-09 20:07:15 +02:00
Klaus Basan
983a8d5d30 Using QMetaType::Type instead of QVariant::Type
Auto as per review of refs #319
2014-09-09 20:07:13 +02:00
Klaus Basan
9567d1aedf refs #319, added column formatters
* Specialized formatters (e.g. for bool, for PQs etc.) allow specialized look and feel for each column
* Fixed isValidComFrequency used for formatters
* Changed models to use formatters
* Outdated propertyByIndexAsString methods removed
* During the above tasks: fixed override keyword in some places
* Column tooltips
* refs #323, wrong column name fix
2014-09-09 20:07:12 +02:00
Klaus Basan
674a0b5665 During refs #319, refactoring of QLed (as it is used with a LED formatter)
* renamed to CLedWidget
* added missing SVG
* rendering to pixmap possible
* QScopedPointer<QSvgRenderer>
* Led, copyright
2014-09-04 01:37:33 +02:00
Roland Winklmeier
adc25f5f3d refs #76 CForeignWindows
Provides static methods to get QWindow pointers to known simulators
2014-08-26 22:51:36 +02:00
Roland Winklmeier
53a42e3dd8 refs #76 cross platform class to find and return pointer to a foreign window 2014-08-26 22:51:33 +02:00
Klaus Basan
2089ab89a1 Fixed qLed state, wrong if temporary icon is used
* Using state instead of just bool
2014-08-24 02:47:09 +02:00
Klaus Basan
d88c1bb252 refs #314, changed models and views to new CPropertyIndex approach 2014-08-24 02:47:01 +02:00
Klaus Basan
3fb5087ea8 Renaming, header, Doxygen, formatting (during refs #314) 2014-08-24 02:45:52 +02:00
Roland Winklmeier
f76e0bc957 refs #313 Change GUI classes to use new hotkey settings wrapper classes 2014-08-19 15:30:04 +02:00
Klaus Basan
98942a6395 refs #304, changed font settings
* QFontDialog is not working, as it is affected by the style sheets itself
* Added font settings to the GUI settings tab
* Added font color dialog for fonts
* Several utility methods
2014-08-14 01:28:22 +02:00
Klaus Basan
bbb342b905 Naming conventions, typos 2014-08-14 01:23:52 +02:00
Klaus Basan
600ea2b803 Fixed several issues detected during testing / review (refs #304)
* MS report 1-5 https://dev.vatsim-germany.org/issues/304#change-1800
* Clang warning https://dev.vatsim-germany.org/boards/22/topics/1982?r=1997#message-1997
* Wrong indexes for dockable widgets, RW: https://dev.vatsim-germany.org/issues/304#note-13
* Fixed wrong offset in Fsuipc class
* Improved position handling for floating widgets opened 1st time
2014-08-05 23:32:11 +02:00
Klaus Basan
3c12cd7b30 refs #299, dockable widgets improvements
* preferred size instead of a auto adjustment for floatable widgets
* hack for hiding the tabbar (it still cosnumes space)
2014-08-05 23:32:09 +02:00
Klaus Basan
d3858a8b37 Formatting, Doxygen, Headers 2014-08-05 23:32:08 +02:00
Klaus Basan
cb350d9086 Several fixes related to refs #304
* removed #include <QtDesigner/QDesignerExportWidget>
* correct targets swiftcore / swiftgui
* Annotated possible error of QFontDialog / style sheet compliance
+ Set sizePolicy to preferred due to RWs rewiew ("over sized drawing")
2014-08-05 23:32:07 +02:00
Klaus Basan
b93b95fd73 Renamed infobarstatus to infobarstatuscomponent (CInfoBarStatusComponent) 2014-08-05 23:32:05 +02:00
Klaus Basan
a78422bf3e Allow auto ajdust for floating widgets (via menu)
refs #299
2014-08-05 23:32:04 +02:00