![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "bauhaus/bauhaus.h"#include "common/debug.h"#include "common/file_location.h"#include "common/history.h"#include "common/iop_order.h"#include "control/conf.h"#include "control/control.h"#include "develop/develop.h"#include "develop/dev_history.h"#include "develop/dev_snapshot.h"#include "dtgtk/paint.h"#include "gui/color_picker_proxy.h"#include "gui/gtk.h"#include "gui/draw.h"#include "libs/lib.h"#include "libs/lib_api.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 61 of file snapshots.c.
| #define HANDLE_SIZE DT_PIXEL_APPLY_DPI_DPP(36) |
Definition at line 63 of file snapshots.c.
| #define SNAP_LOG | ( | ... | ) | dt_print(DT_DEBUG_DEV, __VA_ARGS__) |
Definition at line 62 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 198 of file snapshots.c.
References darktable_t::bauhaus, darktable, dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, FALSE, inv, dt_bauhaus_t::pango_font_desc, and x.
Referenced by gui_post_expose().
|
static |
Definition at line 132 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_lib_snapshot_t::history_end, dt_develop_t::history_mutex, dt_image_t::id, dt_develop_t::image_storage, dt_lib_snapshot_t::imgid, dt_develop_t::iop_order_list, IS_NULL_PTR, dt_lib_snapshot_t::snap, and SNAP_LOG.
Referenced by _lib_snapshots_add_button_clicked_callback().
|
static |
Definition at line 121 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 110 of file snapshots.c.
References dt_dev_snapshot_t::crop_h, dt_dev_snapshot_t::crop_w, dt_dev_snapshot_t::crop_x, dt_dev_snapshot_t::crop_y, dt_dev_snapshot_t::display_image, dt_dev_snapshot_t::display_scale, dt_lib_snapshot_t::history_end, dt_dev_snapshot_t::image, dt_lib_snapshot_t::imgid, dt_dev_snapshot_t::sample_scale, dt_lib_snapshot_t::snap, and UNKNOWN_IMAGE.
Referenced by _lib_snapshots_delete_button_clicked_callback().
|
static |
Definition at line 542 of file snapshots.c.
References _lib_snapshot_capture_state(), _lib_snapshot_clear_state(), d, darktable, dt_lib_module_t::data, darktable_t::develop, dt_dev_get_history_end_ext(), dt_free, dt_history_item_get_name(), dt_develop_t::history, IS_NULL_PTR, k, name, r, and dt_lib_snapshot_t::row.
Referenced by gui_init().
|
static |
Definition at line 616 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 666 of file snapshots.c.
References d, dt_lib_module_t::data, dt_control_queue_redraw_center(), FALSE, dt_dev_snapshot_t::image, IS_NULL_PTR, 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, darktable, dt_lib_module_t::data, darktable_t::develop, dt_control_queue_redraw_center(), 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, darktable, dt_lib_module_t::data, darktable_t::develop, dt_iop_color_picker_is_visible(), FALSE, mouse_moved(), and x.
| uint32_t container | ( | dt_lib_module_t * | self | ) |
Definition at line 187 of file snapshots.c.
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
Definition at line 531 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 462 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 223 of file snapshots.c.
References _draw_sym(), d, dt_view_manager_t::darkroom, darktable, dt_lib_module_t::data, darktable_t::develop, dt_control_queue_cursor_by_name(), dt_dev_get_image_box_in_widget(), dt_dev_snapshot_draw(), dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, dtgtk_cairo_paint_refresh(), FALSE, HANDLE_SIZE, height, dt_dev_snapshot_t::image, 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, darktable_t::view_manager, width, and x.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
Definition at line 445 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 408 of file snapshots.c.
References d, darktable, dt_lib_module_t::data, darktable_t::develop, dt_control_queue_redraw_center(), DT_GUI_MOUSE_EFFECT_RADIUS, dt_iop_color_picker_is_visible(), FALSE, HANDLE_SIZE, and x.
Referenced by button_released().
| const char * name | ( | struct dt_lib_module_t * | self | ) |
Definition at line 176 of file snapshots.c.
| int position | ( | ) |
Definition at line 192 of file snapshots.c.
| const char ** views | ( | dt_lib_module_t * | self | ) |
Definition at line 181 of file snapshots.c.
References v.
|
static |
Definition at line 357 of file snapshots.c.
Referenced by button_pressed().