![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/geo.h"#include "common/curl_tools.h"#include "control/conf.h"#include "control/control.h"#include "control/jobs.h"#include "dtgtk/icon.h"#include "gui/gtk.h"#include "libs/lib.h"#include "libs/lib_api.h"#include <curl/curl.h>#include <gdk/gdkkeysyms.h>
Include dependency graph for location.c:Data Structures | |
| struct | _lib_location_result_t |
| struct | dt_lib_location_t |
| struct | _callback_param_t |
| struct | params_fixed_t |
Macros | |
| #define | LIMIT_RESULT 5 |
Typedefs | |
| typedef enum _lib_location_type_t | _lib_location_type_t |
| typedef struct _lib_location_result_t | _lib_location_result_t |
| typedef struct dt_lib_location_t | dt_lib_location_t |
| typedef struct _callback_param_t | _callback_param_t |
Enumerations | |
| enum | _lib_location_type_t { LOCATION_TYPE_VILLAGE , LOCATION_TYPE_HAMLET , LOCATION_TYPE_CITY , LOCATION_TYPE_ADMINISTRATIVE , LOCATION_TYPE_RESIDENTIAL , LOCATION_TYPE_UNKNOWN } |
Functions | |
| static void | _lib_location_entry_activated (GtkButton *button, gpointer user_data) |
| static gboolean | _lib_location_result_item_activated (GtkButton *button, GdkEventButton *ev, gpointer user_data) |
| static void | _lib_location_parser_start_element (GMarkupParseContext *cxt, const char *element_name, const char **attribute_names, const gchar **attribute_values, gpointer user_data, GError **error) |
| static void | clear_search (dt_lib_location_t *lib) |
| 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) |
| void | gui_reset (dt_lib_module_t *self) |
| int | position () |
| void | gui_init (dt_lib_module_t *self) |
| void | gui_cleanup (dt_lib_module_t *self) |
| static gboolean | _event_box_enter_leave (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static GtkWidget * | _lib_location_place_widget_new (dt_lib_location_t *lib, _lib_location_result_t *place) |
| static size_t | _lib_location_curl_write_data (void *buffer, size_t size, size_t nmemb, void *userp) |
| static int32_t | _lib_location_place_get_zoom (_lib_location_result_t *place) |
| static void | _clear_markers (dt_lib_location_t *lib) |
| static void | free_location (_lib_location_result_t *location) |
| static void | _show_location (dt_lib_location_t *lib, _lib_location_result_t *p) |
| static void | _lib_location_search_finish (gpointer user_data) |
| static gboolean | _lib_location_search (gpointer user_data) |
| struct params_fixed_t | __attribute__ ((packed)) |
| void * | get_params (dt_lib_module_t *self, int *size) |
| int | set_params (dt_lib_module_t *self, const void *params, int size) |
Variables | |
| static GMarkupParser | _lib_location_parser = { _lib_location_parser_start_element, NULL, NULL, NULL, NULL } |
| int32_t | relevance |
| _lib_location_type_t | type |
| float | lon |
| float | lat |
| dt_map_box_t | bbox |
| dt_geo_map_display_t | marker_type |
| #define LIMIT_RESULT 5 |
| typedef struct _callback_param_t _callback_param_t |
| typedef struct _lib_location_result_t _lib_location_result_t |
| typedef enum _lib_location_type_t _lib_location_type_t |
| typedef struct dt_lib_location_t dt_lib_location_t |
| enum _lib_location_type_t |
| struct params_fixed_t __attribute__ | ( | (packed) | ) |
References _lib_location_result_t::bbox, dt_conf_get_bool(), dt_conf_get_int(), error(), FALSE, lat, _lib_location_result_t::lat, dt_map_box_t::lat1, dt_map_box_t::lat2, LOCATION_TYPE_ADMINISTRATIVE, LOCATION_TYPE_CITY, LOCATION_TYPE_HAMLET, LOCATION_TYPE_RESIDENTIAL, lon, _lib_location_result_t::lon, dt_map_box_t::lon1, dt_map_box_t::lon2, MAP_DISPLAY_NONE, MAP_DISPLAY_POINT, MAP_DISPLAY_POLYGON, MAP_DISPLAY_TRACK, _lib_location_result_t::marker_points, dt_lib_location_t::marker_points, _lib_location_result_t::marker_type, _lib_location_result_t::name, dt_lib_location_t::places, TRUE, and _lib_location_result_t::type.
|
static |
References darktable, MAP_DISPLAY_NONE, dt_lib_location_t::marker, dt_lib_location_t::marker_type, and darktable_t::view_manager.
Referenced by _show_location(), and clear_search().
|
static |
References FALSE.
Referenced by _lib_location_place_widget_new().
|
static |
References dt_lib_location_t::response, and dt_lib_location_t::response_size.
Referenced by _lib_location_search().
|
static |
References _lib_location_search(), _lib_location_search_finish(), dt_lib_module_t::data, FALSE, and dt_lib_location_t::search.
Referenced by gui_init().
|
static |
|
static |
|
static |
References _event_box_enter_leave(), _lib_location_result_item_activated(), dt_lib_location_t::callback_params, dt_util_latitude_str(), dt_util_longitude_str(), FALSE, lat, _lib_location_result_t::lat, _callback_param_t::lib, lon, _lib_location_result_t::lon, _lib_location_result_t::name, _callback_param_t::result, and TRUE.
Referenced by _lib_location_search_finish().
|
static |
References _show_location(), _callback_param_t::lib, _callback_param_t::result, and TRUE.
Referenced by _lib_location_place_widget_new().
|
static |
References _lib_location_curl_write_data(), _lib_location_parser, clear_search(), darktable_package_string, dt_lib_module_t::data, dt_conf_get_string_const(), dt_curl_init(), FALSE, LIMIT_RESULT, dt_lib_location_t::places, dt_lib_location_t::response, dt_lib_location_t::response_size, dt_lib_location_t::search, and TRUE.
Referenced by _lib_location_entry_activated().
|
static |
References _lib_location_place_widget_new(), _show_location(), dt_lib_module_t::data, g_list_is_singleton, dt_lib_location_t::places, dt_lib_location_t::result, and TRUE.
Referenced by _lib_location_entry_activated(), and set_params().
|
static |
References _clear_markers(), _lib_location_place_get_zoom(), darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_LOCATION_CHANGED, MAP_DISPLAY_POLYGON, dt_lib_location_t::marker, dt_lib_location_t::marker_type, dt_lib_location_t::selected_location, darktable_t::signals, and darktable_t::view_manager.
Referenced by _lib_location_result_item_activated(), and _lib_location_search_finish().
|
static |
References _clear_markers(), dt_lib_location_t::callback_params, dt_gui_container_destroy_children(), free_location(), dt_lib_location_t::places, dt_lib_location_t::response, dt_lib_location_t::response_size, dt_lib_location_t::result, and dt_lib_location_t::selected_location.
Referenced by _lib_location_search(), gui_reset(), and set_params().
| uint32_t container | ( | dt_lib_module_t * | self | ) |
References DT_UI_CONTAINER_PANEL_RIGHT_CENTER.
|
static |
References _lib_location_result_t::marker_points, and _lib_location_result_t::name.
Referenced by clear_search().
| void * get_params | ( | dt_lib_module_t * | self, |
| int * | size | ||
| ) |
References _lib_location_result_t::bbox, params_fixed_t::bbox, dt_lib_module_t::data, _lib_location_result_t::lat, params_fixed_t::lat, dt_map_box_t::lat1, dt_map_box_t::lat2, _lib_location_result_t::lon, params_fixed_t::lon, dt_map_box_t::lon1, dt_map_box_t::lon2, _lib_location_result_t::marker_points, _lib_location_result_t::marker_type, params_fixed_t::marker_type, _lib_location_result_t::name, _lib_location_result_t::relevance, params_fixed_t::relevance, dt_lib_location_t::selected_location, size, _lib_location_result_t::type, and params_fixed_t::type.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
References dt_lib_module_t::data.
| void gui_init | ( | dt_lib_module_t * | self | ) |
| void gui_reset | ( | dt_lib_module_t * | self | ) |
References clear_search(), dt_lib_module_t::data, and dt_lib_location_t::search.
| const char * name | ( | struct dt_lib_module_t * | self | ) |
| int position | ( | ) |
| int set_params | ( | dt_lib_module_t * | self, |
| const void * | params, | ||
| int | size | ||
| ) |
References _lib_location_search_finish(), _lib_location_result_t::bbox, params_fixed_t::bbox, clear_search(), dt_lib_module_t::data, _lib_location_result_t::lat, params_fixed_t::lat, dt_map_box_t::lat1, dt_map_box_t::lat2, _lib_location_result_t::lon, params_fixed_t::lon, dt_map_box_t::lon1, dt_map_box_t::lon2, _lib_location_result_t::marker_points, _lib_location_result_t::marker_type, params_fixed_t::marker_type, name, _lib_location_result_t::name, dt_lib_location_t::places, _lib_location_result_t::relevance, params_fixed_t::relevance, dt_lib_location_t::search, size, _lib_location_result_t::type, and params_fixed_t::type.
| const char ** views | ( | dt_lib_module_t * | self | ) |
|
static |
Referenced by _lib_location_search().
| dt_map_box_t bbox |
| float lat |
Referenced by __attribute__(), _drag_and_drop_received(), _is_point_in_polygon(), _lib_location_place_widget_new(), _toast_log_lat_lon(), _track_add_point(), _view_map_add_location(), _view_map_angles(), _view_map_button_press_callback(), _view_map_center_on_location(), _view_map_changed_callback_delayed(), _view_map_display_selected(), _view_map_drag_motion_callback(), _view_map_motion_notify_callback(), _view_map_scroll_event(), _view_map_thumb_angles(), dt_gpx_geodesic_intermediate_point(), dt_gpx_get_location(), and dt_map_location_included().
| float lon |
Referenced by __attribute__(), _drag_and_drop_received(), _lib_location_place_widget_new(), _toast_log_lat_lon(), _track_add_point(), _view_map_add_location(), _view_map_angles(), _view_map_button_press_callback(), _view_map_center_on_location(), _view_map_changed_callback_delayed(), _view_map_display_selected(), _view_map_drag_motion_callback(), _view_map_motion_notify_callback(), _view_map_scroll_event(), _view_map_thumb_angles(), dt_gpx_geodesic_intermediate_point(), dt_gpx_get_location(), and dt_map_location_included().
| dt_geo_map_display_t marker_type |
| int32_t relevance |
Referenced by _match_text().
| _lib_location_type_t type |