![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/debug.h"#include "common/styles.h"#include "common/undo.h"#include "control/conf.h"#include "control/control.h"#include "develop/develop.h"#include "develop/masks.h"#include "gui/gtk.h"#include "gui/styles.h"#include "libs/lib.h"#include "libs/lib_api.h"#include "common/history.h"#include <complex.h>
Include dependency graph for libs/history.c:Data Structures | |
| struct | dt_lib_history_t |
Macros | |
| #define | add_blend_history_change(field, format, label) |
| #define | add_blend_history_change_enum(field, label, list) |
| #define | add_history_change(field, format, label) |
| #define | add_history_change_string(field, label) |
| #define | add_history_change_boolean(field, label) |
Typedefs | |
| typedef struct dt_lib_history_t | dt_lib_history_t |
| typedef enum dt_history_view_column_t | dt_history_view_column_t |
Functions | |
| static gboolean | _lib_history_view_button_press_callback (GtkWidget *widget, GdkEventButton *e, gpointer user_data) |
| static void | _lib_history_change_callback (gpointer instance, gpointer user_data) |
| static void | _lib_history_view_selection_changed (GtkTreeSelection *selection, gpointer user_data) |
| static gboolean | _lib_history_view_query_tooltip (GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip, gpointer user_data) |
| static void | _lib_history_view_cell_set_foreground (GtkTreeViewColumn *column, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
| const char * | name (struct dt_lib_module_t *self) |
| const char ** | views (dt_lib_module_t *self) |
| uint32_t | container (dt_lib_module_t *self) |
| int | position () |
| void | gui_init (dt_lib_module_t *self) |
| void | gui_cleanup (dt_lib_module_t *self) |
| static const char * | _history_icon_name (const gboolean enabled, const gboolean default_enabled, const gboolean always_on, const gboolean deprecated) |
| static gchar * | _lib_history_change_text (dt_introspection_field_t *field, const char *d, gpointer params, gpointer oldpar) |
| static const dt_dev_history_item_t * | _find_previous_history_step (const dt_dev_history_item_t *hitem) |
| static gchar * | _create_tooltip_text (const dt_dev_history_item_t *hitem) |
| static gboolean | _changes_tooltip_callback (GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip) |
| static void | _history_apply_history_end (const int history_end) |
| static void | _history_show_module_for_end (const int history_end) |
| static void | _history_store_add_original (dt_lib_history_t *d) |
| static gchar * | _history_tooltip_with_hint (const dt_dev_history_item_t *hitem) |
| static void | _history_store_prepend_item (dt_lib_history_t *d, const dt_dev_history_item_t *hitem, const int history_end) |
| static void | _history_select_row_for_end (dt_lib_history_t *d, const int history_end) |
| void | gui_reset (dt_lib_module_t *self) |
| #define add_blend_history_change | ( | field, | |
| format, | |||
| label | |||
| ) |
| #define add_blend_history_change_enum | ( | field, | |
| label, | |||
| list | |||
| ) |
| #define add_history_change | ( | field, | |
| format, | |||
| label | |||
| ) |
| #define add_history_change_boolean | ( | field, | |
| label | |||
| ) |
| #define add_history_change_string | ( | field, | |
| label | |||
| ) |
| typedef enum dt_history_view_column_t dt_history_view_column_t |
| typedef struct dt_lib_history_t dt_lib_history_t |
|
static |
References dt_gui_add_class(), FALSE, tooltip, TRUE, and view().
Referenced by _lib_history_view_query_tooltip().
|
static |
References _find_previous_history_step(), _lib_history_change_text(), add_blend_history_change, add_blend_history_change_enum, add_history_change, add_history_change_boolean, add_history_change_string, b, dt_dev_history_item_t::blend_params, dt_develop_blend_params_t::blendif, dt_develop_blend_params_t::blendif_boost_factors, dt_develop_blend_params_t::blendif_parameters, dt_iop_gui_blend_data_t::channel, DEVELOP_BLEND_MODE_MASK, DEVELOP_BLEND_REVERSE, DEVELOP_COMBINE_INCL, DEVELOP_COMBINE_INV, DEVELOP_COMBINE_MASKS_POS, dt_develop_blend_colorspace_names, dt_develop_blend_mode_flag_names, dt_develop_blend_mode_names, dt_develop_combine_masks_names, dt_develop_feathering_guide_names, dt_develop_invert_mask_names, dt_develop_mask_mode_names, dt_dev_history_item_t::enabled, FALSE, IOP_FLAGS_SUPPORTS_BLENDING, dt_develop_blend_params_t::mask_id, dt_dev_history_item_t::params, and TRUE.
Referenced by _history_tooltip_with_hint().
|
static |
References darktable, darktable_t::develop, and dt_develop_t::history.
Referenced by _create_tooltip_text(), and _history_store_prepend_item().
|
static |
References darktable, darktable_t::develop, dt_dev_history_gui_update(), dt_dev_history_notify_change(), dt_dev_history_pixelpipe_update(), dt_dev_pop_history_items_ext(), dt_dev_set_history_end_ext(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_dev_write_history(), dt_pthread_rwlock_unlock, dt_pthread_rwlock_wrlock, FALSE, darktable_t::gui, dt_develop_t::gui_attached, dt_develop_t::history_mutex, dt_image_t::id, dt_develop_t::image_storage, and dt_gui_gtk_t::reset.
Referenced by _lib_history_view_selection_changed().
|
static |
Referenced by _history_store_add_original(), and _history_store_prepend_item().
|
static |
References d, DT_HISTORY_VIEW_COL_HISTORY_END, and model.
Referenced by _lib_history_change_callback().
|
static |
|
static |
|
static |
References _find_previous_history_step(), _history_icon_name(), _history_tooltip_with_hint(), d, delete_underscore(), dt_free, DT_HISTORY_VIEW_COL_ENABLED, DT_HISTORY_VIEW_COL_HISTORY_END, DT_HISTORY_VIEW_COL_ICON_NAME, DT_HISTORY_VIEW_COL_LABEL, DT_HISTORY_VIEW_COL_NUMBER, DT_HISTORY_VIEW_COL_TOOLTIP, dt_dev_history_item_t::enabled, IOP_FLAGS_DEPRECATED, dt_dev_history_item_t::multi_name, and dt_dev_history_item_t::op_name.
Referenced by _lib_history_change_callback().
|
static |
References _create_tooltip_text(), and dt_free.
Referenced by _history_store_prepend_item().
|
static |
References _history_select_row_for_end(), _history_store_add_original(), _history_store_prepend_item(), d, darktable, dt_lib_module_t::data, darktable_t::develop, dt_dev_get_history_end_ext(), dt_pthread_rwlock_rdlock, dt_pthread_rwlock_unlock, FALSE, dt_develop_t::history, dt_develop_t::history_mutex, and TRUE.
Referenced by gui_cleanup(), and gui_init().
|
static |
References _lib_history_change_text(), dt_introspection_field_t::Array, dt_introspection_type_array_t::count, d, dt_introspection_type_header_t::description, description(), dt_free, DT_INTROSPECTION_TYPE_ARRAY, DT_INTROSPECTION_TYPE_BOOL, DT_INTROSPECTION_TYPE_CHAR, DT_INTROSPECTION_TYPE_ENUM, DT_INTROSPECTION_TYPE_FLOAT, DT_INTROSPECTION_TYPE_FLOATCOMPLEX, DT_INTROSPECTION_TYPE_INT, DT_INTROSPECTION_TYPE_INT8, DT_INTROSPECTION_TYPE_OPAQUE, DT_INTROSPECTION_TYPE_STRUCT, DT_INTROSPECTION_TYPE_UINT, DT_INTROSPECTION_TYPE_UNION, DT_INTROSPECTION_TYPE_USHORT, dt_introspection_type_struct_t::entries, dt_introspection_field_t::Enum, dt_introspection_type_array_t::field, dt_introspection_type_header_t::field_name, dt_introspection_type_struct_t::fields, dt_introspection_field_t::header, i, dt_introspection_type_header_t::offset, p, dt_introspection_type_header_t::size, dt_introspection_field_t::Struct, dt_introspection_type_header_t::type, dt_introspection_type_array_t::type, dt_introspection_type_header_t::type_name, and dt_introspection_type_enum_t::values.
Referenced by _create_tooltip_text(), and _lib_history_change_text().
|
static |
References _history_show_module_for_end(), d, dt_lib_module_t::data, DT_HISTORY_VIEW_COL_HISTORY_END, dt_modifier_is(), FALSE, model, and TRUE.
Referenced by gui_init().
|
static |
References DT_HISTORY_VIEW_COL_ENABLED, FALSE, model, and TRUE.
Referenced by gui_init().
|
static |
References _changes_tooltip_callback(), d, dt_lib_module_t::data, DT_HISTORY_VIEW_COL_TOOLTIP, FALSE, model, tooltip, and x.
Referenced by gui_init().
|
static |
References _history_apply_history_end(), d, darktable, dt_lib_module_t::data, darktable_t::develop, dt_dev_get_history_end_ext(), DT_HISTORY_VIEW_COL_HISTORY_END, darktable_t::gui, model, and dt_gui_gtk_t::reset.
Referenced by gui_init().
| uint32_t container | ( | dt_lib_module_t * | self | ) |
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
| void gui_init | ( | dt_lib_module_t * | self | ) |
References _lib_history_change_callback(), _lib_history_view_button_press_callback(), _lib_history_view_cell_set_foreground(), _lib_history_view_query_tooltip(), _lib_history_view_selection_changed(), d, darktable, dt_lib_module_t::data, DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_HISTORY_VIEW_COL_COUNT, DT_HISTORY_VIEW_COL_ICON_NAME, DT_HISTORY_VIEW_COL_LABEL, DT_HISTORY_VIEW_COL_NUMBER, DT_SIGNAL_DEVELOP_HISTORY_CHANGE, dt_ui_scroll_wrap(), FALSE, darktable_t::signals, TRUE, and dt_lib_module_t::widget.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
References darktable, darktable_t::develop, dt_conf_get_bool(), dt_dev_modulegroups_update_visibility(), dt_dev_pixelpipe_resync_history_all, dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_history_delete_on_image_ext(), dt_osx_disallow_fullscreen(), dt_ui_main_window(), FALSE, darktable_t::gui, dt_image_t::id, dt_develop_t::image_storage, and dt_gui_gtk_t::ui.
| const char * name | ( | struct dt_lib_module_t * | self | ) |
| int position | ( | ) |
| const char ** views | ( | dt_lib_module_t * | self | ) |
References v.