old-version-gtk3
Zwerg12 2020-07-09 16:29:21 +02:00
rodzic 81d419fdd7
commit 0b4a1402f7
3 zmienionych plików z 21 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,8 @@
#include <calculations.h>
/* TODO
* Azimuth and Elevation are wrong in the calculation of the position of the Milky Way */
/* Convert degree to radiant */
float calc_deg_rad (float deg) {
@ -144,7 +147,9 @@ void calc_convert_rotation_horizontal(float right_ascension, float declination,
float azimuth = atan( sin(time_sidereal-right_ascension) / ( sin(latitude)*cos(time_sidereal-right_ascension) - cos(latitude)*tan(declination) ) );
float elevation = asin( sin(latitude)*sin(declination) + cos(latitude)*cos(declination)*cos(time_sidereal-right_ascension) );
/* explanation missing!! */
/* TODO
* explanation missing!! */
azimuth = calc_rad_deg (azimuth);

Wyświetl plik

@ -6,6 +6,11 @@
#include<webconnection.h>
#include<handler.h>
/* TODO
* Clock should show allways TWO digits
* Use system time zone instead of UTC
* Make everything translatable */
GtkWidget *window;
GtkWidget *button_search;
GtkWidget *button_now;

Wyświetl plik

@ -1,5 +1,13 @@
#include <webconnection.h>
/* TODO
* From https://nominatim.org/release-docs/develop/api/Search/
* Language of results
* accept-language=<browser language string>
* Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
* Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.
*/
/* Below is needes for Curl to cummunicate with Nominatim */
struct MemoryStruct {
char *memory;
@ -27,6 +35,8 @@ size_t WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *user
return realsize;
}
/* TODO
* Make this function look nicer */
struct Output *search_nominatim (const gchar *searchtext){
CURL *curl;