Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history_actions_gui.h File Reference
#include <glib.h>
#include <gtk/gtk.h>
#include <inttypes.h>
+ Include dependency graph for history_actions_gui.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_BEGIN_DECLS 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)
 

Function Documentation

◆ delete_history_callback()

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().

◆ dt_history_copy_parts()

G_BEGIN_DECLS 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().

◆ dt_history_paste_parts_prepare()

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().