![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | completion_spec |
Typedefs | |
typedef struct completion_spec | dt_gtkentry_completion_spec |
Enumerations | |
enum | dtGtkEntryCompletionSpecCol { COMPL_VARNAME = 0 , COMPL_DESCRIPTION } |
Functions | |
void | dt_gtkentry_setup_completion (GtkEntry *entry, const dt_gtkentry_completion_spec *compl_list, const char *trigger_char) |
const dt_gtkentry_completion_spec * | dt_gtkentry_get_default_path_compl_list () |
gchar * | dt_gtkentry_build_completion_tooltip_text (const gchar *header, const dt_gtkentry_completion_spec *compl_list) |
typedef struct completion_spec dt_gtkentry_completion_spec |
gchar * dt_gtkentry_build_completion_tooltip_text | ( | const gchar * | header, |
const dt_gtkentry_completion_spec * | compl_list | ||
) |
Builds the tooltip text for a GtkEntry. Uses the same datatype as used for initializing the auto completion table above.
const dt_gtkentry_completion_spec * dt_gtkentry_get_default_path_compl_list | ( | ) |
The default set of image metadata of interest for use in image paths.
Referenced by _formula_editing_started(), gui_init(), and gui_init().
void dt_gtkentry_setup_completion | ( | GtkEntry * | entry, |
const dt_gtkentry_completion_spec * | compl_list, | ||
const char * | trigger_char | ||
) |
This function initializes entry with an autocomplete table specified by compl_list. To set the default darktable variables, use dt_gtkentry_get_default_path_compl_list().
[in] | entry | GtkEntry |
[in] | compl_list | A {NULL,NULL} terminated array containing {variable,description} for each available completion text. |
[in] | trigger_char | The input character that will start the best-match lookup |
References COMPL_DESCRIPTION, COMPL_VARNAME, model, on_match_func(), on_match_select(), and completion_spec::varname.
Referenced by _formula_editing_started(), dt_accels_window(), gui_init(), and gui_init().