![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "widgets/bauhaus.h"#include "common/logging.h"#include "system/macros.h"#include "common/module_versioning.h"#include "develop/iop_order.h"#include "control/control.h"#include "develop/develop.h"#include "develop/dev_history.h"#include "develop/dev_snapshot.h"#include "widgets/paint.h"#include "gui/color_picker_proxy.h"#include "widgets/draw.h"#include "libs/lib.h"#include "libs/lib_api.h"#include "views/view.h"#include <math.h>#include "gui/window_manager.h"#include "widgets/scroll_wrap.h"
Include dependency graph for snapshots.c:Go to the source code of this file.
Data Structures | |
| struct | dt_lib_snapshot_t |
| struct | dt_lib_snapshots_t |
Macros | |
| #define | DT_LIB_SNAPSHOTS_COUNT 4 |
| #define | SNAP_LOG(...) dt_print(DT_DEBUG_DEV, __VA_ARGS__) |
| #define | HANDLE_SIZE DT_PIXEL_APPLY_DPI_DPP(36) |
Typedefs | |
| typedef struct dt_lib_snapshot_t | dt_lib_snapshot_t |
| typedef struct dt_lib_snapshots_t | dt_lib_snapshots_t |
Variables | |
| static int | _lib_snapshot_rotation_cnt = 0 |
| #define DT_LIB_SNAPSHOTS_COUNT 4 |
Definition at line 65 of file snapshots.c.
| #define HANDLE_SIZE DT_PIXEL_APPLY_DPI_DPP(36) |
Definition at line 67 of file snapshots.c.
| #define SNAP_LOG | ( | ... | ) | dt_print(DT_DEBUG_DEV, __VA_ARGS__) |
Definition at line 66 of file snapshots.c.
| typedef struct dt_lib_snapshot_t dt_lib_snapshot_t |
| typedef struct dt_lib_snapshots_t dt_lib_snapshots_t |
|
static |
Definition at line 203 of file snapshots.c.
References dt_bauhaus_get_global(), dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, FALSE, inv, and x.
Referenced by gui_post_expose().
|
static |
Definition at line 137 of file snapshots.c.
References _lib_snapshot_clear_state(), dt_control_change_cursor_by_name_and_flush(), dt_control_commit_cursor(), dt_dev_get_history_end_ext(), dt_dev_snapshot_capture(), dt_history_duplicate(), dt_ioppr_iop_order_copy_deep(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), dt_develop_t::history, dt_develop_t::history_mutex, dt_image_t::id, dt_develop_t::image_storage, dt_develop_t::iop_order_list, IS_NULL_PTR, and SNAP_LOG.
Referenced by _lib_snapshots_add_button_clicked_callback().
|
static |
Definition at line 125 of file snapshots.c.
References dt_dev_snapshot_clear(), dt_lib_snapshot_t::history_end, dt_lib_snapshot_t::imgid, IS_NULL_PTR, dt_lib_snapshot_t::snap, and UNKNOWN_IMAGE.
Referenced by _lib_snapshot_capture_state(), _lib_snapshots_add_button_clicked_callback(), _lib_snapshots_delete_button_clicked_callback(), gui_cleanup(), and gui_reset().
|
static |
Definition at line 118 of file snapshots.c.
References dt_dev_snapshot_t::engine, dt_lib_snapshot_t::history_end, dt_lib_snapshot_t::imgid, dt_lib_snapshot_t::snap, and UNKNOWN_IMAGE.
Referenced by _lib_snapshots_delete_button_clicked_callback().
|
static |
Definition at line 565 of file snapshots.c.
References _lib_snapshot_capture_state(), _lib_snapshot_clear_state(), d, dt_lib_module_t::data, dt_dev_get_global(), dt_dev_get_history_end_ext(), dt_dev_snapshot_clear(), dt_free, dt_history_item_get_name(), dt_lib_snapshot_t::history_end, dt_lib_snapshot_t::imgid, IS_NULL_PTR, k, name, r, dt_lib_snapshot_t::row, and dt_lib_snapshot_t::snap.
Referenced by gui_init().
|
static |
Definition at line 652 of file snapshots.c.
References _lib_snapshot_clear_state(), _lib_snapshot_reset_fields(), d, dt_lib_module_t::data, dt_control_queue_redraw_center(), FALSE, IS_NULL_PTR, k, p, and r.
Referenced by gui_init().
|
static |
Definition at line 701 of file snapshots.c.
References d, dt_lib_module_t::data, dt_control_queue_redraw_center(), dt_dev_snapshot_is_valid(), FALSE, k, and dt_lib_snapshot_t::snap.
Referenced by gui_init().
| int button_pressed | ( | struct dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| double | pressure, | ||
| int | which, | ||
| int | type, | ||
| uint32_t | state | ||
| ) |
Definition at line 359 of file snapshots.c.
References _lib_snapshot_rotation_cnt, d, dt_lib_module_t::data, dt_control_queue_redraw_center(), dt_dev_get_global(), DT_GUI_MOUSE_EFFECT_RADIUS, dt_iop_color_picker_is_visible(), TRUE, and x.
| int button_released | ( | struct dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| int | which, | ||
| uint32_t | state | ||
| ) |
Definition at line 339 of file snapshots.c.
References d, dt_lib_module_t::data, dt_dev_get_global(), dt_iop_color_picker_is_visible(), FALSE, mouse_moved(), and x.
| uint32_t container | ( | dt_lib_module_t * | self | ) |
Definition at line 192 of file snapshots.c.
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
Definition at line 554 of file snapshots.c.
References _lib_snapshot_clear_state(), d, dt_lib_module_t::data, dt_free, IS_NULL_PTR, and k.
| void gui_init | ( | dt_lib_module_t * | self | ) |
Definition at line 484 of file snapshots.c.
References _lib_snapshots_add_button_clicked_callback(), _lib_snapshots_delete_button_clicked_callback(), _lib_snapshots_toggled_callback(), d, dt_lib_module_t::data, dt_action_button_new(), DT_GUI_BOX_SPACING, DT_UI_RESIZE_DYNAMIC, dt_ui_scroll_wrap(), FALSE, k, TRUE, and dt_lib_module_t::widget.
| void gui_post_expose | ( | dt_lib_module_t * | self, |
| cairo_t * | cri, | ||
| int32_t | width, | ||
| int32_t | height, | ||
| int32_t | pointerx, | ||
| int32_t | pointery | ||
| ) |
Definition at line 228 of file snapshots.c.
References _draw_sym(), d, dt_view_manager_t::darkroom, dt_lib_module_t::data, dt_control_queue_cursor_by_name(), dt_dev_get_global(), dt_dev_get_image_box_in_widget(), dt_dev_snapshot_draw(), dt_dev_snapshot_is_valid(), dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, dt_view_manager_get_global(), dtgtk_cairo_paint_refresh(), FALSE, HANDLE_SIZE, height, IS_NULL_PTR, dt_view_manager_t::proxy, dt_view_manager_t::set_default_cursor, size, dt_lib_snapshot_t::snap, TRUE, view, dt_view_manager_t::view, width, and x.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
Definition at line 466 of file snapshots.c.
References _lib_snapshot_clear_state(), d, dt_lib_module_t::data, dt_control_queue_redraw_center(), FALSE, and k.
| int mouse_moved | ( | dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| double | pressure, | ||
| int | which | ||
| ) |
Definition at line 417 of file snapshots.c.
References d, dt_lib_module_t::data, dt_control_queue_redraw_center(), dt_dev_get_global(), DT_GUI_MOUSE_EFFECT_RADIUS, dt_iop_color_picker_is_visible(), HANDLE_SIZE, and x.
Referenced by button_released().
| const char * name | ( | struct dt_lib_module_t * | self | ) |
Definition at line 181 of file snapshots.c.
| int position | ( | ) |
Definition at line 197 of file snapshots.c.
| const char ** views | ( | dt_lib_module_t * | self | ) |
Definition at line 186 of file snapshots.c.
References v.
|
static |
Definition at line 357 of file snapshots.c.
Referenced by button_pressed().