![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <gtk/gtk.h>
Go to the source code of this file.
Typedefs | |
typedef enum dt_colorlables_enum | dt_colorlabels_enum |
Enumerations | |
enum | dt_colorlables_enum { DT_COLORLABELS_RED , DT_COLORLABELS_YELLOW , DT_COLORLABELS_GREEN , DT_COLORLABELS_BLUE , DT_COLORLABELS_PURPLE , DT_COLORLABELS_LAST } |
Functions | |
int | dt_colorlabels_get_labels (const int32_t imgid) |
void | dt_colorlabels_remove_labels (const int32_t imgid) |
void | dt_colorlabels_set_label (const int32_t imgid, const int color) |
void | dt_colorlabels_set_labels (const int32_t imgid, const int colors) |
void | dt_colorlabels_toggle_label_on_list (GList *list, const int color, const gboolean undo_on) |
void | dt_colorlabels_remove_label (const int32_t imgid, const int color) |
const char * | dt_colorlabels_to_string (int label) |
int | dt_colorlabels_check_label (const int32_t imgid, const int color) |
Variables | |
const char * | dt_colorlabels_name [] |
typedef enum dt_colorlables_enum dt_colorlabels_enum |
array of names and constant to ease label manipulation
enum dt_colorlables_enum |
int dt_colorlabels_check_label | ( | const int32_t | imgid, |
const int | color | ||
) |
check if an image has a color label
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by colorlabel_member().
int dt_colorlabels_get_labels | ( | const int32_t | imgid | ) |
get the assigned colorlabels of imgid
References colors, darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _pop_undo_execute(), and dt_image_cache_allocate().
void dt_colorlabels_remove_label | ( | const int32_t | imgid, |
const int | color | ||
) |
remove a color label from imgid
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by colorlabel_member(), and dt_colorlabels_set_labels().
void dt_colorlabels_remove_labels | ( | const int32_t | imgid | ) |
remove labels associated to imgid
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _exif_decode_xmp_data().
void dt_colorlabels_set_label | ( | const int32_t | imgid, |
const int | color | ||
) |
assign a color label to imgid - no undo no image group
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _exif_decode_xmp_data(), colorlabel_member(), dt_colorlabels_set_labels(), and dt_lightroom_import().
void dt_colorlabels_set_labels | ( | const int32_t | imgid, |
const int | colors | ||
) |
save all assigned color labels from cached dt_image_t to database
References colors, dt_colorlabels_remove_label(), and dt_colorlabels_set_label().
Referenced by dt_image_cache_write_release().
const char * dt_colorlabels_to_string | ( | int | label | ) |
get the name of the color for a given number (could be replaced by an array)
References DT_COLORLABELS_LAST, and dt_colorlabels_name.
Referenced by _get_base_value().
void dt_colorlabels_toggle_label_on_list | ( | GList * | list, |
const int | color, | ||
const gboolean | undo_on | ||
) |
assign a color label to the list of image
References _colorlabels_execute(), _colorlabels_undo_data_free(), _pop_undo(), darktable_t::collection, darktable, DT_CA_SET, DT_CA_TOGGLE, dt_collection_hint_message(), dt_colorlabels_get_name(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_IMAGE_INFO_CHANGED, dt_toast_log(), DT_UNDO_COLORLABELS, dt_undo_end_group(), dt_undo_record(), dt_undo_start_group(), darktable_t::signals, and darktable_t::undo.
Referenced by _color_label_callback(), and _colorlabels_callback().
|
extern |
array with all names as strings, terminated by a NULL entry
Referenced by colorlabel_member(), dt_colorlabels_to_string(), and dt_lua_init_image().