![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "history/presets.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "database/preset_repository.h"#include "metadata/exif.h"#include <libxml/xmlwriter.h>#include <libxml/parser.h>#include <libxml/xpath.h>#include <glib.h>#include <inttypes.h>
Include dependency graph for history/presets.c:Go to the source code of this file.
Functions | |
| void | dt_presets_save_to_file (const int rowid, const char *preset_name, const char *filedir) |
| static gchar * | get_preset_element (xmlDocPtr doc, gchar *name) |
| static int | get_preset_element_int (xmlDocPtr doc, gchar *name) |
| static int | get_preset_element_float (xmlDocPtr doc, gchar *name) |
| int | dt_presets_import_from_file (const char *preset_path) |
| void | dt_presets_set_autoapply_resolver (dt_presets_autoapply_resolver_t resolver) |
| gboolean | dt_presets_module_can_autoapply (const gchar *operation) |
Variables | |
| static dt_presets_autoapply_resolver_t | _autoapply_resolver = NULL |
| int dt_presets_import_from_file | ( | const char * | preset_path | ) |
load preset from file
Definition at line 155 of file history/presets.c.
References dt_exif_xmp_decode(), dt_free, dt_preset_repository_insert(), FALSE, get_preset_element(), get_preset_element_float(), get_preset_element_int(), IS_NULL_PTR, L, and preset.
Referenced by _import_preset_from_file().
| gboolean dt_presets_module_can_autoapply | ( | const gchar * | operation | ) |
Definition at line 230 of file history/presets.c.
References _autoapply_resolver, L, and TRUE.
Referenced by _presets_show_edit_dialog(), and tree_insert_presets().
save preset to file
Definition at line 37 of file history/presets.c.
References cleanup(), dt_exif_xmp_encode(), dt_free, dt_preset_free(), dt_preset_repository_get_by_rowid(), IS_NULL_PTR, L, and preset.
Referenced by _edit_preset_response(), and export_preset().
| void dt_presets_set_autoapply_resolver | ( | dt_presets_autoapply_resolver_t | resolver | ) |
Definition at line 225 of file history/presets.c.
References _autoapply_resolver, and L.
Referenced by dt_init().
Definition at line 107 of file history/presets.c.
References L, name, and value.
Referenced by dt_presets_import_from_file(), get_preset_element_float(), and get_preset_element_int().
Definition at line 147 of file history/presets.c.
References dt_free, get_preset_element(), L, name, and value.
Referenced by dt_presets_import_from_file().
Definition at line 139 of file history/presets.c.
References dt_free, get_preset_element(), L, name, and value.
Referenced by dt_presets_import_from_file().
|
static |
Definition at line 223 of file history/presets.c.
Referenced by dt_presets_module_can_autoapply(), and dt_presets_set_autoapply_resolver().