Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
modulegroups.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010 Henrik Andersson.
4 Copyright (C) 2010-2011 johannes hanika.
5 Copyright (C) 2012 Richard Wonka.
6 Copyright (C) 2012, 2016 Tobias Ellinghaus.
7 Copyright (C) 2017 luzpaz.
8 Copyright (C) 2020-2021 Aldric Renaudin.
9 Copyright (C) 2020-2021 Pascal Obry.
10 Copyright (C) 2022 Martin Bařinka.
11 Copyright (C) 2023, 2025 Aurélien PIERRE.
12 Copyright (C) 2023 Luca Zulberti.
13
14 darktable is free software: you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 darktable is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with darktable. If not, see <http://www.gnu.org/licenses/>.
26*/
27
28#pragma once
29
30/* the defined modules groups, the specific order here sets the order
31 of buttons in modulegroup buttonrow
32*/
49
50static inline gboolean dt_is_module_in_group(dt_iop_module_t *module, dt_lib_modulegroup_t group)
51{
52 // Does module belong to group ?
53 return (module->default_group() == group) || (group == DT_MODULEGROUP_NONE) || (module->enabled && group == DT_MODULEGROUP_ACTIVE_PIPE);
54}
55
56// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
57// vim: shiftwidth=2 expandtab tabstop=2 cindent
58// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
dt_lib_modulegroup_t
Definition modulegroups.h:34
@ DT_MODULEGROUP_SIZE
Definition modulegroups.h:47
@ DT_MODULEGROUP_COLOR
Definition modulegroups.h:39
@ DT_MODULEGROUP_NONE
Definition modulegroups.h:44
@ DT_MODULEGROUP_TONES
Definition modulegroups.h:37
@ DT_MODULEGROUP_TECHNICAL
Definition modulegroups.h:43
@ DT_MODULEGROUP_SHARPNESS
Definition modulegroups.h:41
@ DT_MODULEGROUP_REPAIR
Definition modulegroups.h:40
@ DT_MODULEGROUP_FILM
Definition modulegroups.h:38
@ DT_MODULEGROUP_ACTIVE_PIPE
Definition modulegroups.h:35
@ DT_MODULEGROUP_EFFECTS
Definition modulegroups.h:42
static gboolean dt_is_module_in_group(dt_iop_module_t *module, dt_lib_modulegroup_t group)
Definition modulegroups.h:50
Definition imageop.h:216
gboolean enabled
Definition imageop.h:263