|
Enroute Flight Navigation
A navigation app for VFR pilots
|
Library of visual approach charts. More...
#include <VACLibrary.h>
Signals | |
| void | dataChanged () |
| Notifier signal. | |
| void | importTripKitStatus (double percent) |
| Progress report when importing a trip kit. | |
Public Member Functions | |
| VACLibrary (QObject *parent=nullptr) | |
| Constructor. | |
| ~VACLibrary () override | |
| Destructor. | |
| bool | isEmpty () const |
| Getter function for property of the same name. | |
| QList< GeoMaps::VAC > | vacs () |
| Getter function for property of the same name. | |
| Q_INVOKABLE void | clear () |
| Removes all VACs. | |
| Q_INVOKABLE GeoMaps::VAC | get (const QString &name) |
| Obtain VACs from the library. | |
| Q_INVOKABLE QString | importTripKit (const QString &fileName) |
| Import trip kit. | |
| Q_INVOKABLE QString | importVAC (GeoMaps::VAC vac) |
| Import VAC. | |
| Q_INVOKABLE void | remove (const QString &name) |
| Remove one VACs. | |
| Q_INVOKABLE QString | rename (const QString &oldName, const QString &newName) |
| Rename a VACs. | |
| Q_INVOKABLE QVector< GeoMaps::VAC > | vacsByDistance (const QGeoCoordinate &position, const QString &filter) |
| List of all VACs installed. | |
| Q_INVOKABLE QVector< GeoMaps::VAC > | vacs4Point (const QGeoCoordinate &position) |
| List of all VACs that contain a given point. | |
Properties | |
| bool | isEmpty |
| True if library is empty. | |
| QList< GeoMaps::VAC > | vacs |
| List of all VACs installed. | |
Library of visual approach charts.
This class collects visual approach charts that the user has installed. The list is automatically loaded on startup, and saved every time that a change is made.
Definition at line 39 of file VACLibrary.h.
| GeoMaps::VACLibrary::VACLibrary | ( | QObject * | parent = nullptr | ) |
Constructor.
| parent | Standard QObject parent |
| Q_INVOKABLE void GeoMaps::VACLibrary::clear | ( | ) |
Removes all VACs.
This method also deletes the associated files.
|
nodiscard |
|
nodiscard |
Import trip kit.
| fileName | Name of the trip kit file |
|
signal |
Progress report when importing a trip kit.
This signal is emitted when TripKits are imported. At the end of the import, the precise value 1.0 is emitted.
| percent | A number between 0.0 and 1.0. |
|
nodiscard |
|
inlinenodiscard |
Getter function for property of the same name.
Definition at line 78 of file VACLibrary.h.
| Q_INVOKABLE void GeoMaps::VACLibrary::remove | ( | const QString & | name | ) |
|
nodiscard |
|
nodiscard |
Getter function for property of the same name.
|
nodiscard |
List of all VACs that contain a given point.
This method returns the list of all installed VACs that contain the given point.
| position | Geographic position |
|
nodiscard |
List of all VACs installed.
This method returns the list of all installed VACs, sorted by distance to position (closest waypoints first).
| position | Geographic position used for sorting |
| filter | List of words |
|
read |
List of all VACs installed.
This property holds the list of all installed VACs, sorted alphabetically by name.
Definition at line 67 of file VACLibrary.h.