Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
map_settings.c File Reference
#include "bauhaus/bauhaus.h"
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/selection.h"
#include "control/conf.h"
#include "control/control.h"
#include "dtgtk/button.h"
#include "gui/gtk.h"
#include "libs/lib.h"
#include "libs/lib_api.h"
#include "gui/preferences.h"
#include <gdk/gdkkeysyms.h>
#include <osm-gps-map-source.h>
+ Include dependency graph for map_settings.c:

Data Structures

struct  dt_lib_map_settings_t
 

Typedefs

typedef struct dt_lib_map_settings_t dt_lib_map_settings_t
 

Functions

const char * name (struct dt_lib_module_t *self)
 
const char ** views (dt_lib_module_t *self)
 
uint32_t container (dt_lib_module_t *self)
 
int position ()
 
static void _show_osd_toggled (GtkToggleButton *button, gpointer data)
 
static void _parameter_changed (GtkToggleButton *button, gpointer data)
 
static void _map_source_changed (GtkWidget *widget, gpointer data)
 
static gboolean _thumbnail_change_accel (GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType mods, gpointer user_data)
 Cycle the map thumbnail rendering mode from the map accel group.
 
void gui_init (dt_lib_module_t *self)
 
void gui_cleanup (dt_lib_module_t *self)
 
void gui_reset (dt_lib_module_t *self)
 

Typedef Documentation

◆ dt_lib_map_settings_t

Function Documentation

◆ _map_source_changed()

static void _map_source_changed ( GtkWidget widget,
gpointer  data 
)
static

References darktable, model, TRUE, value, and darktable_t::view_manager.

Referenced by gui_init().

◆ _parameter_changed()

static void _parameter_changed ( GtkToggleButton *  button,
gpointer  data 
)
static

◆ _show_osd_toggled()

static void _show_osd_toggled ( GtkToggleButton *  button,
gpointer  data 
)
static

References darktable, and darktable_t::view_manager.

Referenced by gui_init().

◆ _thumbnail_change_accel()

static gboolean _thumbnail_change_accel ( GtkAccelGroup *  accel_group,
GObject *  accelerable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Cycle the map thumbnail rendering mode from the map accel group.

The shortcut owns a map-view behavior, but the preference widget lives in the settings lib module. Keeping the state update here preserves the existing enum widget sync and redraw path.

References _parameter_changed(), d, dt_lib_module_t::data, dt_conf_get_string_const(), dt_conf_set_string(), dt_gui_preferences_enum_update(), and TRUE.

Referenced by gui_init().

◆ container()

uint32_t container ( dt_lib_module_t self)

◆ gui_cleanup()

void gui_cleanup ( dt_lib_module_t self)

References dt_lib_module_t::data, and dt_free.

◆ gui_init()

◆ gui_reset()

◆ name()

const char * name ( struct dt_lib_module_t self)

◆ position()

int position ( )

◆ views()

const char ** views ( dt_lib_module_t self)

References v.