Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dev_toolbox.h
Go to the documentation of this file.
1
/*
2
This file is part of the Ansel project.
3
Copyright (C) 2026 Guillaume STUTIN.
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
16
#pragma once
17
18
#include <stddef.h>
19
20
#include "
views/view.h
"
21
22
struct
dt_develop_t
;
23
26
typedef
enum
dt_dev_toolbox_button_t
27
{
28
DT_DEV_TOOLBOX_ISO_12646
,
29
DT_DEV_TOOLBOX_OVEREXPOSED
,
30
DT_DEV_TOOLBOX_RAWOVEREXPOSED
,
31
DT_DEV_TOOLBOX_SOFTPROOF
,
32
DT_DEV_TOOLBOX_GAMUT
,
33
DT_DEV_TOOLBOX_DISPLAY
,
34
}
dt_dev_toolbox_button_t
;
35
58
void
dt_dev_toolbox_create
(
struct
dt_develop_t
*dev,
dt_view_type_flags_t
views
,
59
const
dt_dev_toolbox_button_t
*buttons,
size_t
n_buttons
);
60
72
void
dt_dev_toolbox_add_accels
(
struct
dt_develop_t
*dev,
GtkAccelGroup
*accel_group,
const
char
*
category
,
73
const
dt_dev_toolbox_button_t
*buttons,
size_t
n_buttons
);
74
80
gboolean
dt_dev_toolbox_activate_accel
(
GtkAccelGroup
*accel_group,
GObject
*
accelerable
, guint
keyval
,
81
GdkModifierType modifier, gpointer data);
82
gboolean
dt_dev_toolbox_focus_accel
(
GtkAccelGroup
*accel_group,
GObject
*
accelerable
, guint
keyval
,
83
GdkModifierType modifier, gpointer data);
84
89
void
dt_dev_toolbox_apply_iso_12646_size
(
struct
dt_develop_t
*dev);
90
95
void
dt_dev_toolbox_connect_popover
(
GtkWidget
*
button
,
GtkWidget
*
popover
);
96
101
gboolean
dt_dev_toolbox_show_popup
(gpointer
popover
);
102
107
void
dt_dev_toolbox_popover_set_preshow
(
GtkWidget
*
popover
,
void
(*
preshow
)(gpointer user_data),
108
gpointer user_data);
109
114
#define DT_DEV_TOOLBOX_POPOVER_KEY "dt-dev-toolbox-popover"
views
const char ** views(dt_lib_module_t *self)
Definition
backgroundjobs.c:100
dt_dev_toolbox_button_t
dt_dev_toolbox_button_t
Definition
dev_toolbox.h:27
DT_DEV_TOOLBOX_DISPLAY
@ DT_DEV_TOOLBOX_DISPLAY
Definition
dev_toolbox.h:33
DT_DEV_TOOLBOX_GAMUT
@ DT_DEV_TOOLBOX_GAMUT
Definition
dev_toolbox.h:32
DT_DEV_TOOLBOX_RAWOVEREXPOSED
@ DT_DEV_TOOLBOX_RAWOVEREXPOSED
Definition
dev_toolbox.h:30
DT_DEV_TOOLBOX_OVEREXPOSED
@ DT_DEV_TOOLBOX_OVEREXPOSED
Definition
dev_toolbox.h:29
DT_DEV_TOOLBOX_SOFTPROOF
@ DT_DEV_TOOLBOX_SOFTPROOF
Definition
dev_toolbox.h:31
DT_DEV_TOOLBOX_ISO_12646
@ DT_DEV_TOOLBOX_ISO_12646
Definition
dev_toolbox.h:28
dt_dev_toolbox_create
void dt_dev_toolbox_create(struct dt_develop_t *dev, dt_view_type_flags_t views, const dt_dev_toolbox_button_t *buttons, size_t n_buttons)
Definition
dev_toolbox.c:641
dt_dev_toolbox_focus_accel
gboolean dt_dev_toolbox_focus_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType modifier, gpointer data)
Definition
dev_toolbox.c:157
dt_dev_toolbox_show_popup
gboolean dt_dev_toolbox_show_popup(gpointer popover)
Definition
dev_toolbox.c:72
dt_dev_toolbox_connect_popover
void dt_dev_toolbox_connect_popover(GtkWidget *button, GtkWidget *popover)
Definition
dev_toolbox.c:134
dt_dev_toolbox_activate_accel
gboolean dt_dev_toolbox_activate_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType modifier, gpointer data)
Definition
dev_toolbox.c:147
dt_dev_toolbox_popover_set_preshow
void dt_dev_toolbox_popover_set_preshow(GtkWidget *popover, void(*preshow)(gpointer user_data), gpointer user_data)
Definition
dev_toolbox.c:66
dt_dev_toolbox_add_accels
void dt_dev_toolbox_add_accels(struct dt_develop_t *dev, GtkAccelGroup *accel_group, const char *category, const dt_dev_toolbox_button_t *buttons, size_t n_buttons)
Definition
dev_toolbox.c:172
dt_dev_toolbox_apply_iso_12646_size
void dt_dev_toolbox_apply_iso_12646_size(struct dt_develop_t *dev)
Definition
dev_toolbox.c:38
GtkWidget
struct _GtkWidget GtkWidget
Definition
splash.h:29
dt_develop_t
Definition
develop.h:159
dt_develop_t::y
float y
Definition
develop.h:197
dt_develop_t::button
GtkWidget * button
Definition
develop.h:455
view.h
dt_view_type_flags_t
dt_view_type_flags_t
Definition
view.h:76
src
views
dev_toolbox.h
Generated by
1.9.8