![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/extra_optimizations.h"
#include "dtgtk/thumbnail.h"
#include "bauhaus/bauhaus.h"
#include "common/collection.h"
#include "common/datetime.h"
#include "common/debug.h"
#include "common/focus.h"
#include "common/focus_peaking.h"
#include "common/grouping.h"
#include "common/image_cache.h"
#include "common/ratings.h"
#include "common/selection.h"
#include "common/variables.h"
#include "control/control.h"
#include "dtgtk/button.h"
#include "dtgtk/icon.h"
#include "dtgtk/preview_window.h"
#include "dtgtk/thumbnail_btn.h"
#include "gui/drag_and_drop.h"
#include "views/view.h"
#include <glib-object.h>
Macros | |
#define | thumb_return_if_fails(thumb, ...) { if(!thumb || !thumb->widget) return __VA_ARGS__; } |
#define | DEBUG 0 |
Functions | |
static void | _set_flag (GtkWidget *w, GtkStateFlags flag, gboolean activate) |
static void | _image_update_group_tooltip (dt_thumbnail_t *thumb) |
static void | _thumb_update_rating_class (dt_thumbnail_t *thumb) |
static void | _thumb_write_extension (dt_thumbnail_t *thumb) |
static GtkWidget * | _gtk_menu_item_new_with_markup (const char *label, GtkWidget *menu, void(*activate_callback)(GtkWidget *widget, dt_thumbnail_t *thumb), dt_thumbnail_t *thumb) |
static GtkWidget * | _menuitem_from_text (const char *label, const char *value, GtkWidget *menu, void(*activate_callback)(GtkWidget *widget, dt_thumbnail_t *thumb), dt_thumbnail_t *thumb) |
static void | _color_label_callback (GtkWidget *widget, dt_thumbnail_t *thumb) |
static void | _preview_window_open (GtkWidget *widget, dt_thumbnail_t *thumb) |
static GtkWidget * | _create_menu (dt_thumbnail_t *thumb) |
static void | _image_get_infos (dt_thumbnail_t *thumb) |
static gboolean | _event_cursor_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data) |
static void | _free_image_surface (dt_thumbnail_t *thumb) |
int | _main_context_draw (dt_thumbnail_t *thumb) |
static void | _finish_buffer_thread (dt_thumbnail_t *thumb, gboolean success) |
int32_t | _get_image_buffer (dt_job_t *job) |
int | dt_thumbnail_get_image_buffer (dt_thumbnail_t *thumb) |
static gboolean | _thumb_draw_image (GtkWidget *widget, cairo_t *cr, gpointer user_data) |
static void | _thumb_update_icons (dt_thumbnail_t *thumb) |
static gboolean | _event_main_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _event_main_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _event_rating_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _event_grouping_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _event_audio_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
void | dt_thumbnail_update_selection (dt_thumbnail_t *thumb, gboolean selected) |
void | _create_alternative_view (dt_thumbnail_t *thumb) |
void | dt_thumbnail_alternative_mode (dt_thumbnail_t *thumb, gboolean enable) |
static gboolean | _event_star_enter (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | _event_star_leave (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
gboolean | _event_expose (GtkWidget *self, cairo_t *cr, gpointer user_data) |
static gboolean | _event_main_motion (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
static gboolean | _event_main_enter (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | _event_main_leave (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | _altered_enter (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | _group_enter (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | _event_image_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _event_image_motion (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
static gboolean | _event_image_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
GtkWidget * | dt_thumbnail_create_widget (dt_thumbnail_t *thumb) |
dt_thumbnail_t * | dt_thumbnail_new (int32_t imgid, int rowid, int32_t groupid, dt_thumbnail_overlay_t over, dt_thumbtable_t *table) |
int | dt_thumbnail_destroy (dt_thumbnail_t *thumb) |
void | dt_thumbnail_update_infos (dt_thumbnail_t *thumb) |
void | dt_thumbnail_update_partial_infos (dt_thumbnail_t *thumb) |
void | dt_thumbnail_set_overlay (dt_thumbnail_t *thumb, dt_thumbnail_overlay_t mode) |
void | _widget_set_size (GtkWidget *w, int *parent_width, int *parent_height, const gboolean update) |
static int | _thumb_resize_overlays (dt_thumbnail_t *thumb, int width, int height) |
void | dt_thumbnail_resize (dt_thumbnail_t *thumb, int width, int height) |
void | dt_thumbnail_set_group_border (dt_thumbnail_t *thumb, dt_thumbnail_border_t border) |
void | dt_thumbnail_set_mouseover (dt_thumbnail_t *thumb, gboolean over) |
void | dt_thumbnail_set_drop (dt_thumbnail_t *thumb, gboolean accept_drop) |
int | dt_thumbnail_image_refresh_real (dt_thumbnail_t *thumb) |
this is the thumbnail class for the lighttable module.
WARNING: because we create and destroy thumbnail objects dynamically when scrolling, and we don't manually cleanup the Gtk signal handlers attached to widgets, some callbacks/handlers can be left hanging, still record events, but send them to non-existing objects. This is why we need to ensure user_data is not NULL everywhere.
#define DEBUG 0 |
#define thumb_return_if_fails | ( | thumb, | |
... | |||
) | { if(!thumb || !thumb->widget) return __VA_ARGS__; } |
|
static |
References dt_history_get_items_as_string(), FALSE, dt_thumbnail_t::imgid, dt_thumbnail_t::is_altered, thumb_return_if_fails, tooltip, TRUE, and dt_thumbnail_t::w_altered.
Referenced by dt_thumbnail_create_widget().
|
static |
References dt_colorlabels_toggle_label_on_list(), dt_thumbnail_t::imgid, and TRUE.
Referenced by _create_menu().
void _create_alternative_view | ( | dt_thumbnail_t * | thumb | ) |
References dt_thumbnail_t::aperture, dt_thumbnail_t::camera, dt_thumbnail_t::datetime, dt_util_format_exposure(), dt_thumbnail_t::exposure_bias, dt_thumbnail_t::filename, dt_thumbnail_t::focal, dt_thumbnail_t::focus_distance, dt_thumbnail_t::folder, dt_thumbnail_t::iso, dt_thumbnail_t::lens, dt_thumbnail_t::speed, thumb_return_if_fails, dt_thumbnail_t::w_camera, dt_thumbnail_t::w_datetime, dt_thumbnail_t::w_exposure, dt_thumbnail_t::w_exposure_bias, dt_thumbnail_t::w_filename, dt_thumbnail_t::w_focal, dt_thumbnail_t::w_folder, and dt_thumbnail_t::w_lens.
Referenced by dt_thumbnail_update_infos().
|
static |
image info
color labels
References _color_label_callback(), _gtk_menu_item_new_with_markup(), _menuitem_from_text(), _preview_window_open(), dt_thumbnail_t::camera, dt_thumbnail_t::datetime, FALSE, dt_thumbnail_t::filename, dt_thumbnail_t::folder, and dt_thumbnail_t::lens.
Referenced by _event_main_press().
|
static |
References dt_view_manager_t::audio, dt_view_manager_t::audio_player_id, darktable, dt_thumbnail_t::disable_actions, dt_view_audio_start(), dt_view_audio_stop(), dtgtk_thumbnail_btn_is_hidden(), FALSE, dt_thumbnail_t::imgid, thumb_return_if_fails, TRUE, and darktable_t::view_manager.
Referenced by dt_thumbnail_create_widget().
|
static |
References thumb_return_if_fails, TRUE, and dt_thumbnail_t::w_cursor.
Referenced by dt_thumbnail_create_widget().
gboolean _event_expose | ( | GtkWidget * | self, |
cairo_t * | cr, | ||
gpointer | user_data | ||
) |
References FALSE, thumb_return_if_fails, and TRUE.
Referenced by dt_thumbnail_create_widget().
|
static |
References dt_thumbnail_t::disable_actions, dt_grouping_change_representative(), dtgtk_thumbnail_btn_is_hidden(), FALSE, dt_thumbnail_t::imgid, thumb_return_if_fails, and TRUE.
Referenced by dt_thumbnail_create_widget().
|
static |
References darktable, dt_thumbnail_t::drag_x_start, dt_thumbnail_t::drag_y_start, dt_thumbnail_t::dragging, dt_modifier_is(), dt_thumbtable_offset_zoom(), FALSE, darktable_t::gui, dt_gui_gtk_t::ppd, dt_thumbnail_t::table, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_image, dt_thumbnail_t::zoomx, and dt_thumbnail_t::zoomy.
Referenced by dt_thumbnail_create_widget().
|
static |
|
static |
References dt_thumbnail_t::dragging, FALSE, thumb_return_if_fails, and TRUE.
Referenced by dt_thumbnail_create_widget().
|
static |
|
static |
|
static |
|
static |
References _create_menu(), darktable, dt_thumbnail_t::dragging, dt_control_set_mouse_over_id(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_VIEWMANAGER_THUMBTABLE_ACTIVATE, dt_thumbtable_dispatch_over(), FALSE, dt_thumbnail_t::imgid, darktable_t::signals, dt_thumbnail_t::table, thumb_return_if_fails, TRUE, and dt_thumbnail_t::widget.
Referenced by dt_thumbnail_create_widget().
|
static |
References darktable, dt_thumbnail_t::dragging, dt_modifier_is(), dt_selection_select_single(), dt_selection_toggle(), DT_THUMBTABLE_MODE_FILEMANAGER, dt_thumbtable_select_range(), FALSE, dt_thumbnail_t::imgid, dt_thumbtable_t::mode, dt_thumbnail_t::rowid, darktable_t::selection, dt_thumbnail_t::table, thumb_return_if_fails, and TRUE.
Referenced by dt_thumbnail_create_widget().
|
static |
References dt_thumbnail_t::disable_actions, dt_ratings_apply_on_image(), DT_VIEW_DESERT, DT_VIEW_REJECT, DT_VIEW_STAR_1, DT_VIEW_STAR_2, DT_VIEW_STAR_3, DT_VIEW_STAR_4, DT_VIEW_STAR_5, dtgtk_thumbnail_btn_is_hidden(), FALSE, dt_thumbnail_t::imgid, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_reject, and dt_thumbnail_t::w_stars.
Referenced by dt_thumbnail_create_widget().
|
static |
References _set_flag(), dt_thumbnail_t::disable_actions, FALSE, MAX_STARS, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_bottom_eb, and dt_thumbnail_t::w_stars.
Referenced by dt_thumbnail_create_widget().
|
static |
References _set_flag(), dt_thumbnail_t::disable_actions, DT_VIEW_REJECT, FALSE, MAX_STARS, dt_thumbnail_t::rating, thumb_return_if_fails, TRUE, and dt_thumbnail_t::w_stars.
Referenced by dt_thumbnail_create_widget().
|
static |
|
static |
References dt_thumbnail_t::img_surf.
Referenced by _get_image_buffer().
int32_t _get_image_buffer | ( | dt_job_t * | job | ) |
References _finish_buffer_thread(), _free_image_surface(), color_space, double(), dt_control_job_get_params(), dt_focus_create_clusters(), dt_focus_draw_clusters(), dt_focuspeaking(), dt_free_align, dt_image_full_path(), dt_imageio_large_thumbnail(), DT_THUMBTABLE_ZOOM_FIT, dt_view_image_get_surface(), DT_VIEW_SURFACE_OK, FALSE, dt_thumbtable_t::focus_peaking, dt_thumbtable_t::focus_regions, dt_thumbnail_t::img_height, dt_thumbnail_t::img_surf, dt_thumbnail_t::img_width, dt_thumbnail_t::imgid, MAX, PATH_MAX, dt_thumbnail_t::table, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_image, dt_thumbtable_t::zoom, dt_thumbnail_t::zoomx, and dt_thumbnail_t::zoomy.
Referenced by dt_thumbnail_get_image_buffer().
|
static |
References _image_update_group_tooltip(), FALSE, thumb_return_if_fails, and TRUE.
Referenced by dt_thumbnail_create_widget().
|
static |
References FALSE.
Referenced by _create_menu(), and _menuitem_from_text().
|
static |
References _thumb_update_rating_class(), _thumb_write_extension(), dt_thumbnail_t::aperture, dt_thumbnail_t::camera, dt_image_t::camera_makermodel, dt_image_t::color_labels, dt_thumbnail_t::colorlabels, darktable, dt_thumbnail_t::datetime, dt_datetime_img_to_local(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_film_roll_directory(), DT_IMAGE_HAS_WAV, dt_image_is_hdr(), DT_IMAGE_LOCAL_COPY, dt_image_monochrome_flags(), DT_IMAGE_REJECTED, dt_image_use_monochrome_workflow(), DT_VIEW_RATINGS_MASK, DT_VIEW_REJECT, dt_image_t::exif_aperture, dt_image_t::exif_exposure, dt_image_t::exif_exposure_bias, dt_image_t::exif_focal_length, dt_image_t::exif_focus_distance, dt_image_t::exif_iso, dt_image_t::exif_lens, dt_thumbnail_t::exposure_bias, FALSE, dt_image_t::filename, dt_thumbnail_t::filename, dt_image_t::flags, dt_thumbnail_t::focal, dt_thumbnail_t::focus_distance, dt_thumbnail_t::folder, dt_image_t::group_id, dt_thumbtable_cache_t::group_members, dt_thumbnail_t::groupid, dt_thumbnail_t::has_audio, dt_thumbnail_t::has_localcopy, dt_thumbtable_cache_t::history_items, _GtkDarktableThumbnailBtn::icon_flags, darktable_t::image_cache, dt_thumbnail_t::imgid, dt_thumbnail_t::is_altered, dt_thumbnail_t::is_bw, dt_thumbnail_t::is_bw_flow, dt_thumbnail_t::is_grouped, dt_thumbnail_t::is_hdr, dt_thumbnail_t::iso, dt_thumbnail_t::lens, dt_thumbtable_t::lut, PATH_MAX, dt_thumbnail_t::rating, dt_thumbnail_t::rowid, dt_thumbnail_t::speed, dt_thumbnail_t::table, thumb_return_if_fails, and dt_thumbnail_t::w_color.
Referenced by dt_thumbnail_update_infos().
|
static |
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_util_dstrcat(), FALSE, dt_image_t::filename, dt_thumbnail_t::groupid, darktable_t::image_cache, dt_thumbnail_t::imgid, dt_thumbnail_t::is_grouped, thumb_return_if_fails, and dt_thumbnail_t::w_group.
Referenced by _group_enter().
int _main_context_draw | ( | dt_thumbnail_t * | thumb | ) |
References dt_thumbnail_t::w_image.
Referenced by _finish_buffer_thread().
|
static |
References _gtk_menu_item_new_with_markup().
Referenced by _create_menu().
|
static |
References dt_preview_window_spawn(), and dt_thumbnail_t::imgid.
Referenced by _create_menu().
|
static |
|
static |
References darktable, dt_control_draw_busy_msg(), DT_DEBUG_LIGHTTABLE, dt_print(), dt_thumbnail_get_image_buffer(), DT_THUMBTABLE_ZOOM_FIT, FALSE, darktable_t::gui, dt_thumbnail_t::image_inited, dt_thumbnail_t::img_height, dt_thumbnail_t::img_surf, dt_thumbnail_t::img_width, dt_thumbnail_t::imgid, dt_gui_gtk_t::ppd, dt_thumbnail_t::table, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_image, dt_thumbtable_t::zoom, dt_thumbnail_t::zoomx, and dt_thumbnail_t::zoomy.
Referenced by dt_thumbnail_create_widget().
|
static |
References _set_flag(), DT_PIXEL_APPLY_DPI, FALSE, MAX_STARS, thumb_return_if_fails, dt_thumbnail_t::w_altered, dt_thumbnail_t::w_audio, dt_thumbnail_t::w_color, dt_thumbnail_t::w_cursor, dt_thumbnail_t::w_ext, dt_thumbnail_t::w_group, dt_thumbnail_t::w_local_copy, dt_thumbnail_t::w_reject, dt_thumbnail_t::w_stars, and width.
Referenced by dt_thumbnail_resize().
|
static |
References _set_flag(), DEBUG, DT_THUMBNAIL_OVERLAYS_NONE, DT_VIEW_REJECT, dt_thumbnail_t::groupid, dt_thumbnail_t::has_audio, dt_thumbnail_t::has_localcopy, dt_thumbnail_t::imgid, dt_thumbnail_t::is_altered, dt_thumbnail_t::is_grouped, MAX_STARS, dt_thumbnail_t::mouse_over, dt_thumbnail_t::over, dt_thumbnail_t::rating, dt_thumbnail_t::selected, thumb_return_if_fails, dt_thumbnail_t::w_altered, dt_thumbnail_t::w_audio, dt_thumbnail_t::w_bottom_eb, dt_thumbnail_t::w_color, dt_thumbnail_t::w_cursor, dt_thumbnail_t::w_ext, dt_thumbnail_t::w_group, dt_thumbnail_t::w_local_copy, dt_thumbnail_t::w_main, dt_thumbnail_t::w_reject, dt_thumbnail_t::w_stars, and dt_thumbnail_t::widget.
Referenced by dt_thumbnail_resize(), dt_thumbnail_set_mouseover(), dt_thumbnail_update_infos(), dt_thumbnail_update_partial_infos(), and dt_thumbnail_update_selection().
|
static |
References dt_gui_add_class(), dt_gui_remove_class(), DT_VIEW_DESERT, DT_VIEW_REJECT, dt_thumbnail_t::rating, thumb_return_if_fails, and dt_thumbnail_t::w_main.
Referenced by _image_get_infos().
|
static |
void _widget_set_size | ( | GtkWidget * | w, |
int * | parent_width, | ||
int * | parent_height, | ||
const gboolean | update | ||
) |
References height, update(), and width.
Referenced by dt_thumbnail_resize().
void dt_thumbnail_alternative_mode | ( | dt_thumbnail_t * | thumb, |
gboolean | enable | ||
) |
References dt_thumbnail_t::alternative_mode, FALSE, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_alternative, and dt_thumbnail_t::widget.
Referenced by _add_thumbnail_at_rowid(), _alternative_mode(), and _resize_thumbnails().
GtkWidget * dt_thumbnail_create_widget | ( | dt_thumbnail_t * | thumb | ) |
References _altered_enter(), _event_audio_release(), _event_cursor_draw(), _event_expose(), _event_grouping_release(), _event_image_motion(), _event_image_press(), _event_image_release(), _event_main_enter(), _event_main_leave(), _event_main_motion(), _event_main_press(), _event_main_release(), _event_rating_release(), _event_star_enter(), _event_star_leave(), _group_enter(), _thumb_draw_image(), bbox, dt_thumbnail_t::colorlabels, dt_gui_add_class(), dtgtk_cairo_paint_altered(), dtgtk_cairo_paint_audio(), dtgtk_cairo_paint_grouping(), dtgtk_cairo_paint_label_flower(), dtgtk_cairo_paint_local_copy(), dtgtk_cairo_paint_reject(), dtgtk_cairo_paint_star(), dtgtk_thumbnail_btn_new(), FALSE, MAX_STARS, n_targets_all, target_list_all, TRUE, dt_thumbnail_t::w_altered, dt_thumbnail_t::w_alternative, dt_thumbnail_t::w_audio, dt_thumbnail_t::w_background, dt_thumbnail_t::w_bottom_eb, dt_thumbnail_t::w_camera, dt_thumbnail_t::w_color, dt_thumbnail_t::w_cursor, dt_thumbnail_t::w_datetime, dt_thumbnail_t::w_exposure, dt_thumbnail_t::w_exposure_bias, dt_thumbnail_t::w_ext, dt_thumbnail_t::w_filename, dt_thumbnail_t::w_focal, dt_thumbnail_t::w_folder, dt_thumbnail_t::w_group, dt_thumbnail_t::w_image, dt_thumbnail_t::w_lens, dt_thumbnail_t::w_local_copy, dt_thumbnail_t::w_main, dt_thumbnail_t::w_reject, dt_thumbnail_t::w_stars, dt_thumbnail_t::w_top_eb, and dt_thumbnail_t::widget.
Referenced by dt_thumbnail_new().
int dt_thumbnail_destroy | ( | dt_thumbnail_t * | thumb | ) |
References dt_pthread_mutex_destroy(), dt_thumbnail_get_background_jobs(), dt_thumbnail_t::filename, dt_thumbnail_t::img_surf, dt_thumbnail_t::lock, thumb_return_if_fails, dt_thumbnail_t::w_image, and dt_thumbnail_t::widget.
Referenced by _dt_thumbtable_empty_list(), _garbage_collection(), and _thumb_remove().
int dt_thumbnail_get_image_buffer | ( | dt_thumbnail_t * | thumb | ) |
References _get_image_buffer(), dt_thumbnail_t::background_jobs, darktable_t::control, darktable, dt_control_add_job(), dt_control_job_create(), dt_control_job_set_params(), DT_JOB_QUEUE_USER_FG, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_thumbnail_get_background_jobs(), dt_thumbnail_t::image_inited, dt_thumbnail_t::img_surf, dt_thumbnail_t::lock, and thumb_return_if_fails.
Referenced by _thumb_draw_image().
int dt_thumbnail_image_refresh_real | ( | dt_thumbnail_t * | thumb | ) |
References FALSE, dt_thumbnail_t::image_inited, thumb_return_if_fails, and dt_thumbnail_t::w_main.
Referenced by dt_thumbnail_resize().
dt_thumbnail_t * dt_thumbnail_new | ( | int32_t | imgid, |
int | rowid, | ||
int32_t | groupid, | ||
dt_thumbnail_overlay_t | over, | ||
dt_thumbtable_t * | table | ||
) |
References darktable, dt_pthread_mutex_init(), dt_selection_is_id_selected(), dt_thumbnail_create_widget(), dt_thumbnail_update_infos(), dt_thumbnail_update_selection(), dt_thumbnail_t::groupid, dt_thumbnail_t::imgid, dt_thumbnail_t::lock, dt_thumbnail_t::over, dt_thumbnail_t::rowid, darktable_t::selection, dt_thumbnail_t::table, dt_thumbnail_t::zoomx, and dt_thumbnail_t::zoomy.
Referenced by _add_thumbnail_at_rowid(), and _lib_duplicate_init_callback().
void dt_thumbnail_resize | ( | dt_thumbnail_t * | thumb, |
int | width, | ||
int | height | ||
) |
References _thumb_resize_overlays(), _thumb_update_icons(), _widget_set_size(), dt_thumbnail_image_refresh_real(), DT_THUMBNAIL_OVERLAYS_ALWAYS_NORMAL, FALSE, height, dt_thumbnail_t::height, MAX, dt_thumbnail_t::over, thumb_return_if_fails, TRUE, dt_thumbnail_t::w_bottom_eb, dt_thumbnail_t::w_image, dt_thumbnail_t::w_main, dt_thumbnail_t::w_top_eb, dt_thumbnail_t::widget, width, and dt_thumbnail_t::width.
Referenced by _add_thumbnail_at_rowid(), _lib_duplicate_init_callback(), and _resize_thumbnails().
void dt_thumbnail_set_drop | ( | dt_thumbnail_t * | thumb, |
gboolean | accept_drop | ||
) |
References n_targets_all, target_list_all, thumb_return_if_fails, and dt_thumbnail_t::w_main.
void dt_thumbnail_set_group_border | ( | dt_thumbnail_t * | thumb, |
dt_thumbnail_border_t | border | ||
) |
References dt_gui_add_class(), dt_gui_remove_class(), DT_THUMBNAIL_BORDER_BOTTOM, DT_THUMBNAIL_BORDER_LEFT, DT_THUMBNAIL_BORDER_NONE, DT_THUMBNAIL_BORDER_RIGHT, DT_THUMBNAIL_BORDER_TOP, dt_thumbnail_t::group_borders, thumb_return_if_fails, and dt_thumbnail_t::widget.
Referenced by _add_thumbnail_group_borders().
void dt_thumbnail_set_mouseover | ( | dt_thumbnail_t * | thumb, |
gboolean | over | ||
) |
References _set_flag(), _thumb_update_icons(), dt_thumbnail_t::mouse_over, dt_thumbnail_t::rowid, dt_thumbtable_t::rowid, dt_thumbnail_t::table, thumb_return_if_fails, dt_thumbnail_t::w_bottom_eb, dt_thumbnail_t::w_main, and dt_thumbnail_t::widget.
Referenced by _add_thumbnail_at_rowid(), _event_main_enter(), _event_main_leave(), _event_main_motion(), _lib_duplicate_init_callback(), and _mouse_over_image_callback().
void dt_thumbnail_set_overlay | ( | dt_thumbnail_t * | thumb, |
dt_thumbnail_overlay_t | mode | ||
) |
References dt_thumbnail_t::over, and thumb_return_if_fails.
Referenced by _add_thumbnail_at_rowid(), and _resize_thumbnails().
void dt_thumbnail_update_infos | ( | dt_thumbnail_t * | thumb | ) |
References _create_alternative_view(), _image_get_infos(), _thumb_update_icons(), and thumb_return_if_fails.
Referenced by _dt_image_info_changed_callback(), and dt_thumbnail_new().
void dt_thumbnail_update_partial_infos | ( | dt_thumbnail_t * | thumb | ) |
References _thumb_update_icons(), FALSE, dt_thumbtable_cache_t::group_members, dt_thumbnail_t::groupid, dt_thumbtable_cache_t::groupid, dt_thumbtable_cache_t::history_items, dt_thumbnail_t::is_altered, dt_thumbnail_t::is_grouped, dt_thumbtable_t::lut, dt_thumbnail_t::rowid, dt_thumbnail_t::table, thumb_return_if_fails, and UNKNOWN_IMAGE.
Referenced by _resize_thumbnails().
void dt_thumbnail_update_selection | ( | dt_thumbnail_t * | thumb, |
gboolean | selected | ||
) |
References _thumb_update_icons(), dt_thumbnail_t::selected, and thumb_return_if_fails.
Referenced by _add_thumbnail_at_rowid(), _dt_selection_changed_callback(), _lib_duplicate_init_callback(), and dt_thumbnail_new().