Commit Graph

22 Commits

Author SHA1 Message Date
0cf6f171a6 Move data directory creation/query code to ag_get_user_data_dir() 2014-09-06 10:58:31 +02:00
3d2d61ef0a Merge branch 'master' into city-chooser 2014-08-21 01:25:16 +02:00
df8c954331 Change string_collate() so NULL and empty strings are equal. 2014-08-21 01:23:40 +02:00
8d82c48f5f Fix ag_db_get_chart_data_by_id() to recognise NULL values 2014-08-19 00:29:45 +02:00
cdb856d8ed Create a DEFAULT_ALTITUDE macro
It is set to 280.0, which is roughly the average altitude of dry land
2014-08-18 22:49:19 +02:00
512897cfd3 Create a DEFAULT_ALTITUDE macro
It is set to 280.0, which is roughly the average altitude of dry land
2014-08-17 09:36:30 +02:00
085f2225ea Add debug messages to ag_db_save_identical() 2014-08-11 22:19:07 +02:00
e0b4d30b07 Implement chart deletion from database 2014-08-11 01:01:04 +02:00
aefbb8e4fa ag_db_save_identical can now compare based only on chart-related data
This way the chart won’t get recalculated on a name change.
2014-08-05 23:45:16 +02:00
b0e7daeec8 ag_db_save_chart() now sets save_data->db_id after a successful INSERT 2014-08-03 10:57:05 +02:00
ab12922d8a Rework chart save procedure
* Fixed some design flows: AgDb should not know about the window
* AgChart now only creates an AgDbSave structure, saving is done through
  AgWindow
2014-08-02 01:37:11 +02:00
defdc75eb0 Add missing va_end() to ag_db_select() 2014-08-02 00:26:49 +02:00
c79e24c709 Annotated AgDb functions 2014-08-01 10:51:15 +02:00
2e34b71f69 Add function ag_db_save_identical()
It compares two AgDbSave structs and returns TRUE if they are equal or
identical.
2014-07-31 21:22:53 +02:00
bee9ae363f Fix ag_db_select()
Using parameter @err for error collection was a bad idea. Creating
local_err instead.
2014-07-31 01:00:16 +02:00
ea9e4a73a5 Add function ag_db_get_chart_data_by_id()
It loads one single chart from the database and fills an AgDbSave
struct with its data
2014-07-31 01:00:03 +02:00
bfa4cf8cca Add AgDbError error type 2014-07-31 00:59:53 +02:00
8a654e9c0f Add function ag_db_get_chart_list() 2014-07-31 00:49:55 +02:00
e8d9386916 Add function ag_db_save_chart() to add/update charts in the database 2014-07-22 00:11:08 +02:00
98d08893ef Add struct AgDbSave together with the function ag_db_save_data_free() 2014-07-22 00:11:08 +02:00
0fc41ba545 Add missing closing bracket in ag_db_non_select() 2014-07-21 23:46:09 +02:00
4d64e707bc Add AgDb class 2014-07-20 23:18:45 +02:00