Commit Graph

30 Commits

Author SHA1 Message Date
Lars Toenning
3ffb8f689b Remove qmake files 2023-11-01 22:23:15 +01:00
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Lars Toenning
674710f146 clang-format samples 2023-04-18 16:07:19 +02:00
Roland Rossgotterer
9fa3221abc Replace deprecated endl with Qt::endl 2020-06-12 18:42:54 +01:00
Klaus Basan
e63129267d Ref T786, smaller improvements
* allow to use ICoordinateGeodetic, not the CCoordinateGeodetic implementation only
* allow to init weather grid by initial ICoordinateGeodetic
2020-06-12 18:42:52 +01:00
Klaus Basan
5ef25d4a41 Ref T786, fixed weather sample
* RR found that no alt value means a huge number of grid points is parsed
* see https://discordapp.com/channels/539048679160676382/539925070550794240/701762348506939693
2020-06-12 18:42:51 +01:00
Klaus Basan
8fe11c7633 Ref T786, used weather data printer code for weather description (to QString) 2020-06-12 18:42:50 +01:00
Klaus Basan
926684fb87 [Weather] Weather data printer
* removed slots
* typo
2020-06-12 18:42:48 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
18c96791b8 Disable console logging for sampleweatherdata 2019-02-22 20:36:21 +00:00
Roland Rossgotterer
9d1299741e [GFS] Use Pressure at MSL instead of surface
Pressure at surface level was the wrong value. All barometers and
altimeters use pressure reduced to mean sea level. Reading that value
from GFS instead returns much more reasonable values.

ref T537
2019-02-22 20:36:20 +00:00
Roland Rossgotterer
d50811c941 Fix sampleweatherdata to accept negative Lat/Lon values 2019-02-22 20:36:20 +00:00
Mat Sutcliffe
926082e756 Fixed clazy warning: signal CLineReader::quit hides signal QThread::quit. 2019-02-22 20:23:38 +00:00
Roland Winklmeier
c553d24d0e Move GFS weather data url into global setup
Summary:
The GFS weather data url so far was hard coded. With this commit, it is
moved into the global setup (bootstrap file).
Also the url type was changed from QUrl to CUrl, which simplified the
generation of the url including its query by using CUrl::appendQuery().
Finally it fixes sampleweatherdata, which did not have a CApplication yet.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T151

Differential Revision: https://dev.swift-project.org/D57
2017-11-20 15:57:08 +01:00
Mathew Sutcliffe
55b7a519d1 Fixed missing override keywords
Summary: Fixed GCC 6.3 missing override warnings.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D27
2017-06-23 18:18:05 +01:00
Roland Winklmeier
cf2c0d0f35 Use qt.conf to override plugin path on Mac OS
Summary:
QCoreApplication::addLibraryPath is called before QCoreApplication
was constructed and this caused the returned string to be different
depending from which working directory it was called and not always
the intended binary path.
Using qt.conf has a fixed prefix relative to the binary path
inside the application bundle and therefore is easier to be used
with a relative path.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D18
2017-05-05 23:08:40 +01:00
Roland Winklmeier
a3bc5c2936 Add <swiftInstall>/bin to library lookup paths
Summary:
This change adds <swiftInstall>/bin to the library lookup paths.
Without, QFactoryLoader is not able to find the Qt plugins
on Mac OS since on this platform the hard coded path defaults to
'foo.app/Contents/MacOS' for app bundles.
This change also adds the installation of QtPrintSupport framework which
is a dependency from cocoa platform plugin.

ref T48

Reviewers: kbasan, msutcliffe

Reviewed By: kbasan

Subscribers: jenkins

Maniphest Tasks: T48

Differential Revision: https://dev.swift-project.org/D15
2017-05-05 22:40:43 +01:00
Roland Winklmeier
45b0503896 Include Mac OS X platform in installer project
refs #615
2016-05-20 01:40:04 +02:00
Roland Winklmeier
364b16346d Fix samples header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:32:14 +02:00
Roland Winklmeier
18aeb9a034 Add missing license headers 2016-05-20 01:31:24 +02:00
Roland Winklmeier
5801962a99 Extend GFS data and CGridPoint with surface pressure and temperature 2016-04-10 16:17:23 +02:00
Roland Winklmeier
28292e3af7 Use CWeatherManager in sampleweatherdata
refs #612
2016-04-10 16:14:04 +02:00
Roland Winklmeier
f72c8e878b Use CCoordinateGeodetic instead of CLatitude and CLongitude
refs #612
2016-04-10 16:13:39 +02:00
Roland Winklmeier
48fdfbea3e Cloud layers have a base and a top
refs #579
2016-03-02 23:04:29 +01:00
Roland Winklmeier
17fc3c4ce8 Disable app_bundles on OS X 2016-02-22 01:00:15 +01:00
Roland Winklmeier
866c8d2db6 Add samples to doxygen group 'samples' and subgroups
refs #594
2016-02-16 20:01:42 +01:00
Roland Winklmeier
1ea2f34f75 Fix doxygen documentation in src, samples and tests
refs #594
2016-02-16 20:01:33 +01:00
Roland Winklmeier
bd6f0d0f25 Use namespace BlackSample in samples
refs #594
2016-02-16 20:01:28 +01:00
Roland Winklmeier
bd251b5de6 Fix license headers 2016-02-16 20:01:21 +01:00
Roland Winklmeier
c5fab7fb71 Weather data sample
New sample demonstrating how to use the weatherplugins to get and print
weatherdata around a geo position

refs #556
2016-01-28 01:36:35 +01:00