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) 2012-2020 darktable developers.
4 Copyright (C) 2023 Aurélien Pierre.
5
6 darktable is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 darktable is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with darktable. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22/* the defined modules groups, the specific order here sets the order
23 of buttons in modulegroup buttonrow
24*/
41
42static inline gboolean dt_is_module_in_group(dt_iop_module_t *module, dt_lib_modulegroup_t group)
43{
44 // Does module belong to group ?
45 return (module->default_group() == group) || (group == DT_MODULEGROUP_NONE) || (module->enabled && group == DT_MODULEGROUP_ACTIVE_PIPE);
46}
47
48// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
49// vim: shiftwidth=2 expandtab tabstop=2 cindent
50// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
dt_lib_modulegroup_t
Definition modulegroups.h:26
@ DT_MODULEGROUP_SIZE
Definition modulegroups.h:39
@ DT_MODULEGROUP_COLOR
Definition modulegroups.h:31
@ DT_MODULEGROUP_NONE
Definition modulegroups.h:36
@ DT_MODULEGROUP_TONES
Definition modulegroups.h:29
@ DT_MODULEGROUP_TECHNICAL
Definition modulegroups.h:35
@ DT_MODULEGROUP_SHARPNESS
Definition modulegroups.h:33
@ DT_MODULEGROUP_REPAIR
Definition modulegroups.h:32
@ DT_MODULEGROUP_FILM
Definition modulegroups.h:30
@ DT_MODULEGROUP_ACTIVE_PIPE
Definition modulegroups.h:27
@ DT_MODULEGROUP_EFFECTS
Definition modulegroups.h:34
static gboolean dt_is_module_in_group(dt_iop_module_t *module, dt_lib_modulegroup_t group)
Definition modulegroups.h:42
Definition imageop.h:182
gboolean enabled
Definition imageop.h:229