![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "gui/common/history_actions_gui.h"#include "common/act_on.h"#include "common/conf.h"#include "common/history_actions.h"#include "system/macros.h"#include "control/control.h"#include "develop/develop.h"#include "develop/dev_history.h"#include "gui/actions/menu.h"#include "gui/application.h"#include "gui/hist_dialog.h"#include "views/view.h"#include <glib/gi18n.h>#include "widgets/dialog.h"
Include dependency graph for history_actions_gui.c:Go to the source code of this file.
Functions | |
| gboolean | dt_history_copy_parts (int32_t imgid) |
| gboolean | dt_history_paste_parts_prepare (void) |
| gboolean | delete_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| gboolean delete_history_callback | ( | GtkAccelGroup * | group, |
| GObject * | acceleratable, | ||
| guint | keyval, | ||
| GdkModifierType | mods, | ||
| gpointer | user_data | ||
| ) |
Confirm (if ask_before_discard is set), then delete the history of the active images. Shared verbatim by the Edit menu's "Delete history" action and the darkroom history module's reset button, which is why it is a GtkAccelGroup callback rather than a plain function.
Definition at line 83 of file history_actions_gui.c.
References dt_act_on_get_images(), dt_apply_dev_history_update(), dt_conf_get_bool(), dt_conf_set_bool(), dt_control_queue_redraw_center(), dt_dev_get_global(), dt_dev_history_is_image_in_dev(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_gui_main_window(), dt_gui_refocus_parent(), dt_history_delete_on_list(), dt_osx_disallow_fullscreen(), FALSE, has_active_images(), IS_NULL_PTR, L, and TRUE.
Referenced by append_edit(), and gui_reset().
| gboolean dt_history_copy_parts | ( | int32_t | imgid | ) |
Copy history from imgid, then run the module-picker dialog to narrow it down. Returns FALSE if the user cancelled. The chosen modules land in the copy/paste proxy, where dt_history_paste_parts_on_{image,list}() read them.
Definition at line 51 of file history_actions_gui.c.
References dt_gui_hist_dialog_new(), dt_history_copy(), dt_history_copy_paste_get(), FALSE, L, and TRUE.
Referenced by copy_parts_callback().
| gboolean dt_history_paste_parts_prepare | ( | void | ) |
Run the module-picker dialog over what was copied, ahead of a partial paste. Returns FALSE if the user cancelled or nothing was copied.
Definition at line 66 of file history_actions_gui.c.
References dt_gui_hist_dialog_new(), dt_history_copy_paste_get(), FALSE, L, and TRUE.
Referenced by paste_parts_callback().