![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/history_snapshot.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/history.h"
#include "control/signal.h"
Functions | |
dt_undo_lt_history_t * | dt_history_snapshot_item_init (void) |
void | dt_history_snapshot_undo_create (const int32_t imgid, int *snap_id, int *history_end) |
static void | _history_snapshot_undo_restore (const int32_t imgid, const int snap_id, const int history_end) |
static void | _clear_undo_snapshot (const int32_t imgid, const int snap_id) |
void | dt_history_snapshot_undo_lt_history_data_free (gpointer data) |
void | dt_history_snapshot_undo_pop (gpointer user_data, dt_undo_type_t type, dt_undo_data_t data, dt_undo_action_t action, GList **imgs) |
|
static |
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by dt_history_snapshot_undo_lt_history_data_free().
|
static |
References darktable, darktable_t::db, dt_database_get(), dt_database_release_transaction, dt_database_rollback_transaction(), dt_database_start_transaction, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_history_delete_on_image_ext(), DT_HISTORY_HASH_CURRENT, dt_history_hash_write_from_history(), DT_SIGNAL_TAG_CHANGED, FALSE, darktable_t::signals, and TRUE.
Referenced by dt_history_snapshot_undo_pop().
dt_undo_lt_history_t * dt_history_snapshot_item_init | ( | void | ) |
void dt_history_snapshot_undo_create | ( | const int32_t | imgid, |
int * | snap_id, | ||
int * | history_end | ||
) |
References darktable, darktable_t::db, dt_database_get(), dt_database_release_transaction, dt_database_rollback_transaction(), dt_database_start_transaction, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, and TRUE.
Referenced by dt_history_copy_and_paste_on_image(), dt_history_delete_on_image_ext(), dt_history_delete_on_list(), dt_history_load_and_apply(), dt_image_flip(), and dt_styles_apply_to_image().
void dt_history_snapshot_undo_lt_history_data_free | ( | gpointer | data | ) |
References _clear_undo_snapshot(), dt_undo_lt_history_t::after, dt_undo_lt_history_t::before, and dt_undo_lt_history_t::imgid.
Referenced by dt_history_copy_and_paste_on_image(), dt_history_delete_on_image_ext(), dt_history_delete_on_list(), dt_history_load_and_apply(), dt_image_flip(), and dt_styles_apply_to_image().
void dt_history_snapshot_undo_pop | ( | gpointer | user_data, |
dt_undo_type_t | type, | ||
dt_undo_data_t | data, | ||
dt_undo_action_t | action, | ||
GList ** | imgs | ||
) |
References _history_snapshot_undo_restore(), dt_undo_lt_history_t::after, dt_undo_lt_history_t::after_history_end, dt_undo_lt_history_t::before, dt_undo_lt_history_t::before_history_end, DT_ACTION_UNDO, DT_UNDO_LT_HISTORY, dt_undo_lt_history_t::imgid, and type.
Referenced by dt_history_copy_and_paste_on_image(), dt_history_delete_on_image_ext(), dt_history_delete_on_list(), dt_history_load_and_apply(), dt_image_flip(), and dt_styles_apply_to_image().