![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"
#include "common/colorspaces.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/image_cache.h"
#include "common/imageio.h"
#include "control/conf.h"
#include "control/control.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "gui/draw.h"
#include "gui/gtk.h"
#include "views/view.h"
#include <assert.h>
#include <gdk/gdkkeysyms.h>
#include <glib/gstdio.h>
#include <lcms2.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
Functions | |
void | dt_control_init (dt_control_t *s) |
void | dt_control_forbid_change_cursor () |
void | dt_control_allow_change_cursor () |
void | dt_control_change_cursor (dt_cursor_t curs) |
int | dt_control_running () |
void | dt_control_quit () |
void | dt_control_shutdown (dt_control_t *s) |
void | dt_control_cleanup (dt_control_t *s) |
gboolean | dt_control_configure (GtkWidget *da, GdkEventConfigure *event, gpointer user_data) |
static GdkRGBA | lookup_color (GtkStyleContext *context, const char *name) |
void | dt_control_draw_busy_msg (cairo_t *cr, int width, int height) |
void * | dt_control_expose (void *voidptr) |
void | dt_control_mouse_leave () |
void | dt_control_mouse_enter () |
void | dt_control_mouse_moved (double x, double y, double pressure, int which) |
void | dt_control_key_pressed (GdkEventKey *event) |
void | dt_control_button_released (double x, double y, int which, uint32_t state) |
static void | _dt_ctl_switch_mode_prepare () |
static gboolean | _dt_ctl_switch_mode_to (gpointer user_data) |
static gboolean | _dt_ctl_switch_mode_to_by_view (gpointer user_data) |
void | dt_ctl_switch_mode_to (const char *mode) |
void | dt_ctl_switch_mode_to_by_view (const dt_view_t *view) |
void | dt_ctl_reload_view (const char *mode) |
static gboolean | _dt_ctl_log_message_timeout_callback (gpointer data) |
static gboolean | _dt_ctl_toast_message_timeout_callback (gpointer data) |
void | dt_control_button_pressed (double x, double y, double pressure, int which, int type, uint32_t state) |
static gboolean | _redraw_center (gpointer user_data) |
void | dt_control_log (const char *msg,...) |
static void | _toast_log (const gboolean markup, const char *msg, va_list ap) |
void | dt_toast_log (const char *msg,...) |
void | dt_toast_markup_log (const char *msg,...) |
void | dt_control_log_busy_enter () |
void | dt_control_toast_busy_enter () |
void | dt_control_log_busy_leave () |
void | dt_control_toast_busy_leave () |
void | dt_control_queue_redraw () |
request redraw of the workspace. This redraws the whole workspace within a gdk critical section to prevent several threads to carry out a redraw which will end up in crashes. | |
void | dt_control_queue_redraw_center () |
request redraw of center window. This redraws the center view within a gdk critical section to prevent several threads to carry out the redraw. | |
void | dt_control_navigation_redraw () |
request redraw of the navigation widget. This redraws the wiget of the navigation module. | |
void | dt_control_log_redraw () |
request redraw of the log widget. This redraws the message label. | |
void | dt_control_toast_redraw () |
request redraw of the toast widget. This redraws the message label. | |
static int | _widget_queue_draw (void *widget) |
void | dt_control_queue_redraw_widget (GtkWidget *widget) |
threadsafe request of redraw of specific widget. Use this function if you need to redraw a specific widget if your current thread context is not gtk main thread. | |
void | dt_control_hinter_message (const struct dt_control_t *s, const char *message) |
int32_t | dt_control_get_mouse_over_id () |
void | dt_control_set_mouse_over_id (int32_t value) |
int32_t | dt_control_get_keyboard_over_id () |
void | dt_control_set_keyboard_over_id (int32_t value) |
float | dt_control_get_dev_zoom_x () |
void | dt_control_set_dev_zoom_x (float value) |
float | dt_control_get_dev_zoom_y () |
void | dt_control_set_dev_zoom_y (float value) |
float | dt_control_get_dev_zoom_scale () |
void | dt_control_set_dev_zoom_scale (float value) |
int | dt_control_get_dev_closeup () |
void | dt_control_set_dev_closeup (int value) |
dt_dev_zoom_t | dt_control_get_dev_zoom () |
void | dt_control_set_dev_zoom (dt_dev_zoom_t value) |
|
static |
|
static |
|
static |
References _dt_ctl_switch_mode_prepare(), darktable, dt_view_manager_switch(), FALSE, and darktable_t::view_manager.
Referenced by dt_ctl_reload_view(), and dt_ctl_switch_mode_to().
|
static |
References _dt_ctl_switch_mode_prepare(), darktable, dt_view_manager_switch_by_view(), FALSE, view(), and darktable_t::view_manager.
Referenced by dt_ctl_switch_mode_to_by_view().
|
static |
|
static |
References dt_control_log_redraw(), dt_control_toast_redraw(), and FALSE.
Referenced by _toast_log(), and dt_control_log().
|
static |
References _dt_ctl_toast_message_timeout_callback(), _redraw_center(), darktable_t::control, darktable, DT_CTL_TOAST_MSG_SIZE, DT_CTL_TOAST_SIZE, DT_CTL_TOAST_TIMEOUT, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::toast_ack, dt_control_t::toast_message, dt_control_t::toast_message_timeout_id, dt_control_t::toast_mutex, and dt_control_t::toast_pos.
Referenced by dt_toast_log(), and dt_toast_markup_log().
|
static |
References FALSE.
Referenced by dt_control_queue_redraw_widget().
void dt_control_allow_change_cursor | ( | ) |
References darktable_t::control, darktable, FALSE, and dt_control_t::lock_cursor_shape.
Referenced by _main_do_event_help(), and _restore_default_cursor().
void dt_control_button_pressed | ( | double | x, |
double | y, | ||
double | pressure, | ||
int | which, | ||
int | type, | ||
uint32_t | state | ||
) |
References dt_control_t::button_down, dt_control_t::button_down_which, dt_control_t::button_type, dt_control_t::button_x, dt_control_t::button_y, darktable_t::control, darktable, DT_CTL_LOG_SIZE, DT_CTL_TOAST_SIZE, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_view_manager_button_pressed(), dt_control_t::height, dt_control_t::log_ack, dt_control_t::log_message_timeout_id, dt_control_t::log_mutex, dt_control_t::log_pos, dt_control_t::toast_ack, dt_control_t::toast_message_timeout_id, dt_control_t::toast_mutex, dt_control_t::toast_pos, type, and darktable_t::view_manager.
Referenced by _button_pressed().
References dt_control_t::button_down, dt_control_t::button_down_which, darktable_t::control, darktable, dt_view_manager_button_released(), and darktable_t::view_manager.
Referenced by _button_released().
void dt_control_change_cursor | ( | dt_cursor_t | curs | ) |
References darktable_t::control, darktable, dt_ui_main_window(), darktable_t::gui, dt_control_t::lock_cursor_shape, and dt_gui_gtk_t::ui.
Referenced by _enter_edit_mode(), _enter_edit_mode(), _hide_mouse(), _main_do_event_help(), _page_new_area_clicked(), _panel_handle_cursor_callback(), _restore_default_cursor(), button_pressed(), button_pressed(), button_pressed(), button_released(), button_released(), button_released(), contextual_help_callback(), dt_gui_gtk_init(), dt_iop_request_focus(), dt_view_manager_switch_by_view(), enter(), leave(), mouse_leave(), mouse_moved(), mouse_moved(), mouse_moved(), and switch_cursors().
void dt_control_cleanup | ( | dt_control_t * | s | ) |
References dt_control_t::cond_mutex, dt_control_jobs_cleanup(), dt_pthread_mutex_destroy(), dt_control_t::log_mutex, dt_control_t::mutex, dt_control_t::progress_system, dt_control_t::queue_mutex, dt_control_t::res_mutex, dt_control_t::run_mutex, and dt_control_t::toast_mutex.
Referenced by dt_cleanup().
gboolean dt_control_configure | ( | GtkWidget * | da, |
GdkEventConfigure * | event, | ||
gpointer | user_data | ||
) |
References darktable, dt_view_manager_configure(), TRUE, and darktable_t::view_manager.
Referenced by _configure().
void dt_control_draw_busy_msg | ( | cairo_t * | cr, |
int | width, | ||
int | height | ||
) |
References darktable_t::bauhaus, darktable, DT_GUI_COLOR_LOG_BG, DT_GUI_COLOR_LOG_FG, dt_gui_gtk_set_source_rgb(), DT_PIXEL_APPLY_DPI, height, dt_bauhaus_t::pango_font_desc, and width.
Referenced by _thumb_draw_image(), _thumb_draw_image(), and dt_control_expose().
References darktable_t::control, darktable, dt_cairo_image_surface_create(), dt_cairo_image_surface_get_height(), dt_cairo_image_surface_get_width(), dt_control_draw_busy_msg(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_center(), dt_view_manager_expose(), darktable_t::gui, height, dt_control_t::height, dt_control_t::log_busy, dt_control_t::log_mutex, lookup_color(), dt_gui_gtk_t::surface, dt_gui_gtk_t::ui, darktable_t::view_manager, width, and dt_control_t::width.
Referenced by _draw().
void dt_control_forbid_change_cursor | ( | ) |
References darktable_t::control, darktable, dt_control_t::lock_cursor_shape, and TRUE.
Referenced by _main_do_event_help(), and contextual_help_callback().
int dt_control_get_dev_closeup | ( | ) |
References darktable_t::control, darktable, dt_control_t::dev_closeup, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _circle_events_mouse_moved(), _draw_near_point(), _ellipse_events_mouse_moved(), _gradient_events_button_released(), _gradient_events_mouse_moved(), _lib_navigation_draw_callback(), _lib_navigation_set_position(), _lib_snapshots_add_button_clicked_callback(), _path_events_mouse_moved(), _update_darkroom_roi(), _zoom_preset_change(), button_pressed(), button_pressed(), button_released(), dt_dev_get_pointer_zoom_pos(), dt_masks_events_post_expose(), expose(), get_zoom_scale(), gui_post_expose(), gui_post_expose(), mouse_in_imagearea(), mouse_moved(), mouse_moved(), process(), and scrolled().
dt_dev_zoom_t dt_control_get_dev_zoom | ( | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _circle_events_mouse_moved(), _draw_near_point(), _ellipse_events_mouse_moved(), _gradient_events_button_released(), _gradient_events_mouse_moved(), _lib_navigation_draw_callback(), _lib_navigation_set_position(), _lib_snapshots_add_button_clicked_callback(), _path_events_mouse_moved(), _update_darkroom_roi(), _zoom_preset_change(), button_pressed(), button_pressed(), button_released(), dt_dev_get_pointer_zoom_pos(), dt_masks_events_post_expose(), expose(), get_zoom_scale(), gui_post_expose(), gui_post_expose(), mouse_moved(), mouse_moved(), process(), and scrolled().
float dt_control_get_dev_zoom_scale | ( | ) |
float dt_control_get_dev_zoom_x | ( | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom_x, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _brush_events_post_expose(), _circle_events_post_expose(), _ellipse_events_post_expose(), _gradient_events_post_expose(), _lib_navigation_draw_callback(), _lib_navigation_set_position(), _lib_snapshots_add_button_clicked_callback(), _path_events_post_expose(), _update_darkroom_roi(), _zoom_preset_change(), button_released(), dt_dev_get_pointer_zoom_pos(), dt_masks_events_post_expose(), expose(), gui_post_expose(), gui_post_expose(), mouse_moved(), and scrolled().
float dt_control_get_dev_zoom_y | ( | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom_y, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _brush_events_post_expose(), _circle_events_post_expose(), _ellipse_events_post_expose(), _gradient_events_post_expose(), _lib_navigation_draw_callback(), _lib_navigation_set_position(), _lib_snapshots_add_button_clicked_callback(), _path_events_post_expose(), _update_darkroom_roi(), _zoom_preset_change(), button_released(), dt_dev_get_pointer_zoom_pos(), dt_masks_events_post_expose(), expose(), gui_post_expose(), gui_post_expose(), mouse_moved(), and scrolled().
int32_t dt_control_get_keyboard_over_id | ( | ) |
References darktable_t::control, darktable, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::global_mutex, and dt_control_t::keyboard_over_id.
Referenced by dt_act_on_get_first_image(), dt_act_on_get_images(), dt_act_on_get_images_nb(), dt_thumbtable_key_pressed_grid(), and dt_thumbtable_scroll_to_selection().
int32_t dt_control_get_mouse_over_id | ( | ) |
References darktable_t::control, darktable, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::global_mutex, and dt_control_t::mouse_over_id.
Referenced by _get_image_datetime(), _hovered_cb(), _init_treeview(), _jump_to(), _metadata_view_update_values(), _mouse_over_image_callback(), _on_mouse_over_image_changed(), _populate_thumbnails(), dt_thumbtable_key_pressed_grid(), dt_thumbtable_scroll_to_selection(), mouse_moved(), and try_enter().
void dt_control_hinter_message | ( | const struct dt_control_t * | s, |
const char * | message | ||
) |
sets the hinter message
References darktable, dt_hinter_set_message(), darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by _blendop_masks_show_and_edit(), _set_hinter_message(), btn_make_radio_callback(), button_released(), dt_collection_hint_message_internal(), gui_focus(), lua_print_hinter(), mouse_moved(), mouse_moved(), and switch_cursors().
void dt_control_init | ( | dt_control_t * | s | ) |
References dt_control_t::button_down, dt_control_t::button_down_which, dt_control_t::cond, dt_control_t::cond_mutex, dt_control_t::dev_closeup, dt_control_t::dev_zoom, dt_control_t::dev_zoom_x, dt_control_t::dev_zoom_y, dt_control_jobs_init(), dt_pthread_mutex_init(), DT_ZOOM_FIT, FALSE, dt_control_t::global_mutex, dt_control_t::gui_thread, dt_control_t::keyboard_over_id, dt_control_t::lock_cursor_shape, dt_control_t::log_ack, dt_control_t::log_busy, dt_control_t::log_message_timeout_id, dt_control_t::log_mutex, dt_control_t::log_pos, dt_control_t::mouse_over_id, dt_control_t::mutex, dt_control_t::progress_system, dt_control_t::queue_mutex, dt_control_t::res_mutex, dt_control_t::run_mutex, dt_control_t::toast_ack, dt_control_t::toast_busy, dt_control_t::toast_message_timeout_id, dt_control_t::toast_mutex, and dt_control_t::toast_pos.
Referenced by dt_init().
void dt_control_key_pressed | ( | GdkEventKey * | event | ) |
References darktable, dt_view_manager_key_pressed(), and darktable_t::view_manager.
Referenced by _key_pressed().
void dt_control_log | ( | const char * | msg, |
... | |||
) |
References _dt_ctl_log_message_timeout_callback(), _redraw_center(), darktable_t::control, darktable, DT_CTL_LOG_MSG_SIZE, DT_CTL_LOG_SIZE, DT_CTL_LOG_TIMEOUT, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::log_ack, dt_control_t::log_message, dt_control_t::log_message_timeout_id, dt_control_t::log_mutex, and dt_control_t::log_pos.
Referenced by _apply_style_before_export(), _click_on_view(), _control_import_job_run(), _create_dir(), _darkroom_ui_apply_style_activate_callback(), _darkroom_ui_apply_style_popupmenu(), _default_process_tiling_ptp(), _default_process_tiling_roi(), _deflicker_prepare_histogram(), _display_mask_callback(), _do_get_structure_auto(), _do_get_structure_lines(), _do_get_structure_quad(), _dt_collection_changed_callback(), _dt_dev_raster_mask_check(), _edit_preset(), _edit_preset_response(), _event_aspect_presets_changed(), _export_button_clicked(), _export_button_clicked(), _export_image(), _film_import1(), _generic_dt_control_fileop_images_job_run(), _gui_styles_dialog_run(), _gui_styles_edit_style_response(), _gui_styles_new_style_response(), _image_import_internal(), _import_button_clicked(), _import_image(), _import_preset_from_file(), _main_do_event_help(), _menuitem_delete_preset(), _name_editing_done(), _page_new_area_clicked(), _paper_size(), _piwigo_refresh_albums(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_delete_tag(), _pop_menu_dictionary_set_as_tag(), _pop_undo(), _print_button_clicked(), _print_job_run(), _print_opencl_errors(), _process_file_list(), _refine_with_detail_mask(), _reset_form_creation(), _set_paper_size(), _set_test_path(), _step_state(), _sync_params(), _thumbtable_dnd_import_check(), aspect_presets_changed(), auto_adjust_contrast_boost(), auto_adjust_exposure_boost(), button_clicked(), button_pressed(), calculate_clut_3dl(), calculate_clut_cube(), calculate_clut_haldclut(), commit_params(), commit_params(), commit_params_late(), copy_callback(), copy_parts_callback(), do_crop(), do_fit(), dt_configure_runtime_performance(), dt_control_datetime_job_run(), dt_control_export(), dt_control_export_job_run(), dt_control_gpx_apply_job_run(), dt_control_local_copy_images_job_run(), dt_control_merge_hdr_job_run(), dt_control_merge_hdr_process(), dt_control_remove_images_job_run(), dt_develop_blend_process(), dt_exif_xmp_write(), dt_film_remove(), dt_gui_hist_dialog_new(), dt_gui_preferences_show(), dt_history_copy_and_paste_on_image(), dt_image_check_camera_missing_sample(), dt_image_local_copy_reset(), dt_image_local_copy_set(), dt_image_local_copy_synch(), dt_image_rename(), dt_imageio_export_with_flags(), dt_imageio_open(), dt_iop_gui_update_blending(), dt_lib_presets_apply(), dt_lightroom_import(), dt_load_from_string(), dt_masks_group_add_form(), dt_masks_read_masks_history(), dt_multiple_styles_apply_to_list(), dt_noiseprofile_init(), dt_pixel_cache_new_entry(), dt_print_file(), dt_pwstorage_new(), dt_ratings_apply_on_image(), dt_style_save(), dt_styles_apply_style_item(), dt_styles_apply_to_list(), dt_styles_create_from_list(), dt_styles_create_from_style(), dt_styles_create_style_header(), dt_styles_import_from_file(), dt_styles_save_to_file(), dt_thumbtable_select_all(), dt_thumbtable_select_range(), dual_demosaic(), duplicate_callback(), enter(), export_clicked(), fast_eigf_surface_blur(), fast_surface_blur(), finalize_store(), find_coeffs(), gui_changed(), gui_init(), gui_update(), legacy_params(), lmmse_demosaic(), lua_print(), new_history_callback(), paste_all_callback(), paste_parts_callback(), prepare_matrices(), process(), process(), process(), process(), process_drago(), process_internal(), pseudo_solve(), rcd_demosaic(), reconstruct_highlights(), reload_defaults(), rt_display_wavelet_scale_callback(), rt_select_algorithm_callback(), rt_showmask_callback(), sanity_check(), set_new_params_interactive(), smoothing_callback(), solve_hermitian(), store(), store(), toneeq_process(), try_enter(), view_popup_menu_onSearchFilmroll(), workicc_changed(), write_image(), write_image(), write_image(), and write_image().
void dt_control_log_busy_enter | ( | ) |
void dt_control_log_busy_leave | ( | ) |
References darktable_t::control, darktable, dt_control_queue_redraw_center(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::log_busy, and dt_control_t::log_mutex.
Referenced by _lib_duplicate_thumb_release_callback(), dt_dev_process_image_job(), dt_dev_process_preview_job(), and gui_post_expose().
void dt_control_log_redraw | ( | ) |
request redraw of the log widget. This redraws the message label.
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_CONTROL_LOG_REDRAW, and darktable_t::signals.
Referenced by _dt_ctl_log_message_timeout_callback(), and _redraw_center().
void dt_control_mouse_enter | ( | ) |
References darktable, dt_view_manager_mouse_enter(), and darktable_t::view_manager.
Referenced by _center_enter().
void dt_control_mouse_leave | ( | ) |
References darktable, dt_view_manager_mouse_leave(), and darktable_t::view_manager.
Referenced by _center_leave().
References darktable, dt_view_manager_mouse_moved(), and darktable_t::view_manager.
Referenced by _mouse_moved().
void dt_control_navigation_redraw | ( | ) |
request redraw of the navigation widget. This redraws the wiget of the navigation module.
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_CONTROL_NAVIGATION_REDRAW, and darktable_t::signals.
Referenced by _enter_edit_mode(), _enter_edit_mode(), button_released(), gui_changed(), mouse_moved(), and scrolled().
void dt_control_queue_redraw | ( | ) |
request redraw of the workspace. This redraws the whole workspace within a gdk critical section to prevent several threads to carry out a redraw which will end up in crashes.
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_CONTROL_REDRAW_ALL, and darktable_t::signals.
Referenced by _export_image(), _film_strip_activated(), _view_print_settings(), _zoom_preset_change(), async_redraw(), clear_caches_callback(), dt_dev_process_preview_job(), dt_image_import_job_run(), dt_lib_gui_set_expanded(), enter(), and process_clusters().
void dt_control_queue_redraw_center | ( | ) |
request redraw of center window. This redraws the center view within a gdk critical section to prevent several threads to carry out the redraw.
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_CONTROL_REDRAW_CENTER, and darktable_t::signals.
Referenced by _add_shape(), _blendop_masks_add_shape(), _color_picker_callback_button_press(), _display_samples_changed(), _do_get_structure_lines(), _do_get_structure_quad(), _drag_and_drop_received(), _drag_motion_received(), _edit_masks(), _enter_edit_mode(), _enter_edit_mode(), _event_fit_both_button_clicked(), _event_fit_h_button_clicked(), _event_fit_v_button_clicked(), _event_process_after_preview_callback(), _event_structure_auto_clicked(), _event_structure_lines_clicked(), _event_structure_quad_clicked(), _expose_again(), _film_import1(), _generic_dt_control_fileop_images_job_run(), _grid_callback(), _grid_horizontal_changed(), _grid_size_changed(), _grid_subdiv_changed(), _grid_vertical_changed(), _gui_delete_callback(), _gui_set_single_expanded(), _guides_quickbutton_clicked(), _height_changed(), _iso_12646_quickbutton_clicked(), _lib_duplicate_preview_updated_callback(), _lib_duplicate_thumb_release_callback(), _lib_navigation_set_position(), _lib_snapshots_toggled_callback(), _live_sample_button(), _load_image_full_page(), _page_clear_area_clicked(), _page_delete_area(), _refresh_display(), _remove_sample_cb(), _sample_enter_callback(), _sample_leave_callback(), _set_orientation(), _settings_colors_changed(), _settings_contrast_changed(), _settings_flip_changed(), _settings_guides_changed(), _snap_grid_callback(), _tree_add_brush(), _tree_add_circle(), _tree_add_ellipse(), _tree_add_gradient(), _tree_add_path(), _tree_difference(), _tree_exclusion(), _tree_intersection(), _tree_inverse(), _tree_selection_change(), _tree_union(), _width_changed(), _x_changed(), _y_changed(), aspect_presets_changed(), button_pressed(), button_pressed(), button_pressed(), button_released(), button_released(), checker_changed_callback(), delete_history_callback(), display_borders_callback(), display_brightness_callback(), do_crop(), dt_control_delete_images_job_run(), dt_control_duplicate_images_job_run(), dt_control_flip_images_job_run(), dt_control_local_copy_images_job_run(), dt_control_log_busy_enter(), dt_control_log_busy_leave(), dt_control_merge_hdr_job_run(), dt_control_monochrome_images_job_run(), dt_control_refresh_exif_run(), dt_control_remove_images_job_run(), dt_control_toast_busy_enter(), dt_control_toast_busy_leave(), dt_dev_configure_real(), dt_dev_process_image_job(), dt_dev_snapshot_request(), dt_film_open(), dt_image_local_copy_reset(), dt_image_local_copy_set(), dt_iop_request_focus(), dt_masks_set_edit_mode(), entry_activated(), gui_changed(), gui_reset(), gui_update(), import_images(), key_swap_callback(), keystone_type_changed(), load_xmp_callback(), mouse_leave(), mouse_leave(), mouse_moved(), mouse_moved(), mouse_moved(), mouse_moved(), paste_all_callback(), paste_parts_callback(), process_job_run(), row_activated_with_event(), rt_add_shape(), rt_select_algorithm_callback(), rt_show_forms_for_current_scale(), safety_changed_callback(), scrolled(), scrolled(), set_params(), start_profiling_callback(), switch_cursors(), sync_pipe(), and ungroup_images_callback().
void dt_control_queue_redraw_widget | ( | GtkWidget * | widget | ) |
threadsafe request of redraw of specific widget. Use this function if you need to redraw a specific widget if your current thread context is not gtk main thread.
References _widget_queue_draw(), and dt_control_running().
Referenced by _blendop_blend_order_clicked(), _blendop_blendif_polarity_callback(), _blendop_blendif_suppress_toggled(), _blendop_masks_polarity_callback(), _iop_zonesystem_redraw_preview_callback(), _lib_navigation_control_redraw_callback(), _raster_polarity_callback(), apply_auto_black(), apply_auto_Dmax(), apply_auto_Dmin(), apply_auto_exposure(), apply_auto_offset(), apply_auto_WB_high(), apply_auto_WB_low(), collect_histogram_on_CPU(), color_picker_apply(), gui_changed(), gui_update(), process_clusters(), Wb_high_norm_callback(), and Wb_low_norm_callback().
void dt_control_quit | ( | ) |
int dt_control_running | ( | ) |
get threadsafe running state.
References darktable_t::control, darktable, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::run_mutex, and dt_control_t::running.
Referenced by dt_colorspaces_set_display_profile(), dt_control_queue_redraw_widget(), dt_control_signal_raise(), dt_control_work(), dt_control_work_res(), dt_control_worker_kicker(), and gui_reset().
void dt_control_set_dev_closeup | ( | int | value | ) |
References darktable_t::control, darktable, dt_control_t::dev_closeup, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _lib_snapshots_toggled_callback(), _zoom_preset_change(), button_released(), enter(), reset(), and scrolled().
void dt_control_set_dev_zoom | ( | dt_dev_zoom_t | value | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _lib_snapshots_toggled_callback(), _zoom_preset_change(), button_released(), enter(), reset(), and scrolled().
void dt_control_set_dev_zoom_scale | ( | float | value | ) |
void dt_control_set_dev_zoom_x | ( | float | value | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom_x, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _lib_navigation_set_position(), _lib_snapshots_toggled_callback(), _zoom_preset_change(), button_released(), enter(), mouse_moved(), reset(), and scrolled().
void dt_control_set_dev_zoom_y | ( | float | value | ) |
References darktable_t::control, darktable, dt_control_t::dev_zoom_y, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::global_mutex.
Referenced by _lib_navigation_set_position(), _lib_snapshots_toggled_callback(), _zoom_preset_change(), button_released(), enter(), mouse_moved(), reset(), and scrolled().
void dt_control_set_keyboard_over_id | ( | int32_t | value | ) |
References darktable_t::control, darktable, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::global_mutex, and dt_control_t::keyboard_over_id.
Referenced by _culling_mode(), and dt_thumbtable_dispatch_over().
void dt_control_set_mouse_over_id | ( | int32_t | value | ) |
References darktable_t::control, darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), DT_SIGNAL_MOUSE_OVER_IMAGE_CHANGE, dt_control_t::global_mutex, dt_control_t::keyboard_over_id, dt_control_t::mouse_over_id, and darktable_t::signals.
Referenced by _culling_mode(), _dev_change_image(), _display_next_image(), _event_main_enter(), _event_main_leave(), _event_main_leave(), _event_main_motion(), _event_main_press(), _view_map_button_press_callback(), _view_map_motion_notify_callback(), dt_collection_load_filmroll(), dt_load_from_string(), dt_thumbtable_dispatch_over(), enter(), mouse_leave(), mouse_moved(), and reset().
void dt_control_shutdown | ( | dt_control_t * | s | ) |
References dt_control_t::cond, dt_control_t::cond_mutex, DT_CTL_WORKER_RESERVED, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::kick_on_workers_thread, dt_control_t::num_threads, dt_control_t::run_mutex, dt_control_t::running, dt_control_t::thread, and dt_control_t::thread_res.
Referenced by dt_cleanup().
void dt_control_toast_busy_enter | ( | ) |
void dt_control_toast_busy_leave | ( | ) |
References darktable_t::control, darktable, dt_control_queue_redraw_center(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::toast_busy, and dt_control_t::toast_mutex.
Referenced by _lib_duplicate_thumb_release_callback(), dt_dev_process_image_job(), and dt_dev_process_preview_job().
void dt_control_toast_redraw | ( | ) |
request redraw of the toast widget. This redraws the message label.
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_CONTROL_TOAST_REDRAW, and darktable_t::signals.
Referenced by _dt_ctl_toast_message_timeout_callback(), and _redraw_center().
void dt_ctl_reload_view | ( | const char * | mode | ) |
void dt_ctl_switch_mode_to | ( | const char * | mode | ) |
References _dt_ctl_switch_mode_to(), darktable, dt_ctl_switch_mode_to(), dt_view_manager_get_current_view(), dt_view_t::module_name, and darktable_t::view_manager.
Referenced by _dt_collection_change_view_after_import(), _home_callback(), _view_map_button_press_callback(), dt_cleanup(), dt_ctl_reload_view(), dt_ctl_switch_mode_to(), dt_init(), and dt_load_from_string().
References _dt_ctl_switch_mode_to_by_view(), darktable, dt_view_manager_get_current_view(), view(), and darktable_t::view_manager.
Referenced by _current_view_cb().
void dt_toast_log | ( | const char * | msg, |
... | |||
) |
References _toast_log(), and FALSE.
Referenced by _action_request_focus(), _circle_events_mouse_scrolled(), _ellipse_events_mouse_scrolled(), _gradient_events_mouse_scrolled(), _init_hardness(), _init_opacity(), _init_size(), _path_events_mouse_scrolled(), _scroll_wrap_scroll(), _toast_log_lat_lon(), _warn_about_history_overuse(), dt_colorlabels_toggle_label_on_list(), dt_dev_history_auto_save(), dt_ratings_apply_on_list(), and lua_print_toast().
void dt_toast_markup_log | ( | const char * | msg, |
... | |||
) |
References _toast_log(), and TRUE.
|
static |
References name.
Referenced by dt_control_expose().