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

Go to the source code of this file.

Functions

gboolean dt_history_copy (int32_t imgid)
 
gboolean dt_history_copy_parts (int32_t imgid)
 
gboolean dt_history_paste_on_list (const GList *list)
 
gboolean dt_history_paste_parts_prepare (void)
 
gboolean dt_history_paste_parts_on_list (const GList *list)
 
gboolean dt_history_paste_on_image (const int32_t imgid)
 
gboolean dt_history_paste_parts_on_image (const int32_t imgid)
 
gboolean dt_history_copy_and_paste_on_image (const int32_t imgid, const int32_t dest_imgid, GList *ops, const gboolean copy_full, const dt_history_merge_strategy_t mode, const gboolean copy_iop_order, dt_hm_batch_state_t *batch)
 
gboolean dt_history_style_on_list (const GList *list, const char *name, const gboolean duplicate)
 
gboolean dt_history_style_on_image (const int32_t imgid, const char *name, const gboolean duplicate)
 
int dt_history_compress_on_list (const GList *imgs)
 
void dt_history_compress_on_image (const int32_t imgid)
 
gboolean dt_history_delete_on_list (const GList *list, gboolean undo)
 
gboolean delete_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
int dt_history_load_and_apply_on_list (gchar *filename, const GList *list)
 
int dt_history_load_and_apply (const int32_t imgid, gchar *filename, int history_only)
 
int dt_history_load_and_apply_on_image (int32_t imgid, gchar *filename, int history_only)
 

Function Documentation

◆ delete_history_callback()

gboolean delete_history_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)

GUI entry point: confirm (if configured) then delete history of the active images. Shared verbatim between the Edit menu's "Delete history" action and the darkroom history module's reset button – see common/history_actions.c.

Definition at line 459 of file history_actions.c.

References darktable, darktable_t::develop, 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_history_is_image_in_dev(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_gui_refocus_parent(), dt_history_delete_on_list(), dt_osx_disallow_fullscreen(), dt_ui_main_window(), FALSE, darktable_t::gui, has_active_images(), IS_NULL_PTR, TRUE, and dt_gui_gtk_t::ui.

Referenced by append_edit(), and gui_reset().

◆ dt_history_compress_on_image()

void dt_history_compress_on_image ( const int32_t  imgid)

Definition at line 349 of file history_actions.c.

References _history_compress_apply().

Referenced by compress_history_callback().

◆ dt_history_compress_on_list()

int dt_history_compress_on_list ( const GList *  imgs)

compress history stack

Definition at line 354 of file history_actions.c.

References _history_action_on_list(), and _history_compress_apply().

Referenced by compress_history_callback().

◆ dt_history_copy()

gboolean dt_history_copy ( int32_t  imgid)

copy history from imgid and pasts on selected images, merge or overwrite...

Definition at line 224 of file history_actions.c.

References dt_history_copy_item_t::copied_imageid, dt_view_manager_t::copy_paste, darktable, FALSE, TRUE, and darktable_t::view_manager.

Referenced by copy_callback(), and dt_history_copy_parts().

◆ dt_history_copy_and_paste_on_image()

◆ dt_history_copy_parts()

gboolean dt_history_copy_parts ( int32_t  imgid)

◆ dt_history_delete_on_list()

gboolean dt_history_delete_on_list ( const GList *  list,
gboolean  undo 
)

delete historystack of selected images

Definition at line 453 of file history_actions.c.

References _history_action_on_list_with_undo(), and _history_delete_apply().

Referenced by delete_history_callback().

◆ dt_history_load_and_apply()

int dt_history_load_and_apply ( const int32_t  imgid,
gchar *  filename,
int  history_only 
)

load a dt file and applies to specified image

Definition at line 403 of file history_actions.c.

References _history_load_and_apply_apply().

Referenced by dt_history_load_and_apply_on_image(), and load_xmp_on_image().

◆ dt_history_load_and_apply_on_image()

int dt_history_load_and_apply_on_image ( int32_t  imgid,
gchar *  filename,
int  history_only 
)

◆ dt_history_load_and_apply_on_list()

int dt_history_load_and_apply_on_list ( gchar *  filename,
const GList *  list 
)

load a dt file and applies to selected images

Definition at line 414 of file history_actions.c.

References _history_action_on_list(), and _history_load_and_apply_apply().

Referenced by load_xmp_callback().

◆ dt_history_paste_on_image()

gboolean dt_history_paste_on_image ( const int32_t  imgid)

Definition at line 271 of file history_actions.c.

References _history_paste_apply().

◆ dt_history_paste_on_list()

◆ dt_history_paste_parts_on_image()

gboolean dt_history_paste_parts_on_image ( const int32_t  imgid)

Definition at line 318 of file history_actions.c.

References _history_paste_parts_apply().

◆ dt_history_paste_parts_on_list()

◆ dt_history_paste_parts_prepare()

gboolean dt_history_paste_parts_prepare ( void  )

◆ dt_history_style_on_image()

gboolean dt_history_style_on_image ( const int32_t  imgid,
const char *  name,
const gboolean  duplicate 
)

◆ dt_history_style_on_list()

gboolean dt_history_style_on_list ( const GList *  list,
const char *  name,
const gboolean  duplicate 
)