![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Go to the source code of this file.
Macros | |
#define | DT_VIEW_RATINGS_MASK 0x7 |
Functions | |
int | dt_ratings_get (const int32_t imgid) |
void | dt_ratings_apply_on_image (const int32_t imgid, const int rating, const gboolean single_star_toggle, const gboolean undo_on, const gboolean group_on) |
void | dt_ratings_apply_on_list (GList *list, const int rating, const gboolean undo_on) |
#define DT_VIEW_RATINGS_MASK 0x7 |
void dt_ratings_apply_on_image | ( | const int32_t | imgid, |
const int | rating, | ||
const gboolean | single_star_toggle, | ||
const gboolean | undo_on, | ||
const gboolean | group_on | ||
) |
apply rating to the specified image
References _pop_undo(), _ratings_apply(), _ratings_undo_data_free(), darktable, dt_control_log(), dt_grouping_add_grouped_images(), dt_undo_end_group(), DT_UNDO_RATINGS, dt_undo_record(), dt_undo_start_group(), DT_VIEW_REJECT, g_list_shorter_than(), and darktable_t::undo.
Referenced by _event_rating_release(), and dt_lightroom_import().
void dt_ratings_apply_on_list | ( | GList * | list, |
const int | rating, | ||
const gboolean | undo_on | ||
) |
apply rating to all images in the list
References _pop_undo(), _ratings_apply(), _ratings_undo_data_free(), darktable_t::collection, darktable, dt_collection_hint_message(), dt_ratings_get_name(), dt_toast_log(), dt_undo_end_group(), DT_UNDO_RATINGS, dt_undo_record(), dt_undo_start_group(), and darktable_t::undo.
Referenced by _rating_callback().
int dt_ratings_get | ( | const int32_t | imgid | ) |
get rating for the specified image
References darktable, dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_REJECTED, DT_VIEW_RATINGS_MASK, DT_VIEW_REJECT, dt_image_t::flags, and darktable_t::image_cache.
Referenced by _ratings_apply().