diff --git a/CHANGELOG b/CHANGELOG index c4ba0a2..4c68088 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,4 +3,9 @@ Version 0.1.0: Version 0.2.0: - Improve UI to fit better on mobile devices - - UI bug fixes \ No newline at end of file + - UI bug fixes + +Verson 0.3.0: + - Add location service to find users current location + - Add support for languages + - Add German translation \ No newline at end of file diff --git a/README.md b/README.md index 1f2a88b..0512d6d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This small program should answer all these questions. +4. Find the position of the moon at a spesific time -- Implemented and equations seem to be sufficiently precise (~ ± 2°) +5. Present all calculated data in the GUI -- Most of the data is showen +6. Create the location search -- A simple offline search is implemented now more will follow --7. Implement "smarphone functionality" e.g. find location via GPS ++7. Implement "smarphone functionality" e.g. find location via GPS +8. Insert a map view with OSM +9. Visualise important data direktly on the map ``` @@ -36,12 +36,11 @@ Some of these formulas are from the excellent book by Jean Meeus "Astronomical A - Libadwaita is used to make the GUI adaptive. - Shumate is used to show a map. - Libgweather is used for the offline search functionality. +- GeoClue is used to get the users current location. ## Build -At the moment this application is NOT fully functional. - ```diff git clone https://gitlab.com/Zwarf/picplanner.git cd picplanner @@ -51,18 +50,11 @@ ninja ninja install ``` +Or download the Flatpak from Flathub + ## Screenshots Desktop Size, Light Theme -screenshot-large -screenshot-large -screenshot-large -screenshot-large -screenshot-large -screenshot-large - -## Screenshots Mobile Size, Light Theme - -screenshot-large -screenshot-large -screenshot-large -screenshot-large +screenshot-large +screenshot-large +screenshot-large +screenshot-large \ No newline at end of file diff --git a/data/de.zwarf.picplanner.metainfo.xml.in b/data/de.zwarf.picplanner.metainfo.xml.in index 7d8a564..97f636c 100644 --- a/data/de.zwarf.picplanner.metainfo.xml.in +++ b/data/de.zwarf.picplanner.metainfo.xml.in @@ -26,28 +26,20 @@ - Overview with map and some controls - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-1.png - - - Change date and time in the overview - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-2.png - - - Information about celestial bodies - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-3.png + Overview with a map and some basic information + https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-1.png The sun page - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-4.png + https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-2.png The moon page - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-5.png + https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-3.png The milky way page - https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-6.png + https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-4.png @@ -81,6 +73,16 @@ + + +

New features have been added:

+
    +
  • Add location service to find users current location
  • +
  • Add support for languages
  • +
  • Add German translation
  • +
+
+

UI improvements and smaller bug fixes

diff --git a/meson.build b/meson.build index 2440cd4..640c860 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('picplanner', 'c', - version: '0.2.0', + version: '0.3.0', meson_version: '>= 0.50.0', default_options: [ 'warning_level=2', 'c_std=gnu11', diff --git a/screenshots/picplanner-1.png b/screenshots/picplanner-1.png new file mode 100644 index 0000000..7be7b25 Binary files /dev/null and b/screenshots/picplanner-1.png differ diff --git a/screenshots/picplanner-2.png b/screenshots/picplanner-2.png new file mode 100644 index 0000000..914a73b Binary files /dev/null and b/screenshots/picplanner-2.png differ diff --git a/screenshots/picplanner-3.png b/screenshots/picplanner-3.png new file mode 100644 index 0000000..3298cf5 Binary files /dev/null and b/screenshots/picplanner-3.png differ diff --git a/screenshots/picplanner-4.png b/screenshots/picplanner-4.png new file mode 100644 index 0000000..fe20bf1 Binary files /dev/null and b/screenshots/picplanner-4.png differ diff --git a/screenshots/picplanner.png b/screenshots/picplanner.png deleted file mode 100644 index 20d1cb7..0000000 Binary files a/screenshots/picplanner.png and /dev/null differ diff --git a/screenshots/screenshot-large-1.png b/screenshots/screenshot-large-1.png deleted file mode 100644 index 1709890..0000000 Binary files a/screenshots/screenshot-large-1.png and /dev/null differ diff --git a/screenshots/screenshot-large-2.png b/screenshots/screenshot-large-2.png deleted file mode 100644 index 554419e..0000000 Binary files a/screenshots/screenshot-large-2.png and /dev/null differ diff --git a/screenshots/screenshot-large-3.png b/screenshots/screenshot-large-3.png deleted file mode 100644 index 7713bb4..0000000 Binary files a/screenshots/screenshot-large-3.png and /dev/null differ diff --git a/screenshots/screenshot-large-4.png b/screenshots/screenshot-large-4.png deleted file mode 100644 index caf83f2..0000000 Binary files a/screenshots/screenshot-large-4.png and /dev/null differ diff --git a/screenshots/screenshot-large-5.png b/screenshots/screenshot-large-5.png deleted file mode 100644 index 796eff0..0000000 Binary files a/screenshots/screenshot-large-5.png and /dev/null differ diff --git a/screenshots/screenshot-large-6.png b/screenshots/screenshot-large-6.png deleted file mode 100644 index 86ecf8e..0000000 Binary files a/screenshots/screenshot-large-6.png and /dev/null differ diff --git a/screenshots/screenshot-small-1.png b/screenshots/screenshot-small-1.png deleted file mode 100644 index ed8c2f1..0000000 Binary files a/screenshots/screenshot-small-1.png and /dev/null differ diff --git a/screenshots/screenshot-small-2.png b/screenshots/screenshot-small-2.png deleted file mode 100644 index e3b2234..0000000 Binary files a/screenshots/screenshot-small-2.png and /dev/null differ diff --git a/screenshots/screenshot-small-3.png b/screenshots/screenshot-small-3.png deleted file mode 100644 index 9346a2d..0000000 Binary files a/screenshots/screenshot-small-3.png and /dev/null differ diff --git a/screenshots/screenshot-small-4.png b/screenshots/screenshot-small-4.png deleted file mode 100644 index a22c7d4..0000000 Binary files a/screenshots/screenshot-small-4.png and /dev/null differ diff --git a/src/window/location-service.c b/src/window/location-service.c index c7cb46e..3e5c64e 100644 --- a/src/window/location-service.c +++ b/src/window/location-service.c @@ -1,3 +1,22 @@ +/* + * location-service.c + * Copyright (C) 2021 Zwarf + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + #include "location-service.h" /* GeoClue */ @@ -39,7 +58,7 @@ set_user_location (GObject *source_object, double latitude; double longitude; GError *error = NULL; - static GClueLocation *location; + static GClueLocation *location; /* How can one free this? */ simple = gclue_simple_new_with_thresholds_finish (res, &error); diff --git a/src/window/location-service.h b/src/window/location-service.h index 662d7b3..6bedd1b 100644 --- a/src/window/location-service.h +++ b/src/window/location-service.h @@ -1,3 +1,22 @@ +/* + * location-service.h + * Copyright (C) 2021 Zwarf + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + #pragma once #include