Commit Graph

14 Commits

Author SHA1 Message Date
Gergely Polonkai 2177ac2c41 Add a populated parameter to ag_db_chart_save_new()
If the caller intends to fill the whole struct, this should be set to TRUE
2014-09-28 01:31:31 +02:00
Gergely Polonkai 7fe82cdc68 Convert AgDbChartSave a boxed type 2014-09-26 21:13:06 +02:00
Gergely Polonkai 41f054bf6f Add GPL headers to all source files 2014-09-26 15:01:19 +02:00
Gergely Polonkai 4549c9fab3 Refactor AgDb
Rename functions and type names so they are clearly related to charts.
This is required to implement display theme manipulation in the database.
2014-09-13 01:05:08 +02:00
Gergely Polonkai e0b4d30b07 Implement chart deletion from database 2014-08-11 01:01:04 +02:00
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai bfa4cf8cca Add AgDbError error type 2014-07-31 00:59:53 +02:00
Gergely Polonkai 8a654e9c0f Add function ag_db_get_chart_list() 2014-07-31 00:49:55 +02:00
Gergely Polonkai e8d9386916 Add function ag_db_save_chart() to add/update charts in the database 2014-07-22 00:11:08 +02:00
Gergely Polonkai 98d08893ef Add struct AgDbSave together with the function ag_db_save_data_free() 2014-07-22 00:11:08 +02:00
Gergely Polonkai 4d64e707bc Add AgDb class 2014-07-20 23:18:45 +02:00