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:

Go to the source code of this file.

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

Definition at line 84 of file map_settings.c.

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

Definition at line 79 of file map_settings.c.

References darktable, and darktable_t::view_manager.

Referenced by _thumbnail_change_accel(), and gui_init().

◆ _show_osd_toggled()

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

Definition at line 74 of file map_settings.c.

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.

Definition at line 110 of file map_settings.c.

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)

Definition at line 58 of file map_settings.c.

References DT_UI_CONTAINER_PANEL_RIGHT_CENTER.

◆ gui_cleanup()

◆ gui_init()

◆ gui_reset()

◆ name()

const char * name ( struct dt_lib_module_t self)

Definition at line 47 of file map_settings.c.

◆ position()

int position ( )

Definition at line 69 of file map_settings.c.

◆ views()

const char ** views ( dt_lib_module_t self)

Definition at line 52 of file map_settings.c.

References v.