![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/collection.h"
#include "common/debug.h"
#include "common/map_locations.h"
#include "control/conf.h"
#include "control/control.h"
#include "libs/lib.h"
Data Structures | |
struct | dt_lib_map_locations_t |
struct | dt_loc_op_t |
Typedefs | |
typedef struct dt_lib_map_locations_t | dt_lib_map_locations_t |
typedef struct dt_loc_op_t | dt_loc_op_t |
typedef enum dt_map_positions_cols_t | dt_map_positions_cols_t |
typedef enum dt_map_position_name_sort_id | dt_map_position_name_sort_id |
Enumerations | |
enum | dt_map_positions_cols_t { DT_MAP_LOCATION_COL_ID = 0 , DT_MAP_LOCATION_COL_TAG , DT_MAP_LOCATION_COL_PATH , DT_MAP_LOCATION_COL_COUNT , DT_MAP_LOCATION_NUM_COLS } |
enum | dt_map_position_name_sort_id { DT_MAP_POSITION_SORT_NAME_ID } |
Functions | |
static void | _signal_location_change (dt_lib_module_t *self) |
static void | _show_location (dt_lib_module_t *self) |
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 gboolean | _mouse_scroll (GtkWidget *treeview, GdkEventScroll *event, dt_lib_module_t *self) |
static gboolean | _find_tag_iter_id (GtkTreeModel *model, GtkTreeIter *iter, const guint locid) |
static void | _locations_tree_update (dt_lib_module_t *self, const guint locid) |
static void | _display_buttons (dt_lib_module_t *self) |
static void | _tree_name_show (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
static void | _new_button_clicked (GtkButton *button, dt_lib_module_t *self) |
static void | _shape_button_clicked (GtkButton *button, dt_lib_module_t *self) |
static void | _show_all_button_clicked (GtkButton *button, dt_lib_module_t *self) |
static void | _delete_tree_path (GtkTreeModel *model, GtkTreeIter *iter, gboolean root) |
static gboolean | _update_tag_name_per_name (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, dt_loc_op_t *to) |
static void | _view_map_geotag_changed (gpointer instance, GList *imgs, const int newlocid, dt_lib_module_t *self) |
static void | _view_map_location_changed (gpointer instance, GList *polygons, dt_lib_module_t *self) |
static void | _name_editing_done (GtkCellEditable *editable, dt_lib_module_t *self) |
static void | _name_start_editing (GtkCellRenderer *renderer, GtkCellEditable *editable, char *path, dt_lib_module_t *self) |
static gint | _sort_position_names_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, dt_lib_module_t *self) |
static void | _pop_menu_edit_location (GtkWidget *menuitem, dt_lib_module_t *self) |
static void | _pop_menu_delete_location (GtkWidget *menuitem, dt_lib_module_t *self) |
static gboolean | _set_location_collection (dt_lib_module_t *self) |
static void | _pop_menu_update_filmstrip (GtkWidget *menuitem, dt_lib_module_t *self) |
static void | _pop_menu_goto_collection (GtkWidget *menuitem, dt_lib_module_t *self) |
static void | _pop_menu_view (GtkWidget *view, GdkEventButton *event, dt_lib_module_t *self) |
static gboolean | _force_selection_changed (gpointer user_data) |
static void | _selection_changed (GtkTreeSelection *selection, dt_lib_module_t *self) |
static gboolean | _click_on_view (GtkWidget *view, GdkEventButton *event, dt_lib_module_t *self) |
void | gui_init (dt_lib_module_t *self) |
void | gui_cleanup (dt_lib_module_t *self) |
Variables | |
const DTGTKCairoPaintIconFunc | location_shapes [] |
typedef struct dt_lib_map_locations_t dt_lib_map_locations_t |
typedef struct dt_loc_op_t dt_loc_op_t |
typedef enum dt_map_position_name_sort_id dt_map_position_name_sort_id |
typedef enum dt_map_positions_cols_t dt_map_positions_cols_t |
|
static |
References _display_buttons(), _force_selection_changed(), _pop_menu_view(), button_pressed(), dt_lib_module_t::data, dt_control_log(), dt_modifier_is(), FALSE, dt_lib_map_locations_t::name_col, dt_lib_map_locations_t::renderer, TRUE, dt_lib_map_locations_t::view, and view().
Referenced by gui_init().
|
static |
References _delete_tree_path(), DT_MAP_LOCATION_COL_PATH, FALSE, model, and TRUE.
Referenced by _delete_tree_path(), _name_editing_done(), and _pop_menu_delete_location().
|
static |
|
static |
References _find_tag_iter_id(), DT_MAP_LOCATION_COL_ID, FALSE, and model.
Referenced by _find_tag_iter_id(), _locations_tree_update(), and _view_map_geotag_changed().
|
static |
References dt_lib_module_t::data, FALSE, and dt_lib_map_locations_t::selection.
Referenced by _click_on_view().
|
static |
References _find_tag_iter_id(), dt_lib_module_t::data, DT_MAP_LOCATION_COL_COUNT, DT_MAP_LOCATION_COL_ID, DT_MAP_LOCATION_COL_PATH, DT_MAP_LOCATION_COL_TAG, dt_map_location_free_result(), dt_map_location_get_locations_by_path(), DT_MAP_POSITION_SORT_NAME_ID, dt_sort_tag(), dt_util_dstrcat(), FALSE, model, dt_lib_map_locations_t::name_col, TRUE, and dt_lib_map_locations_t::view.
Referenced by _name_editing_done(), _pop_menu_delete_location(), and gui_init().
|
static |
References dt_lib_module_t::data, dt_conf_set_int(), dt_modifier_is(), DT_PIXEL_APPLY_DPI, FALSE, height, TRUE, width, and dt_lib_map_locations_t::window.
Referenced by gui_init().
|
static |
References _delete_tree_path(), _display_buttons(), _locations_tree_update(), _signal_location_change(), _update_tag_name_per_name(), darktable, dt_lib_module_t::data, dt_conf_get_int(), dt_control_log(), DT_MAP_LOCATION_COL_COUNT, DT_MAP_LOCATION_COL_ID, DT_MAP_LOCATION_COL_PATH, DT_MAP_LOCATION_COL_TAG, dt_map_location_free_result(), dt_map_location_get_images_count(), dt_map_location_get_locations_by_path(), dt_map_location_new(), dt_map_location_rename(), FALSE, leave(), model, name, dt_loc_op_t::newtagname, dt_loc_op_t::oldtagname, dt_lib_map_locations_t::polygons, dt_lib_map_locations_t::renderer, reset(), TRUE, dt_lib_map_locations_t::view, and darktable_t::view_manager.
Referenced by _name_start_editing().
|
static |
References _name_editing_done(), dt_lib_module_t::data, DT_MAP_LOCATION_COL_TAG, model, name, and dt_lib_map_locations_t::view.
Referenced by gui_init().
|
static |
References dt_lib_module_t::data, DT_MAP_LOCATION_COL_COUNT, DT_MAP_LOCATION_COL_ID, DT_MAP_LOCATION_COL_PATH, DT_MAP_LOCATION_COL_TAG, dt_map_location_name_exists(), dt_util_dstrcat(), model, name, dt_lib_map_locations_t::name_col, dt_lib_map_locations_t::renderer, TRUE, and dt_lib_map_locations_t::view.
Referenced by gui_init().
|
static |
References _delete_tree_path(), _display_buttons(), _locations_tree_update(), _signal_location_change(), darktable, dt_lib_module_t::data, DT_MAP_LOCATION_COL_ID, dt_map_location_delete(), MAP_LOCATION_ACTION_REMOVE, model, TRUE, dt_lib_map_locations_t::view, and darktable_t::view_manager.
Referenced by _pop_menu_view().
|
static |
References _display_buttons(), dt_lib_module_t::data, model, dt_lib_map_locations_t::name_col, dt_lib_map_locations_t::renderer, TRUE, and dt_lib_map_locations_t::view.
Referenced by _pop_menu_view().
|
static |
References _set_location_collection(), darktable, dt_view_manager_switch(), and darktable_t::view_manager.
Referenced by _pop_menu_view().
|
static |
References _set_location_collection().
Referenced by _pop_menu_view().
|
static |
References _pop_menu_delete_location(), _pop_menu_edit_location(), _pop_menu_goto_collection(), _pop_menu_update_filmstrip(), DT_MAP_LOCATION_COL_ID, FALSE, model, and view().
Referenced by _click_on_view().
|
static |
References _display_buttons(), _show_location(), darktable, dt_lib_module_t::data, MAP_LOCATION_ACTION_REMOVE, model, dt_lib_map_locations_t::view, and darktable_t::view_manager.
Referenced by gui_init().
|
static |
References dt_lib_module_t::data, dt_collection_deserialize(), DT_COLLECTION_PROP_GEOTAGGING, DT_MAP_LOCATION_COL_PATH, FALSE, model, name, TRUE, and dt_lib_map_locations_t::view.
Referenced by _pop_menu_goto_collection(), and _pop_menu_update_filmstrip().
|
static |
References dt_lib_module_t::data, dt_conf_get_int(), dt_conf_set_int(), dtgtk_togglebutton_set_paint(), FALSE, location_shapes, MAP_LOCATION_SHAPE_POLYGONS, dt_lib_map_locations_t::polygons, dt_lib_map_locations_t::shape_button, and dt_lib_map_locations_t::shape_button_handler.
Referenced by gui_init().
|
static |
References darktable, dt_lib_module_t::data, dt_conf_set_bool(), MAP_LOCATION_ACTION_UPDATE_OTHERS, dt_lib_map_locations_t::show_all_button, and darktable_t::view_manager.
Referenced by gui_init().
|
static |
References darktable, dt_lib_module_t::data, DT_MAP_LOCATION_COL_ID, dt_map_location_get_data(), MAP_LOCATION_ACTION_REMOVE, model, dt_lib_map_locations_t::view, and darktable_t::view_manager.
Referenced by _selection_changed(), and _view_map_geotag_changed().
|
static |
|
static |
References DT_MAP_LOCATION_COL_PATH, and model.
Referenced by gui_init().
|
static |
References DT_MAP_LOCATION_COL_COUNT, DT_MAP_LOCATION_COL_ID, DT_MAP_LOCATION_COL_PATH, DT_MAP_LOCATION_COL_TAG, model, and name.
Referenced by gui_init().
|
static |
References DT_MAP_LOCATION_COL_PATH, DT_MAP_LOCATION_COL_TAG, FALSE, model, dt_loc_op_t::newtagname, and dt_loc_op_t::oldtagname.
Referenced by _name_editing_done().
|
static |
References _display_buttons(), _find_tag_iter_id(), _show_location(), dt_lib_module_t::data, DT_MAP_LOCATION_COL_COUNT, dt_map_location_find_locations(), dt_map_location_free_result(), dt_map_location_get_locations_by_path(), dt_map_location_update_locations(), FALSE, model, dt_lib_map_locations_t::name_col, TRUE, and dt_lib_map_locations_t::view.
Referenced by _signal_location_change(), gui_cleanup(), and gui_init().
|
static |
References dt_lib_module_t::data, dt_conf_get_int(), dt_conf_set_int(), dtgtk_togglebutton_set_paint(), location_shapes, MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_POLYGONS, dt_lib_map_locations_t::polygons, dt_lib_map_locations_t::shape_button, and dt_lib_map_locations_t::shape_button_handler.
Referenced by gui_cleanup(), and gui_init().
uint32_t container | ( | dt_lib_module_t * | self | ) |
References DT_UI_CONTAINER_PANEL_RIGHT_CENTER.
void gui_cleanup | ( | dt_lib_module_t * | self | ) |
void gui_init | ( | dt_lib_module_t * | self | ) |
References _click_on_view(), _display_buttons(), _locations_tree_update(), _mouse_scroll(), _name_start_editing(), _new_button_clicked(), _selection_changed(), _shape_button_clicked(), _show_all_button_clicked(), _sort_position_names_func(), _tree_name_show(), _view_map_geotag_changed(), _view_map_location_changed(), darktable, dt_lib_module_t::data, dt_action_button_new(), dt_conf_get_int(), dt_conf_set_bool(), dt_conf_set_int(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_MAP_LOCATION_COL_TAG, DT_MAP_LOCATION_NUM_COLS, DT_MAP_POSITION_SORT_NAME_ID, DT_PIXEL_APPLY_DPI, DT_SIGNAL_GEOTAG_CHANGED, DT_SIGNAL_LOCATION_CHANGED, dtgtk_togglebutton_new(), FALSE, height, location_shapes, MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_POLYGONS, dt_lib_map_locations_t::name_col, dt_lib_map_locations_t::new_button, dt_lib_map_locations_t::renderer, dt_lib_map_locations_t::selection, dt_lib_map_locations_t::shape_button, dt_lib_map_locations_t::shape_button_handler, dt_lib_map_locations_t::show_all_button, darktable_t::signals, TRUE, dt_lib_map_locations_t::view, view(), dt_lib_module_t::widget, and dt_lib_map_locations_t::window.
const char * name | ( | struct dt_lib_module_t * | self | ) |
int position | ( | ) |
const char ** views | ( | dt_lib_module_t * | self | ) |
const DTGTKCairoPaintIconFunc location_shapes[] |
Referenced by _shape_button_clicked(), _view_map_location_changed(), and gui_init().