From 89e5f5c4dc7cc078cd51e5ce8370f74908afa0d5 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 21 Jul 2014 23:38:22 +0200 Subject: [PATCH 1/5] Code beautification in ag-chart.h --- src/ag-chart.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ag-chart.h b/src/ag-chart.h index 35dc89b..e9f8177 100644 --- a/src/ag-chart.h +++ b/src/ag-chart.h @@ -36,13 +36,16 @@ struct _AgChartClass { }; GType ag_chart_get_type(void) G_GNUC_CONST; + AgChart *ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system); + AgChart *ag_chart_load_from_file(GFile *file, GError **err); + void ag_chart_save_to_file(AgChart *chart, GFile *file, GError **err); @@ -53,18 +56,27 @@ void ag_chart_export_svg_to_file(AgChart *chart, void ag_chart_set_name(AgChart *chart, const gchar *name); + gchar *ag_chart_get_name(AgChart *chart); + void ag_chart_set_country(AgChart *chart, const gchar *country); + gchar *ag_chart_get_country(AgChart *chart); + void ag_chart_set_city(AgChart *chart, const gchar *city); + gchar *ag_chart_get_city(AgChart *chart); + gchar *ag_chart_create_svg(AgChart *chart, gsize *length, GError **err); + GList *ag_chart_get_planets(AgChart *chart); + void ag_chart_set_note(AgChart *chart, const gchar *note); + const gchar *ag_chart_get_note(AgChart *chart); #define AG_CHART_ERROR (ag_chart_error_quark()) From f0d4b444fcc1bbcce1673e155112a14599041b63 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 21 Jul 2014 23:38:33 +0200 Subject: [PATCH 2/5] Add TODO items --- TODO.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TODO.md b/TODO.md index 0f25cec..67fa260 100644 --- a/TODO.md +++ b/TODO.md @@ -10,6 +10,12 @@ Debian/Ubuntu, Arch or Gentoo. The features below will be implemented in the first release of Astrognome. +* Implement storage database. Database should contain a small preview image of + the chart. The selection screen should show a small box with the name and the + preview image. Upon mouseover it should blur/darken the image, and write some + chart data over it, like birth date and place +* Placidus .HOR import +* Chart cleanup and manipulation * Generate, load and save synastries * Calculate transits and progressions * Stepping through time without modifying the chart data @@ -26,6 +32,7 @@ The features below will be implemented in the first release of Astrognome. * Display hidden ascendent * Display Vertex/anti-Vertex * Symbol of Uranus and Pluto to use in charts +* Regiomontanus import ## Later features From 00ea28b870033214e1b0898f6929aacbe4b5725f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 21 Jul 2014 23:39:04 +0200 Subject: [PATCH 3/5] Add note to example chart --- data/examples/saved-chart.agc | 1 + 1 file changed, 1 insertion(+) diff --git a/data/examples/saved-chart.agc b/data/examples/saved-chart.agc index ee29b54..04328a6 100644 --- a/data/examples/saved-chart.agc +++ b/data/examples/saved-chart.agc @@ -20,4 +20,5 @@ placidus + This is my own chart. From c22c81cc61a5c9350f80625848828d703b661835 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 1 Aug 2014 01:09:12 +0200 Subject: [PATCH 4/5] Move away from popover GtkPopover cannot display accels, which is not ideal for the gear/view menu. Switching to normal menus instead. --- src/resources/ui/ag-window.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/ui/ag-window.ui b/src/resources/ui/ag-window.ui index 2deeeaf..37828aa 100644 --- a/src/resources/ui/ag-window.ui +++ b/src/resources/ui/ag-window.ui @@ -145,7 +145,7 @@ False win.gear-menu gear_menu - True + False @@ -168,7 +168,7 @@ False win.view-menu view_menu - True + False From c22fc02a2a7a02be5d197fec395032fa5e3927b2 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 1 Aug 2014 01:09:34 +0200 Subject: [PATCH 5/5] Add missing (but actually unnecessary) gtk.h include --- src/ag-window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ag-window.c b/src/ag-window.c index acc8354..5a91bb8 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -4,6 +4,7 @@ #include #include #include +#include #include