Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
presets.c File Reference
#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
 

Function Documentation

◆ dt_presets_import_from_file()

int dt_presets_import_from_file ( const char *  preset_path)

◆ dt_presets_module_can_autoapply()

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().

◆ dt_presets_save_to_file()

void dt_presets_save_to_file ( const int  rowid,
const char *  preset_name,
const char *  filedir 
)

◆ dt_presets_set_autoapply_resolver()

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().

◆ get_preset_element()

static gchar * get_preset_element ( xmlDocPtr  doc,
gchar *  name 
)
static

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().

◆ get_preset_element_float()

static int get_preset_element_float ( xmlDocPtr  doc,
gchar *  name 
)
static

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().

◆ get_preset_element_int()

static int get_preset_element_int ( xmlDocPtr  doc,
gchar *  name 
)
static

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().

Variable Documentation

◆ _autoapply_resolver

dt_presets_autoapply_resolver_t _autoapply_resolver = NULL
static