Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history.c File Reference
#include "common/history.h"
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/exif.h"
#include "common/history_snapshot.h"
#include "common/image_cache.h"
#include "common/imageio.h"
#include "common/mipmap_cache.h"
#include "common/tags.h"
#include "common/undo.h"
#include "common/utility.h"
#include "control/control.h"
#include "develop/blend.h"
#include "develop/develop.h"
#include "develop/masks.h"
#include "gui/hist_dialog.h"
+ Include dependency graph for common/history.c:

Macros

#define DT_IOP_ORDER_INFO   (darktable.unmuted & DT_DEBUG_IOPORDER)
 

Functions

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)
 
int dt_history_load_and_apply (const int32_t imgid, gchar *filename, int history_only)
 
int dt_history_load_and_apply_on_list (gchar *filename, const GList *list)
 
char * dt_history_item_as_string (const char *name, gboolean enabled)
 
GList * dt_history_get_items (const int32_t imgid, gboolean enabled)
 
char * dt_history_get_items_as_string (const int32_t imgid)
 
static int dt_history_end_attop (const int32_t imgid)
 
void dt_history_compress_on_image (const int32_t imgid)
 
void dt_history_truncate_on_image (const int32_t imgid, const int32_t history_end)
 
int dt_history_compress_on_list (const GList *imgs)
 
gboolean dt_history_check_module_exists (int32_t imgid, const char *operation, gboolean enabled)
 
static gsize _history_hash_compute_from_db (const int32_t imgid, guint8 **hash)
 
void dt_history_hash_write_from_history (const int32_t imgid, const dt_history_hash_t type)
 
void dt_history_hash_write (const int32_t imgid, dt_history_hash_values_t *hash)
 
void dt_history_hash_read (const int32_t imgid, dt_history_hash_values_t *hash)
 
gboolean dt_history_hash_is_mipmap_synced (const int32_t imgid)
 
void dt_history_hash_set_mipmap (const int32_t imgid)
 
gboolean dt_history_copy (int32_t imgid)
 
gboolean dt_history_copy_parts (int32_t imgid)
 
gboolean dt_history_paste_on_list (const GList *list, gboolean undo)
 
gboolean dt_history_paste_parts_on_list (const GList *list, gboolean undo)
 
gboolean dt_history_delete_on_list (const GList *list, gboolean undo)
 

Macro Definition Documentation

◆ DT_IOP_ORDER_INFO

#define DT_IOP_ORDER_INFO   (darktable.unmuted & DT_DEBUG_IOPORDER)

Function Documentation

◆ _history_hash_compute_from_db()

static gsize _history_hash_compute_from_db ( const int32_t  imgid,
guint8 **  hash 
)
static

◆ _remove_preset_flag()

static void _remove_preset_flag ( const int32_t  imgid)
static

◆ dt_history_check_module_exists()

gboolean dt_history_check_module_exists ( int32_t  imgid,
const char *  operation,
gboolean  enabled 
)

◆ dt_history_compress_on_image()

◆ dt_history_compress_on_list()

◆ dt_history_copy()

gboolean dt_history_copy ( int32_t  imgid)

copy history from imgid and pasts on selected images, merge or overwrite...

References dt_history_copy_item_t::copied_imageid, dt_view_manager_t::copy_paste, darktable, FALSE, dt_history_copy_item_t::full_copy, TRUE, and darktable_t::view_manager.

Referenced by copy_callback(), and dt_history_copy_parts().

◆ dt_history_copy_parts()

◆ dt_history_delete_on_image()

◆ dt_history_delete_on_image_ext()

◆ dt_history_delete_on_list()

◆ dt_history_end_attop()

static int dt_history_end_attop ( const int32_t  imgid)
static

◆ dt_history_get_items()

◆ dt_history_get_items_as_string()

char * dt_history_get_items_as_string ( int32_t  imgid)

◆ dt_history_hash_is_mipmap_synced()

gboolean dt_history_hash_is_mipmap_synced ( const int32_t  imgid)

◆ dt_history_hash_read()

◆ dt_history_hash_set_mipmap()

void dt_history_hash_set_mipmap ( const int32_t  imgid)

◆ dt_history_hash_write()

◆ dt_history_hash_write_from_history()

◆ 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

References name.

Referenced by dt_history_get_items_as_string().

◆ dt_history_item_free()

void dt_history_item_free ( gpointer  data)

helper function to free a GList of dt_history_item_t

References 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_load_and_apply()

◆ dt_history_load_and_apply_on_list()

int dt_history_load_and_apply_on_list ( gchar *  filename,
const GList *  list 
)

◆ dt_history_paste_on_list()

◆ dt_history_paste_parts_on_list()

◆ dt_history_truncate_on_image()