Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
preferences.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 johannes hanika.
5 Copyright (C) 2012 Richard Wonka.
6 Copyright (C) 2016 Tobias Ellinghaus.
7 Copyright (C) 2020-2021 Pascal Obry.
8 Copyright (C) 2020-2021 Philippe Weyland.
9 Copyright (C) 2022 Martin Bařinka.
10 Copyright (C) 2025 Aurélien PIERRE.
11
12 darktable is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 darktable is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with darktable. If not, see <http://www.gnu.org/licenses/>.
24*/
25
26#pragma once
27
30
31// return the widget for a given preference key
32GtkWidget *dt_gui_preferences_bool(GtkGrid *grid, const char *key, const guint col,
33 const guint line, const gboolean swap);
34GtkWidget *dt_gui_preferences_int(GtkGrid *grid, const char *key, const guint col,
35 const guint line);
36GtkWidget *dt_gui_preferences_enum(GtkGrid *grid, const char *key, const guint col,
37 const guint line);
38GtkWidget *dt_gui_preferences_string(GtkGrid *grid, const char *key, const guint col,
39 const guint line);
40
41// reset widget to default value
46
49
50// clang-format off
51// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
52// vim: shiftwidth=2 expandtab tabstop=2 cindent
53// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
54// clang-format on
char * key
Definition common/metadata.c:60
static void swap(float *x, float *y)
Definition lightroom.c:1022
void dt_gui_preferences_enum_reset(GtkWidget *widget)
Definition preferences.c:1266
void dt_gui_preferences_string_reset(GtkWidget *widget)
Definition preferences.c:1349
void dt_gui_preferences_show()
Definition preferences.c:514
void dt_gui_preferences_bool_reset(GtkWidget *widget)
Definition preferences.c:1134
void dt_gui_preferences_int_reset(GtkWidget *widget)
Definition preferences.c:1182
void dt_gui_preferences_enum_update(GtkWidget *widget)
Definition preferences.c:1284
GtkWidget * dt_gui_preferences_int(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition preferences.c:1207
GtkWidget * dt_gui_preferences_string(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition preferences.c:1374
GtkWidget * dt_gui_preferences_enum(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition preferences.c:1292
GtkWidget * dt_gui_preferences_bool(GtkGrid *grid, const char *key, const guint col, const guint line, const gboolean swap)
Definition preferences.c:1159
struct _GtkWidget GtkWidget
Definition splash.h:29