Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history_actions.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel,
3 Copyright (C) 2026 Aurélien PIERRE.
4
5 Ansel is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Ansel is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <glib.h>
22#include <inttypes.h>
23
25
27gboolean dt_history_copy(int32_t imgid);
28gboolean dt_history_copy_parts(int32_t imgid);
29gboolean dt_history_paste_on_list(const GList *list);
31gboolean dt_history_paste_parts_on_list(const GList *list);
32gboolean dt_history_paste_on_image(const int32_t imgid);
33gboolean dt_history_paste_parts_on_image(const int32_t imgid);
34
35gboolean dt_history_copy_and_paste_on_image(const int32_t imgid, const int32_t dest_imgid, GList *ops,
36 const gboolean copy_full, const dt_history_merge_strategy_t mode);
37
39gboolean dt_history_style_on_list(const GList *list, const char *name, const gboolean duplicate);
40gboolean dt_history_style_on_image(const int32_t imgid, const char *name, const gboolean duplicate);
41
43int dt_history_compress_on_list(const GList *imgs);
44void dt_history_compress_on_image(const int32_t imgid);
45
47gboolean dt_history_delete_on_list(const GList *list, gboolean undo);
48
50int dt_history_load_and_apply_on_list(gchar *filename, const GList *list);
51
53int dt_history_load_and_apply(const int32_t imgid, gchar *filename, int history_only);
54int dt_history_load_and_apply_on_image(int32_t imgid, gchar *filename, int history_only);
char * name
Definition common/metadata.c:61
gboolean dt_history_paste_on_list(const GList *list)
Definition history_actions.c:258
int dt_history_load_and_apply(const int32_t imgid, gchar *filename, int history_only)
Definition history_actions.c:369
gboolean dt_history_copy(int32_t imgid)
Definition history_actions.c:213
gboolean dt_history_paste_parts_on_list(const GList *list)
Definition history_actions.c:300
int dt_history_load_and_apply_on_image(int32_t imgid, gchar *filename, int history_only)
Definition history_actions.c:375
gboolean dt_history_delete_on_list(const GList *list, gboolean undo)
Definition history_actions.c:419
gboolean dt_history_paste_on_image(const int32_t imgid)
Definition history_actions.c:253
gboolean dt_history_style_on_image(const int32_t imgid, const char *name, const gboolean duplicate)
Definition history_actions.c:462
gboolean dt_history_paste_parts_prepare(void)
Definition history_actions.c:264
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)
Definition history_actions.c:189
int dt_history_load_and_apply_on_list(gchar *filename, const GList *list)
Definition history_actions.c:380
int dt_history_compress_on_list(const GList *imgs)
Definition history_actions.c:328
gboolean dt_history_copy_parts(int32_t imgid)
Definition history_actions.c:225
gboolean dt_history_paste_parts_on_image(const int32_t imgid)
Definition history_actions.c:295
void dt_history_compress_on_image(const int32_t imgid)
Definition history_actions.c:323
gboolean dt_history_style_on_list(const GList *list, const char *name, const gboolean duplicate)
Definition history_actions.c:477
dt_history_merge_strategy_t
Definition history_merge.h:33