Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gtkentry.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2011 johannes hanika.
4 Copyright (C) 2012 Christian Tellefsen.
5 Copyright (C) 2012 Richard Wonka.
6 Copyright (C) 2013-2014, 2016 Tobias Ellinghaus.
7 Copyright (C) 2016 Roman Lebedev.
8 Copyright (C) 2020 Pascal Obry.
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#ifndef DT_WIDGETS_GTKENTRY_H
27#define DT_WIDGETS_GTKENTRY_H
28
29#include <glib.h>
30#include <glib/gstdio.h>
31#include <gtk/gtk.h>
32#include <stdio.h>
33#include <stdlib.h>
34
35G_BEGIN_DECLS
36
42
48
49void dt_gtkentry_setup_completion(GtkEntry *entry, const dt_gtkentry_completion_spec *compl_list, const char *trigger_char);
50
52
53gchar *dt_gtkentry_build_completion_tooltip_text(const gchar *header,
54 const dt_gtkentry_completion_spec *compl_list);
55
56// event handler for "key-press-event" of a GtkTreeView, deciding whether focus should switch
57// to the GtkSearchEntry that filters it
58gboolean dt_gui_search_start(GtkWidget *widget, GdkEventKey *event, GtkSearchEntry *entry);
59
60// event handler for "stop-search" of a GtkSearchEntry
61void dt_gui_search_stop(GtkSearchEntry *entry, GtkWidget *widget);
62
63G_END_DECLS
64
65#endif // DT_WIDGETS_GTKENTRY_H
66
67// clang-format off
68// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
69// vim: shiftwidth=2 expandtab tabstop=2 cindent
70// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
71// clang-format on
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
void dt_gui_search_stop(GtkSearchEntry *entry, GtkWidget *widget)
Definition gtkentry.c:329
gchar * dt_gtkentry_build_completion_tooltip_text(const gchar *header, const dt_gtkentry_completion_spec *compl_list)
Definition gtkentry.c:296
void dt_gtkentry_setup_completion(GtkEntry *entry, const dt_gtkentry_completion_spec *compl_list, const char *trigger_char)
Definition gtkentry.c:176
G_BEGIN_DECLS struct completion_spec dt_gtkentry_completion_spec
gboolean dt_gui_search_start(GtkWidget *widget, GdkEventKey *event, GtkSearchEntry *entry)
Definition gtkentry.c:318
const dt_gtkentry_completion_spec * dt_gtkentry_get_default_path_compl_list()
Definition gtkentry.c:200
dtGtkEntryCompletionSpecCol
Definition gtkentry.h:44
@ COMPL_DESCRIPTION
Definition gtkentry.h:46
@ COMPL_VARNAME
Definition gtkentry.h:45
gchar * description
Definition gtkentry.h:40
gchar * varname
Definition gtkentry.h:39