46#define DT_RATINGS_UPGRADE -1
47#define DT_RATINGS_DOWNGRADE -2
48#define DT_RATINGS_REJECT -3
49#define DT_RATINGS_UNREJECT -4
77 return _(
"unknown/invalid");
149 gboolean toggle =
FALSE;
235 ngettext(
"rejecting %d image",
"rejecting %d images", count), count);
238 ngettext(
"applying rating %d to %d image",
"applying rating %d to %d images", count),
dt_collection_t * dt_collection_get_global(void)
void dt_collection_hint_message(const dt_collection_t *collection)
const dt_collection_filter_flag_t ratings[7]
static gboolean g_list_shorter_than(const GList *list, unsigned len)
void dt_grouping_add_grouped_images(GList **images)
void dt_image_cache_write_release(dt_image_t *img, dt_image_cache_write_mode_t mode)
dt_image_t * dt_image_cache_get(const int32_t imgid, char mode)
void dt_image_cache_read_release(const dt_image_t *img)
_lib_location_type_t type
#define DT_RATINGS_UPGRADE
static void _pop_undo(gpointer user_data, dt_undo_type_t type, dt_undo_data_t data, dt_undo_action_t action, GList **imgs)
#define DT_RATINGS_DOWNGRADE
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)
static void _ratings_apply(GList *imgs, const int rating, GList **undo, const gboolean undo_on)
static void _ratings_apply_to_image(const int32_t imgid, const int rating)
static void _ratings_undo_data_free(gpointer data)
#define DT_RATINGS_UNREJECT
#define DT_RATINGS_REJECT
void dt_ratings_apply_on_list(GList *img, const int rating, const gboolean undo_on)
char * dt_ratings_get_name(const int rating)
#define DT_VIEW_RATINGS_MASK
void dt_undo_end_group(dt_undo_t *self)
void dt_undo_start_group(dt_undo_t *self, dt_undo_type_t type)
void dt_undo_record(dt_undo_t *self, gpointer user_data, dt_undo_type_t type, dt_undo_data_t data, void(*undo)(gpointer user_data, dt_undo_type_t type, dt_undo_data_t item, dt_undo_action_t action, GList **imgs), void(*free_data)(gpointer data))
dt_undo_t * dt_undo_get_global(void)