Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history.c File Reference
+ Include dependency graph for history/history.c:

Go to the source code of this file.

Macros

#define DT_IOP_ORDER_INFO   (dt_get_debug_flags() & DT_DEBUG_IOPORDER)
 

Functions

void dt_history_set_operation_name_resolver (dt_history_operation_name_resolver_t resolver)
 
const char * dt_history_operation_name (const char *operation)
 Resolve operation through the installed resolver, or return it unchanged.
 
void dt_history_item_free (gpointer data)
 
static void _remove_preset_flag (const int32_t imgid)
 
void dt_history_delete_on_image_ext (int32_t imgid, gboolean undo)
 
void dt_history_delete_on_image (int32_t imgid)
 
char * dt_history_item_as_string (const char *name, gboolean enabled)
 
static void _collect_item (void *user_data, const int num, const char *operation, const gboolean enabled, const char *multi_name)
 
GListdt_history_get_items (const int32_t imgid, gboolean enabled)
 
static void _collect_item_string (void *user_data, const int num, const char *operation, const gboolean enabled, const char *multi_name)
 
char * dt_history_get_items_as_string (const int32_t imgid)
 

Variables

static dt_history_operation_name_resolver_t _operation_name_resolver = NULL
 

Macro Definition Documentation

◆ DT_IOP_ORDER_INFO

#define DT_IOP_ORDER_INFO   (dt_get_debug_flags() & DT_DEBUG_IOPORDER)

Definition at line 57 of file history/history.c.

Function Documentation

◆ _collect_item()

static void _collect_item ( void user_data,
const int  num,
const char *  operation,
const gboolean  enabled,
const char *  multi_name 
)
static

◆ _collect_item_string()

static void _collect_item_string ( void user_data,
const int  num,
const char *  operation,
const gboolean  enabled,
const char *  multi_name 
)
static

◆ _remove_preset_flag()

static void _remove_preset_flag ( const int32_t  imgid)
static

◆ dt_history_delete_on_image()

void dt_history_delete_on_image ( int32_t  imgid)

delete all history for the given image

Definition at line 130 of file history/history.c.

References DT_HISTORY_CHANGE_TAGS, dt_history_changed(), dt_history_delete_on_image_ext(), and TRUE.

Referenced by dt_control_duplicate_images_job_run().

◆ dt_history_delete_on_image_ext()

◆ dt_history_get_items()

GList * dt_history_get_items ( int32_t  imgid,
gboolean  enabled 
)

get list of history items for image

Definition at line 163 of file history/history.c.

References _collect_item(), dt_history_repository_foreach_last_item(), and L.

Referenced by _gui_styles_dialog_run(), and dt_gui_hist_dialog_new().

◆ dt_history_get_items_as_string()

char * dt_history_get_items_as_string ( int32_t  imgid)

get list of history items for image as a nice string

Definition at line 190 of file history/history.c.

References _collect_item_string(), dt_free_gpointer(), dt_history_repository_foreach_item(), dt_util_glist_to_str(), items, and L.

Referenced by _altered_enter(), and main().

◆ dt_history_item_as_string()

char * dt_history_item_as_string ( const char *  name,
gboolean  enabled 
)

get a single history item as string with enabled status

Definition at line 136 of file history/history.c.

References L, and name.

Referenced by _collect_item_string().

◆ dt_history_item_free()

void dt_history_item_free ( gpointer  data)

helper function to free a GList of dt_history_item_t

Definition at line 73 of file history/history.c.

References dt_free, L, dt_history_item_t::name, and dt_history_item_t::op.

Referenced by _gui_styles_dialog_run(), and dt_gui_hist_dialog_new().

◆ dt_history_operation_name()

const char * dt_history_operation_name ( const char *  operation)

Resolve operation through the installed resolver, or return it unchanged.

Definition at line 66 of file history/history.c.

References _operation_name_resolver, and L.

Referenced by _collect_item(), and _collect_item_string().

◆ dt_history_set_operation_name_resolver()

void dt_history_set_operation_name_resolver ( dt_history_operation_name_resolver_t  resolver)

Definition at line 61 of file history/history.c.

References _operation_name_resolver, and L.

Referenced by dt_init().

Variable Documentation

◆ _operation_name_resolver

dt_history_operation_name_resolver_t _operation_name_resolver = NULL
static