![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <glib.h>#include "common/paths.h"#include <glib/gstdio.h>#include <stdio.h>#include <string.h>#include "common/logging.h"#include "common/history_actions.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "database/database.h"#include "database/image_repository.h"#include "common/image.h"#include "common/utility.h"#include "crawler.h"#include "gui/application.h"#include "widgets/widget_settings.h"#include "widgets/widget_style.h"
Include dependency graph for crawler.c:Go to the source code of this file.
Data Structures | |
| struct | dt_control_crawler_result_t |
| struct | dt_control_crawler_gui_t |
|
static |
Definition at line 346 of file crawler.c.
Referenced by sync_db_to_xmp(), sync_newest_to_oldest(), sync_oldest_to_newest(), and sync_xmp_to_db().
|
static |
Definition at line 126 of file crawler.c.
References DT_DEBUG_CONTROL, dt_free, dt_image_get_text_path_from_path(), DT_IMAGE_HAS_TXT, DT_IMAGE_HAS_WAV, dt_image_path_append_version_no_db(), dt_image_repository_set_flags(), DT_PATH_MAX, dt_print(), dt_util_normalize_path(), flags, dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, IS_NULL_PTR, L, dt_control_crawler_result_t::timestamp_db, dt_control_crawler_result_t::timestamp_xmp, and dt_control_crawler_result_t::xmp_path.
Referenced by dt_control_crawler_run().
|
static |
Definition at line 272 of file crawler.c.
References IS_NULL_PTR, L, dt_control_crawler_gui_t::model, model, and dt_control_crawler_gui_t::rows_to_remove.
Referenced by _newest_button_clicked(), _oldest_button_clicked(), _overwrite_button_clicked(), and _reload_button_clicked().
|
static |
Definition at line 79 of file crawler.c.
References dt_free, dt_control_crawler_result_t::image_path, L, and dt_control_crawler_result_t::xmp_path.
Referenced by dt_control_crawler_show_image_list(), sync_db_to_xmp(), sync_newest_to_oldest(), sync_oldest_to_newest(), and sync_xmp_to_db().
|
static |
Definition at line 333 of file crawler.c.
References DT_CONTROL_CRAWLER_COL_ID, DT_CONTROL_CRAWLER_COL_IMAGE_PATH, DT_CONTROL_CRAWLER_COL_TS_DB_INT, DT_CONTROL_CRAWLER_COL_TS_XMP_INT, DT_CONTROL_CRAWLER_COL_XMP_PATH, dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, L, model, dt_control_crawler_result_t::timestamp_db, dt_control_crawler_result_t::timestamp_xmp, and dt_control_crawler_result_t::xmp_path.
Referenced by sync_db_to_xmp(), sync_newest_to_oldest(), sync_oldest_to_newest(), and sync_xmp_to_db().
|
static |
Definition at line 355 of file crawler.c.
References dt_free, FALSE, IS_NULL_PTR, L, dt_control_crawler_gui_t::log, and TRUE.
Referenced by sync_db_to_xmp(), sync_newest_to_oldest(), sync_oldest_to_newest(), and sync_xmp_to_db().
Definition at line 609 of file crawler.c.
References _delete_selected_rows(), L, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_gui_t::spinner, sync_newest_to_oldest(), and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 621 of file crawler.c.
References _delete_selected_rows(), L, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_gui_t::spinner, sync_oldest_to_newest(), and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
| void _overwrite_button_clicked | ( | GtkButton * | button, |
| gpointer | user_data | ||
| ) |
Definition at line 597 of file crawler.c.
References _delete_selected_rows(), L, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_gui_t::spinner, sync_db_to_xmp(), and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 585 of file crawler.c.
References _delete_selected_rows(), L, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_gui_t::spinner, sync_xmp_to_db(), and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 297 of file crawler.c.
References L, and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 314 of file crawler.c.
References L, dt_control_crawler_gui_t::model, and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 306 of file crawler.c.
References L, and dt_control_crawler_gui_t::tree.
Referenced by dt_control_crawler_show_image_list().
Definition at line 86 of file crawler.c.
References L.
Referenced by sync_db_to_xmp(), sync_newest_to_oldest(), and sync_oldest_to_newest().
|
static |
Definition at line 261 of file crawler.c.
References dt_free, L, and dt_control_crawler_gui_t::model.
Referenced by dt_control_crawler_show_image_list().
| GList * dt_control_crawler_run | ( | ) |
this isn't a background job on purpose. it has to be really fast so it shouldn't require locking from image cache or anything like that. should we find out that we want to have a background job that crawls over all images we can maybe refactor this, but for now it's good the way it is.
Definition at line 236 of file crawler.c.
References _crawl_image(), dt_database_release_transaction, dt_database_start_transaction, dt_image_repository_foreach_with_path(), and L.
Referenced by crawl_xmp_changes(), and dt_init().
Definition at line 650 of file crawler.c.
References _free_crawler_result(), _newest_button_clicked(), _oldest_button_clicked(), _overwrite_button_clicked(), _reload_button_clicked(), _select_all_callback(), _select_invert_callback(), _select_none_callback(), DT_CONTROL_CRAWLER_COL_ID, DT_CONTROL_CRAWLER_COL_IMAGE_PATH, DT_CONTROL_CRAWLER_COL_REPORT, DT_CONTROL_CRAWLER_COL_TIME_DELTA, DT_CONTROL_CRAWLER_COL_TS_DB, DT_CONTROL_CRAWLER_COL_TS_DB_INT, DT_CONTROL_CRAWLER_COL_TS_XMP, DT_CONTROL_CRAWLER_COL_TS_XMP_INT, DT_CONTROL_CRAWLER_COL_XMP_PATH, DT_CONTROL_CRAWLER_NUM_COLS, dt_control_crawler_response_callback(), dt_free, dt_free_gpointer(), dt_gui_add_class(), DT_GUI_BOX_SPACING, dt_gui_main_window(), dt_osx_disallow_fullscreen(), DT_PIXEL_APPLY_DPI, FALSE, dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, IS_NULL_PTR, L, dt_control_crawler_gui_t::log, dt_control_crawler_gui_t::model, dt_control_crawler_gui_t::spinner, store, str_time_delta(), dt_control_crawler_result_t::timestamp_db, dt_control_crawler_result_t::timestamp_xmp, dt_control_crawler_gui_t::tree, TRUE, and dt_control_crawler_result_t::xmp_path.
Referenced by crawl_xmp_changes(), and dt_init().
Definition at line 632 of file crawler.c.
References L.
Referenced by dt_control_crawler_show_image_list().
|
static |
Definition at line 414 of file crawler.c.
References _append_row_to_remove(), _free_crawler_result(), _get_crawler_entry_from_model(), _log_synchronization(), _set_modification_time(), dt_image_write_sidecar_file(), error(), dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, L, model, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_result_t::timestamp_db, and dt_control_crawler_result_t::xmp_path.
Referenced by _overwrite_button_clicked().
|
static |
Definition at line 443 of file crawler.c.
References _append_row_to_remove(), _free_crawler_result(), _get_crawler_entry_from_model(), _log_synchronization(), _set_modification_time(), dt_history_load_and_apply_on_image(), dt_image_repository_set_write_timestamp(), dt_image_write_sidecar_file(), error(), dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, L, model, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_result_t::timestamp_db, dt_control_crawler_result_t::timestamp_xmp, and dt_control_crawler_result_t::xmp_path.
Referenced by _newest_button_clicked().
|
static |
Definition at line 515 of file crawler.c.
References _append_row_to_remove(), _free_crawler_result(), _get_crawler_entry_from_model(), _log_synchronization(), _set_modification_time(), dt_history_load_and_apply_on_image(), dt_image_repository_set_write_timestamp(), dt_image_write_sidecar_file(), error(), dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, L, model, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_result_t::timestamp_db, dt_control_crawler_result_t::timestamp_xmp, and dt_control_crawler_result_t::xmp_path.
Referenced by _oldest_button_clicked().
|
static |
Definition at line 383 of file crawler.c.
References _append_row_to_remove(), _free_crawler_result(), _get_crawler_entry_from_model(), _log_synchronization(), dt_history_load_and_apply_on_image(), dt_image_repository_set_write_timestamp(), error(), dt_control_crawler_result_t::id, dt_control_crawler_result_t::image_path, L, model, dt_control_crawler_gui_t::rows_to_remove, dt_control_crawler_result_t::timestamp_xmp, and dt_control_crawler_result_t::xmp_path.
Referenced by _reload_button_clicked().