![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/conf.h"#include "common/paths.h"#include "common/act_on.h"#include "common/history_actions.h"#include "gui/common/history_actions_gui.h"#include "control/jobs/control_jobs.h"#include "gui/actions/menu.h"#include "osx/osx.h"#include "gui/preferences.h"#include "common/undo.h"#include "common/selection.h"#include "caches/image_cache.h"#include "history/history.h"#include "develop/history_merge.h"#include "gui/develop/history_merge_gui.h"#include "develop/dev_history.h"#include "develop/develop.h"#include "control/control.h"#include "control/user_message.h"#include <gtk/gtk.h>#include <glib.h>#include "gui/application.h"#include "widgets/accelerators.h"#include "common/glib_utils.h"
Include dependency graph for edit.c:Go to the source code of this file.
Macros | |
| #define | DT_UNDO_ANNOUNCE_FROM 20 |
Functions | |
| static gboolean | undo_sensitive_callback () |
| static gboolean | _undo_announce (const int records, const char *message) |
| static void | _undo_announce_end (const gboolean announced) |
| static gboolean | undo_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | redo_sensitive_callback () |
| static gboolean | redo_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | compress_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | copy_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | copy_parts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | paste_sensitive_callback () |
| static gboolean | paste_all_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | paste_parts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | load_xmp_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | duplicate_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | new_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | shortcuts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | history_append_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | history_append_checked_callback (GtkWidget *widget) |
| static gboolean | history_prepend_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | history_prepend_checked_callback (GtkWidget *widget) |
| static gboolean | history_replace_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | history_replace_checked_callback (GtkWidget *widget) |
| static gboolean | copy_iop_order_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | copy_iop_order_checked_callback (GtkWidget *widget) |
| static gboolean | paste_ask_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | paste_ask_checked_callback (GtkWidget *widget) |
| void | append_edit (GtkWidget **menus, GList **lists, const dt_menus_t index) |
|
static |
Definition at line 79 of file edit.c.
References dt_control_change_cursor_by_name_and_flush(), dt_control_log(), DT_UNDO_ANNOUNCE_FROM, FALSE, i, and TRUE.
Referenced by redo_callback(), and undo_callback().
|
static |
Definition at line 89 of file edit.c.
References dt_control_commit_cursor().
Referenced by redo_callback(), and undo_callback().
| void append_edit | ( | GtkWidget ** | menus, |
| GList ** | lists, | ||
| const dt_menus_t | index | ||
| ) |
Definition at line 523 of file edit.c.
References add_menu_separator(), add_sub_menu_entry(), add_sub_sub_menu_entry(), add_top_submenu_entry(), compress_history_callback(), copy_callback(), copy_iop_order_callback(), copy_iop_order_checked_callback(), copy_parts_callback(), delete_history_callback(), dt_gui_preferences_show(), DT_PRIMARY_MASK, duplicate_callback(), GET_ACCEL_WRAPPER, get_last_widget(), has_active_images(), has_selection(), history_append_callback(), history_append_checked_callback(), history_prepend_callback(), history_prepend_checked_callback(), history_replace_callback(), history_replace_checked_callback(), load_xmp_callback(), new_history_callback(), paste_all_callback(), paste_ask_callback(), paste_ask_checked_callback(), paste_parts_callback(), paste_sensitive_callback(), redo_callback(), redo_sensitive_callback(), shortcuts_callback(), undo_callback(), and undo_sensitive_callback().
Referenced by dt_ui_init_global_menu().
|
static |
Definition at line 166 of file edit.c.
References dt_act_on_get_images(), dt_apply_dev_history_update(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_history_compress_on_image(), dt_history_compress_on_list(), FALSE, dt_image_t::id, dt_develop_t::image_storage, IS_NULL_PTR, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 197 of file edit.c.
References dt_control_log(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_write_history(), dt_history_copy(), dt_selection_get_first_id(), dt_selection_get_global(), dt_selection_get_length(), dt_selection_get_list(), FALSE, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 501 of file edit.c.
References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.
Referenced by append_edit().
|
static |
|
static |
Definition at line 224 of file edit.c.
References dt_control_log(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_write_history(), dt_history_copy_parts(), dt_selection_get_first_id(), dt_selection_get_global(), dt_selection_get_length(), dt_selection_get_list(), FALSE, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 415 of file edit.c.
References dt_control_duplicate_images(), dt_control_log(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_write_history(), dt_selection_get_global(), dt_selection_get_list(), FALSE, has_active_images(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 467 of file edit.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_APPEND, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 473 of file edit.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_APPEND.
Referenced by append_edit().
|
static |
Definition at line 478 of file edit.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_PREPEND, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 484 of file edit.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_PREPEND.
Referenced by append_edit().
|
static |
Definition at line 489 of file edit.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_REPLACE, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 496 of file edit.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_REPLACE.
Referenced by append_edit().
|
static |
Definition at line 326 of file edit.c.
References dt_act_on_get_images(), dt_apply_dev_history_update(), dt_conf_get_folder_to_file_chooser(), dt_conf_set_folder_from_file_chooser(), dt_control_queue_redraw_center(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_free, dt_gui_main_window(), dt_history_load_and_apply_on_list(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_film_roll_directory(), dt_osx_disallow_fullscreen(), DT_PATH_MAX, FALSE, dt_image_t::film_id, g_list_is_singleton, IS_NULL_PTR, and TRUE.
Referenced by append_edit().
|
static |
Definition at line 438 of file edit.c.
References dt_control_duplicate_images(), dt_control_log(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_write_history(), dt_selection_get_global(), dt_selection_get_list(), FALSE, has_active_images(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 256 of file edit.c.
References dt_conf_get_bool(), dt_control_log(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_gui_merge_options_dialog(), dt_history_paste_on_list(), dt_selection_get_global(), dt_selection_get_list(), FALSE, paste_sensitive_callback(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 512 of file edit.c.
References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.
Referenced by append_edit().
|
static |
|
static |
Definition at line 287 of file edit.c.
References dt_conf_get_bool(), dt_control_log(), dt_control_queue_redraw_center(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_gui_merge_options_dialog(), dt_history_paste_parts_on_list(), dt_history_paste_parts_prepare(), dt_selection_get_global(), dt_selection_get_list(), FALSE, paste_sensitive_callback(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 251 of file edit.c.
References dt_history_copy_item_t::copied_imageid, and dt_history_copy_paste_get().
Referenced by append_edit(), paste_all_callback(), and paste_parts_callback().
|
static |
Definition at line 142 of file edit.c.
References _undo_announce(), _undo_announce_end(), dt_redo_list_length(), DT_UNDO_DEVELOP, dt_undo_do_redo(), dt_undo_get_global(), DT_UNDO_LIGHTTABLE, DT_UNDO_MAP, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, IS_NULL_PTR, dt_view_t::module_name, redo_sensitive_callback(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 122 of file edit.c.
References dt_is_redo_list_populated(), DT_UNDO_DEVELOP, dt_undo_get_global(), DT_UNDO_LIGHTTABLE, DT_UNDO_MAP, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, IS_NULL_PTR, and dt_view_t::module_name.
Referenced by append_edit(), and redo_callback().
|
static |
Definition at line 461 of file edit.c.
References dt_accels_window(), dt_gui_get_accels(), dt_gui_main_window(), and TRUE.
Referenced by append_edit().
|
static |
Definition at line 94 of file edit.c.
References _undo_announce(), _undo_announce_end(), DT_UNDO_DEVELOP, dt_undo_do_undo(), dt_undo_get_global(), DT_UNDO_LIGHTTABLE, dt_undo_list_length(), DT_UNDO_MAP, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, IS_NULL_PTR, dt_view_t::module_name, TRUE, and undo_sensitive_callback().
Referenced by append_edit().
|
static |
Definition at line 49 of file edit.c.
References dt_is_undo_list_populated(), DT_UNDO_DEVELOP, dt_undo_get_global(), DT_UNDO_LIGHTTABLE, DT_UNDO_MAP, dt_view_manager_get_current_view(), dt_view_manager_get_global(), FALSE, IS_NULL_PTR, and dt_view_t::module_name.
Referenced by append_edit(), and undo_callback().