Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gtkentry.h File Reference
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for gtkentry.h:
+ This graph shows which files directly or indirectly include this file:

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_specdt_gtkentry_get_default_path_compl_list ()
 
gchar * dt_gtkentry_build_completion_tooltip_text (const gchar *header, const dt_gtkentry_completion_spec *compl_list)
 

Typedef Documentation

◆ dt_gtkentry_completion_spec

Enumeration Type Documentation

◆ dtGtkEntryCompletionSpecCol

Enumerator
COMPL_VARNAME 
COMPL_DESCRIPTION 

Function Documentation

◆ dt_gtkentry_build_completion_tooltip_text()

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.

Returns
g_malloc()'ed string. Must be free'd by the caller.

◆ dt_gtkentry_get_default_path_compl_list()

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().

◆ dt_gtkentry_setup_completion()

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().

Parameters
[in]entryGtkEntry
[in]compl_listA {NULL,NULL} terminated array containing {variable,description} for each available completion text.
[in]trigger_charThe 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().