Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
metadata/notify.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
38
#ifndef DT_METADATA_NOTIFY_H
39
#define DT_METADATA_NOTIFY_H
40
41
#include <glib.h>
42
43
G_BEGIN_DECLS
44
47
typedef
enum
dt_metadata_notice_t
48
{
51
DT_METADATA_NOTICE_TOAST
= 0,
54
DT_METADATA_NOTICE_MESSAGE
55
}
dt_metadata_notice_t
;
56
58
typedef
void
(*
dt_metadata_notify_handler_t
)(
const
dt_metadata_notice_t
kind
,
const
char
*message);
59
62
void
dt_metadata_set_notify_handler
(
dt_metadata_notify_handler_t
handler
);
63
66
void
dt_metadata_notify
(
const
dt_metadata_notice_t
kind
,
const
char
*format, ...)
G_GNUC_PRINTF
(2, 3);
67
77
typedef
void
(*
dt_metadata_tags_changed_handler_t
)(
void
);
78
void
dt_metadata_set_tags_changed_handler
(
dt_metadata_tags_changed_handler_t
handler
);
79
81
void
dt_metadata_tags_changed
(
void
);
82
91
typedef
void
(*
dt_metadata_geotags_changed_handler_t
)(
const
GList
*imgs);
92
void
dt_metadata_set_geotags_changed_handler
(
dt_metadata_geotags_changed_handler_t
handler
);
93
void
dt_metadata_geotags_changed
(
const
GList
*imgs);
94
95
G_END_DECLS
96
97
#endif
// DT_METADATA_NOTIFY_H
98
99
// clang-format off
100
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
101
// vim: shiftwidth=2 expandtab tabstop=2 cindent
102
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
103
// clang-format on
void
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
kind
static const dt_adaptation_t kind
Definition
chromatic_adaptation.h:125
L
const float L
Definition
colorspaces_inline_conversions.h:494
dt_metadata_geotags_changed
void dt_metadata_geotags_changed(const GList *imgs)
Definition
metadata/notify.c:70
dt_metadata_notice_t
dt_metadata_notice_t
Which affordance the message belongs in. The two are not interchangeable, and the module knows which ...
Definition
metadata/notify.h:48
DT_METADATA_NOTICE_TOAST
@ DT_METADATA_NOTICE_TOAST
Definition
metadata/notify.h:51
DT_METADATA_NOTICE_MESSAGE
@ DT_METADATA_NOTICE_MESSAGE
Definition
metadata/notify.h:54
dt_metadata_notify_handler_t
void(* dt_metadata_notify_handler_t)(const dt_metadata_notice_t kind, const char *message)
Receives one formatted, already-translated message.
Definition
metadata/notify.h:58
dt_metadata_set_geotags_changed_handler
void dt_metadata_set_geotags_changed_handler(dt_metadata_geotags_changed_handler_t handler)
Definition
metadata/notify.c:65
dt_metadata_set_tags_changed_handler
void dt_metadata_set_tags_changed_handler(dt_metadata_tags_changed_handler_t handler)
Definition
metadata/notify.c:52
dt_metadata_geotags_changed_handler_t
void(* dt_metadata_geotags_changed_handler_t)(const GList *imgs)
The geo-location of these images changed. Whoever is showing a map, or the geotag panel,...
Definition
metadata/notify.h:91
dt_metadata_set_notify_handler
void dt_metadata_set_notify_handler(dt_metadata_notify_handler_t handler)
Install the handler, or NULL to remove it. Messages raised with none installed are dropped.
Definition
metadata/notify.c:30
dt_metadata_tags_changed
void dt_metadata_tags_changed(void)
Raise it. Internal to the module.
Definition
metadata/notify.c:57
dt_metadata_notify
void dt_metadata_notify(const dt_metadata_notice_t kind, const char *format,...) G_GNUC_PRINTF(2
Raise one message. Internal to the module: the format string is translated at the call site,...
dt_metadata_tags_changed_handler_t
void typedef void(* dt_metadata_tags_changed_handler_t)(void)
The tag vocabulary changed: one was created, renamed, deleted, attached or detached....
Definition
metadata/notify.h:77
src
metadata
notify.h
Generated by
1.9.8