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 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_hash_values_t
 
struct  dt_history_copy_item_t
 
struct  dt_history_item_t
 

Typedefs

typedef enum dt_history_hash_t dt_history_hash_t
 
typedef struct dt_history_hash_values_t dt_history_hash_values_t
 
typedef struct dt_history_copy_item_t dt_history_copy_item_t
 
typedef struct dt_history_item_t dt_history_item_t
 

Enumerations

enum  dt_history_hash_t {
  DT_HISTORY_HASH_BASIC = 1 << 0 ,
  DT_HISTORY_HASH_AUTO = 1 << 1 ,
  DT_HISTORY_HASH_CURRENT = 1 << 2 ,
  DT_HISTORY_HASH_MIPMAP = 1 << 3
}
 

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)
 
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)
 
int dt_history_load_and_apply_on_list (gchar *filename, const GList *list)
 
int dt_history_load_and_apply (int32_t imgid, gchar *filename, int history_only)
 
gboolean dt_history_delete_on_list (const GList *list, gboolean undo)
 
int dt_history_compress_on_list (const GList *imgs)
 
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)
 
GList * dt_history_duplicate (GList *hist)
 
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_hash_write_from_history (const int32_t imgid, const dt_history_hash_t type)
 
gboolean dt_history_hash_is_mipmap_synced (const int32_t imgid)
 
void dt_history_hash_set_mipmap (const int32_t imgid)
 
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)
 

Typedef Documentation

◆ dt_history_copy_item_t

◆ dt_history_hash_t

◆ dt_history_hash_values_t

◆ dt_history_item_t

Enumeration Type Documentation

◆ dt_history_hash_t

Enumerator
DT_HISTORY_HASH_BASIC 
DT_HISTORY_HASH_AUTO 
DT_HISTORY_HASH_CURRENT 
DT_HISTORY_HASH_MIPMAP 

Function Documentation

◆ 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_duplicate()

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