![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/grouping.h"
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/image_cache.h"
#include "common/selection.h"
#include "control/signal.h"
#include "gui/gtk.h"
Functions | |
int32_t | dt_grouping_get_image_group (const int32_t image_id) |
void | dt_grouping_add_to_group (const int32_t group_id, const int32_t image_id) |
int | dt_grouping_remove_from_group (const int32_t image_id) |
int | dt_grouping_change_representative (const int32_t image_id) |
GList * | dt_grouping_get_group_images (const int32_t imgid) |
void | dt_grouping_add_grouped_images (GList **images) |
void dt_grouping_add_grouped_images | ( | GList ** | images | ) |
add grouped images to images list
References darktable_t::collection, darktable, darktable_t::db, dt_collection_get_query(), dt_database_get(), DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_cache_get(), dt_image_cache_read_release(), dt_image_t::group_id, and darktable_t::image_cache.
Referenced by dt_control_datetime_job_run(), dt_image_set_location(), dt_ratings_apply_on_image(), and dt_tag_detach().
void dt_grouping_add_to_group | ( | const int32_t | group_id, |
const int32_t | image_id | ||
) |
add an image to a group
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_grouping_remove_from_group(), dt_image_cache_get(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), DT_SIGNAL_IMAGE_INFO_CHANGED, dt_image_t::group_id, darktable_t::image_cache, and darktable_t::signals.
Referenced by _image_duplicate_with_version(), dt_image_read_duplicates(), group_images_callback(), and group_with().
int dt_grouping_change_representative | ( | const int32_t | image_id | ) |
make an image the representative of the group it is in
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), DT_SIGNAL_IMAGE_INFO_CHANGED, dt_image_t::group_id, darktable_t::image_cache, and darktable_t::signals.
Referenced by _event_grouping_release(), and make_group_leader().
GList * dt_grouping_get_group_images | ( | const int32_t | imgid | ) |
get images of the group
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_cache_get(), dt_image_cache_read_release(), dt_image_t::group_id, and darktable_t::image_cache.
Referenced by dt_control_datetime_job_run(), and dt_control_gpx_apply_job_run().
int32_t dt_grouping_get_image_group | ( | const int32_t | image_id | ) |
util to get the group ID of any image
References darktable, dt_image_cache_get(), dt_image_cache_read_release(), dt_image_t::group_id, and darktable_t::image_cache.
Referenced by _dt_image_info_changed_callback().
int dt_grouping_remove_from_group | ( | const int32_t | image_id | ) |
remove an image from a group
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), DT_SIGNAL_IMAGE_INFO_CHANGED, dt_image_t::group_id, darktable_t::image_cache, and darktable_t::signals.
Referenced by dt_grouping_add_to_group(), dt_image_remove(), group_with(), and ungroup_images_callback().