Commit Graph

40 Commits

Author SHA1 Message Date
Gergely Polonkai e745312ffe Remove err when checking for note in save file
Note is not required to be present in any save file. However,
get_by_xpath() sets err if it is not, which will never be checked for.
2014-07-17 23:11:24 +02:00
Gergely Polonkai 5671a751a9 Fix error messages in AgChart’s get_by_xpath() 2014-07-17 23:08:34 +02:00
Gergely Polonkai 2656df25cb Code beautification in `ag_chart_create_svg()` 2014-07-13 23:01:23 +02:00
Gergely Polonkai 69233be35e Add a dist attribute to XML <body> tags so planet icons won't collide 2014-07-13 22:44:15 +02:00
Gergely Polonkai a5d76beb23 Move the default xsl file to the resources 2014-07-11 15:03:54 +02:00
Gergely Polonkai 4144d6b4ff Remove CSS from the xsl file and the SVG generating code 2014-07-11 14:32:24 +02:00
Gergely Polonkai 9342ea63de Code beautification
Wrap long lines in all files
2014-07-11 10:33:04 +02:00
Gergely Polonkai 86e5438807 Add chart note support
It is saved under /chartinfo/note, and may be non-existant or an empty
tag.

Fixes #28
2014-07-09 00:38:04 +02:00
Gergely Polonkai 70d38a379d Add function ag_chart_get_planets() 2014-06-30 17:55:00 +02:00
Gergely Polonkai a6a5eff641 Add function ag_chart_add_planets() to add all known planets to the chart
This is required for a readable aspect table
2014-06-30 17:55:00 +02:00
Gergely Polonkai f744cb0150 Upgrade GLib dependency to 2.38 2014-06-30 14:12:27 +02:00
Gergely Polonkai 172518f472 Uncrustified sources 2014-06-27 21:11:17 +02:00
Gergely Polonkai c34ba055bc Add SVG export functionality 2014-06-27 17:15:57 +02:00
Gergely Polonkai f6e3f9e033 Change ag_chart_create_svg() to return the length of the SVG document
This is needed later for SVG export
2014-06-27 17:11:04 +02:00
Gergely Polonkai 306584ff70 Remove unnecessary gswe_planet_data_unref() calls
This introduced an ugly bug when changing from the Edit tab to Chart view
for the second time.
2014-03-30 09:32:49 +02:00
Gergely Polonkai f7e4c451b4 Make get_by_xpath() string return value a maybe-string 2013-10-05 03:23:38 +02:00
Gergely Polonkai 096111684e Updated for SWE-GLib 2.0 API 2013-10-04 00:16:55 +02:00
Gergely Polonkai ea3b038b57 Uncrustified sources
Also, added astrognome-uncrustify.cfg for later use
2013-09-21 18:37:27 +02:00
Gergely Polonkai 7fc700bf4e Made country and city values optional in save files
The <country> and <city> tags are still required, but may be empty
2013-09-21 15:50:16 +02:00
Gergely Polonkai 04b281c56b Added a required parameter to get_by_xpath() 2013-09-21 15:49:13 +02:00
Gergely Polonkai 616fc79d11 Made GVariant fetching code simpler 2013-09-21 15:47:48 +02:00
Gergely Polonkai 3fea7bf0a8 XSLT stylesheet is now loaded directly from file
Reading from memory kind of disabled XInclude possibility. Included
files must have been loaded one by one, which is a bit out of control.
2013-09-20 10:03:08 +02:00
Gergely Polonkai ffb00a00a0 Enabled XInclude for XSLT stylesheets 2013-09-20 09:58:31 +02:00
Gergely Polonkai c11bccc820 Added some cleanup functions 2013-09-19 23:17:58 +02:00
Gergely Polonkai fcb75f672b Now setting the CSS file path as a parameter
This will allow us to use separate CSS and XSLT files (e.g. themes) later
2013-09-19 23:16:52 +02:00
Gergely Polonkai a154118b6f Temporarily changing locale to C while generating the SVG image
With locales that have a character other than dot as a decimal separator,
the generated SVG is messed up (due to a libxml2 bug)
2013-09-19 23:14:37 +02:00
Gergely Polonkai 25e5abcbcb Finished SVG generating code 2013-09-19 19:56:25 +02:00
Gergely Polonkai cda22746ff Finished base XML generation code 2013-09-18 22:31:14 +02:00
Gergely Polonkai 2d93bca140 Started generating chart SVG 2013-09-18 11:41:20 +02:00
Gergely Polonkai 25ffd534e5 Implemented ag_chart_save_to_file 2013-09-18 11:22:23 +02:00
Gergely Polonkai ec75d9b4cd Moved XML creation code to AgChart's create_save_doc() 2013-09-18 11:22:07 +02:00
Gergely Polonkai c767124713 Fixed ag_chart_load_from_file() to return on xpath matching errors 2013-09-18 11:20:02 +02:00
Gergely Polonkai 573f05ceb4 Changed ag_chart_save_to_file() prototype to a more sane one 2013-09-18 10:06:12 +02:00
Gergely Polonkai 160339d888 Moved chart loading into ag_chart_load_from_file(), where it was intended to be 2013-09-18 10:05:24 +02:00
Gergely Polonkai 1541e381c5 Created ag-chart-error-quark and AgChartError enum 2013-09-18 10:02:23 +02:00
Gergely Polonkai a023606320 Added name, country and city properties to AgChart 2013-09-17 22:18:24 +02:00
Gergely Polonkai 9f7c8282aa Now adding all planets to the chart
The chart generating procedure will decide what to show and what not.
Since GNOME itself has a requirement for a slightly fast machine, it
is not very likely that it will cause speed issues.
2013-09-17 10:00:12 +02:00
Gergely Polonkai 8cc5755817 Renamed ret to chart in ag_chart_new() 2013-09-17 09:31:37 +02:00
Gergely Polonkai 58ac3786b1 Created ag_chart_new_full() instead of ag_chart_new() 2013-09-16 23:20:42 +02:00
Gergely Polonkai c407023bc9 Started implementing load/save functionality 2013-09-16 23:20:42 +02:00