Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gui/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
47// clang-format off
48// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
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;
51// clang-format on
char * key
Definition common/metadata.c:60
void dt_gui_preferences_enum_reset(GtkWidget *widget)
Definition gui/preferences.c:1276
void dt_gui_preferences_string_reset(GtkWidget *widget)
Definition gui/preferences.c:1359
void dt_gui_preferences_show()
Definition gui/preferences.c:517
void dt_gui_preferences_bool_reset(GtkWidget *widget)
Definition gui/preferences.c:1144
void dt_gui_preferences_int_reset(GtkWidget *widget)
Definition gui/preferences.c:1192
GtkWidget * dt_gui_preferences_int(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition gui/preferences.c:1217
GtkWidget * dt_gui_preferences_string(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition gui/preferences.c:1384
GtkWidget * dt_gui_preferences_enum(GtkGrid *grid, const char *key, const guint col, const guint line)
Definition gui/preferences.c:1302
GtkWidget * dt_gui_preferences_bool(GtkGrid *grid, const char *key, const guint col, const guint line, const gboolean swap)
Definition gui/preferences.c:1169
static void swap(float *x, float *y)
Definition lightroom.c:1022
struct _GtkWidget GtkWidget
Definition splash.h:29