Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history.h File Reference
#include <gtk/gtk.h>
#include <inttypes.h>
#include <sqlite3.h>
#include "common/history_actions.h"
#include "common/image_cache.h"
+ Include dependency graph for history.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_history_copy_item_t
 
struct  dt_history_item_t
 

Typedefs

typedef struct dt_history_copy_item_t dt_history_copy_item_t
 
typedef void(* dt_history_db_row_cb) (void *user_data, const int32_t imgid, const int num, const int module_version, const char *operation, const void *op_params, const int op_params_len, const gboolean enabled, const void *blendop_params, const int blendop_params_len, const int blendop_version, const int multi_priority, const char *multi_name, const char *preset_name)
 
typedef struct dt_history_item_t dt_history_item_t
 

Functions

void dt_history_item_free (gpointer data)
 
void dt_history_delete_on_image (int32_t imgid)
 
void dt_history_delete_on_image_ext (int32_t imgid, gboolean undo)
 
int32_t dt_history_get_end (const int32_t imgid)
 
gboolean dt_history_set_end (const int32_t imgid, const int32_t history_end)
 
void dt_history_db_foreach_history_row (const int32_t imgid, dt_history_db_row_cb cb, void *user_data)
 
void dt_history_db_foreach_auto_preset_row (const int32_t imgid, const struct dt_image_t *image, const char *workflow_preset, const int iformat, const int excluded, dt_history_db_row_cb cb, void *user_data)
 
gboolean dt_history_db_get_autoapply_ioporder_params (const int32_t imgid, const struct dt_image_t *image, const int iformat, const int excluded, void **params, int32_t *params_len)
 
int32_t dt_history_db_get_next_history_num (const int32_t imgid)
 
gboolean dt_history_db_delete_history (const int32_t imgid)
 
gboolean dt_history_db_delete_masks_history (const int32_t imgid)
 
gboolean dt_history_db_delete_dev_history (const int32_t imgid)
 
gboolean dt_history_db_shift_history_nums (const int32_t imgid, const int delta)
 
gboolean dt_history_db_write_history_item (const int32_t imgid, const int num, const char *operation, const void *op_params, const int op_params_size, const int module_version, const int enabled, const void *blendop_params, const int blendop_params_size, const int blendop_version, const int multi_priority, const char *multi_name)
 
GList * dt_history_duplicate (GList *hist)
 Deep-copy a history list.
 
GList * dt_history_get_items (int32_t imgid, gboolean enabled)
 
char * dt_history_get_items_as_string (int32_t imgid)
 
char * dt_history_item_as_string (const char *name, gboolean enabled)
 
gboolean dt_history_check_module_exists (int32_t imgid, const char *operation, gboolean enabled)
 
void dt_history_cleanup (void)
 
void dt_history_hash_set_mipmap (const int32_t imgid, const uint64_t history_hash, const dt_image_cache_write_mode_t mode)
 

Typedef Documentation

◆ dt_history_copy_item_t

◆ dt_history_db_row_cb

typedef void(* dt_history_db_row_cb) (void *user_data, const int32_t imgid, const int num, const int module_version, const char *operation, const void *op_params, const int op_params_len, const gboolean enabled, const void *blendop_params, const int blendop_params_len, const int blendop_version, const int multi_priority, const char *multi_name, const char *preset_name)

low-level DB helpers (used by develop/dev_history.c)

◆ dt_history_item_t

Function Documentation

◆ dt_history_check_module_exists()

◆ dt_history_cleanup()

◆ dt_history_db_delete_dev_history()

gboolean dt_history_db_delete_dev_history ( const int32_t  imgid)

◆ dt_history_db_delete_history()

◆ dt_history_db_delete_masks_history()

◆ dt_history_db_foreach_auto_preset_row()

void dt_history_db_foreach_auto_preset_row ( const int32_t  imgid,
const struct dt_image_t image,
const char *  workflow_preset,
const int  iformat,
const int  excluded,
dt_history_db_row_cb  cb,
void user_data 
)

◆ dt_history_db_foreach_history_row()

◆ dt_history_db_get_autoapply_ioporder_params()

gboolean dt_history_db_get_autoapply_ioporder_params ( const int32_t  imgid,
const struct dt_image_t image,
const int  iformat,
const int  excluded,
void **  params,
int32_t *  params_len 
)

◆ dt_history_db_get_next_history_num()

◆ dt_history_db_shift_history_nums()

◆ dt_history_db_write_history_item()

gboolean dt_history_db_write_history_item ( const int32_t  imgid,
const int  num,
const char *  operation,
const void op_params,
const int  op_params_size,
const int  module_version,
const int  enabled,
const void blendop_params,
const int  blendop_params_size,
const int  blendop_version,
const int  multi_priority,
const char *  multi_name 
)

◆ dt_history_delete_on_image()

void dt_history_delete_on_image ( int32_t  imgid)

◆ dt_history_delete_on_image_ext()

◆ dt_history_duplicate()

GList * dt_history_duplicate ( GList *  hist)

Deep-copy a history list.

Duplicates params, blend params and masks for each history item.

Parameters
histSource history list.
Returns
Newly-allocated history list.

References dt_dev_history_item_t::blend_params, dt_masks_dup_forms_deep(), dt_dev_history_item_t::forms, h, dt_dev_history_item_t::op_name, dt_dev_history_item_t::params, and dt_iop_module_t::params.

Referenced by _hm_backup_dest(), _pop_undo(), dt_dev_history_undo_end_record_locked(), and dt_dev_history_undo_start_record_locked().

◆ dt_history_get_end()

int32_t dt_history_get_end ( const int32_t  imgid)

◆ dt_history_get_items()

◆ dt_history_get_items_as_string()

char * dt_history_get_items_as_string ( int32_t  imgid)

◆ dt_history_hash_set_mipmap()

void dt_history_hash_set_mipmap ( const int32_t  imgid,
const uint64_t  history_hash,
const dt_image_cache_write_mode_t  mode 
)

◆ 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_free, 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_set_end()

gboolean dt_history_set_end ( const int32_t  imgid,
const int32_t  history_end 
)