![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "libs/collect.h"#include "control/settings.h"#include "widgets/bauhaus.h"#include "widgets/accelerators.h"#include "common/collection.h"#include "common/film.h"#include "common/image.h"#include "system/macros.h"#include "metadata/metadata.h"#include "caches/mipmap_cache.h"#include "common/module_versioning.h"#include "common/paths.h"#include "common/selection.h"#include "metadata/tags.h"#include "common/utility.h"#include "common/conf.h"#include "control/control.h"#include "control/jobs.h"#include "control/jobs/control_jobs.h"#include "widgets/paint.h"#include "widgets/togglebutton.h"#include "gui/drag_and_drop.h"#include "gui/application.h"#include "libs/lib.h"#include "libs/lib_api.h"#include "views/view.h"#include <glib/gi18n.h>#include <glib/gstdio.h>#include "widgets/notebook.h"#include "widgets/scroll_wrap.h"#include "widgets/widget_style.h"
Include dependency graph for collect.c:Go to the source code of this file.
Data Structures | |
| struct | dt_lib_collect_rule_t |
| struct | dt_lib_collect_t |
| struct | dt_lib_collect_params_rule_t |
| struct | dt_lib_collect_params_t |
| struct | _range_t |
| struct | name_key_tuple_t |
| struct | _date_range_t |
| struct | _expand_ctx_t |
| struct | collect_row_t |
| struct | collect_prerender_t |
| struct | collect_action_t |
Macros | |
| #define | MAX_RULES 10 |
| #define | PARAM_STRING_SIZE 256 |
| #define | COLLECT_N_OPS ((int)G_N_ELEMENTS(OP_TOKENS)) |
| #define | CLEAR_PARAMS(r) |
| #define | ADD_COLLECT_ENTRY(value) |
Typedefs | |
| typedef enum dt_collect_tab_t | dt_collect_tab_t |
| typedef enum dt_lib_collect_cols_t | dt_lib_collect_cols_t |
| typedef struct dt_lib_collect_rule_t | dt_lib_collect_rule_t |
| typedef struct dt_lib_collect_t | dt_lib_collect_t |
| typedef struct dt_lib_collect_params_rule_t | dt_lib_collect_params_rule_t |
| typedef struct dt_lib_collect_params_t | dt_lib_collect_params_t |
| typedef struct _range_t | _range_t |
| typedef struct name_key_tuple_t | name_key_tuple_t |
| typedef struct _date_range_t | _date_range_t |
| typedef struct _expand_ctx_t | _expand_ctx_t |
| typedef struct collect_row_t | collect_row_t |
| typedef struct collect_prerender_t | collect_prerender_t |
| typedef struct collect_action_t | collect_action_t |
Enumerations | |
| enum | dt_collect_tab_t { TAB_FOLDERS = 0 , TAB_COLLECTIONS = 1 , TAB_QUERIES = 2 } |
| enum | dt_lib_collect_cols_t { DT_LIB_COLLECT_COL_TEXT = 0 , DT_LIB_COLLECT_COL_ID , DT_LIB_COLLECT_COL_TOOLTIP , DT_LIB_COLLECT_COL_PATH , DT_LIB_COLLECT_COL_VISIBLE , DT_LIB_COLLECT_COL_UNREACHABLE , DT_LIB_COLLECT_COL_COUNT , DT_LIB_COLLECT_COL_INDEX , DT_LIB_COLLECT_COL_FONT , DT_LIB_COLLECT_NUM_COLS } |
Functions | |
| static void | _lib_collect_gui_update (dt_lib_module_t *self) |
| static void | entry_changed (GtkEntry *entry, dt_lib_collect_rule_t *dr) |
| static void | combo_changed (GtkWidget *combo, dt_lib_collect_rule_t *dr) |
| static void | collection_updated (gpointer instance, dt_collection_change_t query_change, dt_collection_properties_t changed_property, gpointer imgs, int next, gpointer self) |
| static void | tag_changed (gpointer instance, gpointer self) |
| static void | row_activated (GtkTreeView *view, GtkTreePath *path, GdkEventButton *event, dt_lib_collect_t *d) |
| static void | update_view (dt_lib_collect_rule_t *dr) |
| static void | _populate_collect_combo (GtkWidget *w) |
| static int | _combo_get_active_collection (GtkWidget *combo) |
| static gboolean | _combo_set_active_collection (GtkWidget *combo, const int property) |
| static void | _op_changed (GtkWidget *w, dt_lib_collect_rule_t *dr) |
| static dt_lib_collect_t * | get_collect (dt_lib_collect_rule_t *r) |
| static dt_lib_module_t * | _self () |
| static int | is_time_property (int property) |
| static gboolean | item_is_folder (int item) |
| static gboolean | item_is_tag (int item) |
| static gboolean | item_is_numeric (int item) |
| static gboolean | item_is_tree (int item) |
| static void | _split_operator (const char *text, int *op_idx, const char **value) |
| 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 () |
| void * | legacy_params (struct dt_lib_module_t *self, const void *const old_params, const size_t old_params_size, const int old_version, int *new_version, size_t *new_size) |
| void | init_presets (dt_lib_module_t *self) |
| static int | _rules_count () |
| static void | _rules_set_count (int n) |
| static int | _rule_get_item (int n) |
| static void | _rule_set_item (int n, int item) |
| static int | _rule_get_mode (int n) |
| static void | _rule_set_mode (int n, int mode) |
| static gboolean | _rule_get_recursive (int n) |
| static void | _rule_set_recursive (int n, gboolean recursive) |
| static gchar * | _rule_get_string (int n) |
| static void | _rule_set_string (int n, const char *s) |
| static void | set_properties (dt_lib_collect_rule_t *dr) |
| static void | get_properties (dt_lib_collect_rule_t *dr) |
| static void | _commit_colllection () |
| static void | _commit_quiet () |
| static dt_lib_collect_rule_t * | get_active_rule (dt_lib_collect_t *d) |
| static void | get_number_of_rules (dt_lib_collect_t *d) |
| static void | _lib_collect_update_params (dt_lib_collect_t *d) |
| void * | get_params (dt_lib_module_t *self, int *size) |
| int | set_params (dt_lib_module_t *self, const void *params, int size) |
| void | gui_reset (dt_lib_module_t *self) |
| static int | string_array_length (char **list) |
| static char ** | split_path (const char *path) |
| static void | free_tuple (gpointer data) |
| static gint | sort_folder_tag (gconstpointer a, gconstpointer b) |
| static char * | tag_collate_key (char *tag) |
| static void | tree_count_show (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
| static gboolean | list_match_string (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static void | _strip_recursion_marker (gchar *needle, gchar *haystack, int property) |
| static gboolean | tree_match_string (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static gboolean | tree_reveal_func (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static void | tree_set_visibility (GtkTreeModel *model, gpointer data) |
| static guint64 | _date_key (const char *s, char pad) |
| static gboolean | tree_range_visible (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static gboolean | list_select (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static gboolean | range_select (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static gboolean | tree_expand (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static GtkTreePath * | _folders_root_collapse_path (GtkTreeModel *model) |
| static GtkTreeModel * | _create_filtered_model (GtkTreeModel *model, dt_lib_collect_rule_t *dr) |
| static void | _collect_expanded_cb (GtkTreeView *view, GtkTreePath *path, gpointer data) |
| static gboolean | _restore_expanded_cb (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static char ** | _split_tree_name (int property, const char *name) |
| static void | _propagate_count_to_ancestors (GtkTreeStore *store, GtkTreeIter *leaf, int count) |
| static gboolean | _maybe_file_uncategorized (GtkTreeStore *store, const char *name, const char *next_name_raw, GtkTreeIter *uncategorized, guint *index, int count) |
| static GList * | _collect_sorted_tree_names (int property, int rule) |
| static void | _build_tree_store (GtkTreeStore *store, int property, GList *sorted_names, gboolean no_uncategorized, const char *format_separator) |
| static void | _populate_tree (dt_lib_collect_rule_t *dr) |
| static void | _populate_list (dt_lib_collect_rule_t *dr) |
| static gchar * | _decorate_hierarchy (gchar *text, GdkEventButton *event) |
| static gboolean | _adopt_tag_order (const char *text, int *order) |
| static void | _force_refresh (dt_lib_collect_t *d) |
| static void | _free_row (gpointer p) |
| static GList * | _selected_rows (dt_lib_collect_t *d) |
| static GList * | _rows_to_imgids (int property, GList *rows, gboolean recursive) |
| static gboolean | _confirm (const char *title, const char *message) |
| static gchar * | _ask_text (const char *title, const char *initial) |
| static void | _act_folders_remove (dt_lib_collect_t *d, GList *rows) |
| static void | _act_folders_relocate (dt_lib_collect_t *d, GList *rows) |
| static void | _act_tags_remove (dt_lib_collect_t *d, GList *rows) |
| static void | _act_tag_rename (dt_lib_collect_t *d, GList *rows) |
| static void | _prerender_free (void *p) |
| static int32_t | _prerender_job (dt_job_t *job) |
| static void | _act_prerender (dt_lib_collect_t *d, GList *rows) |
| static gboolean | _en_folders (int property, int n) |
| static gboolean | _en_folders_lighttable (int property, int n) |
| static gboolean | _en_tags (int property, int n) |
| static gboolean | _en_tag_single (int property, int n) |
| static gboolean | _en_any (int property, int n) |
| static void | _action_activate (GtkMenuItem *mi, dt_lib_collect_t *d) |
| static void | _show_context_menu (dt_lib_collect_t *d, GdkEventButton *event) |
| static gboolean | _drop_move_to_folder (dt_lib_collect_t *d, const char *folder, GList *imgs) |
| static gboolean | _drop_attach_tag (dt_lib_collect_t *d, const char *tagpath, GList *imgs) |
| static gboolean | _do_drop (dt_lib_collect_t *d, GtkTreeView *tree, gint x, gint y, GtkSelectionData *sel) |
| static gboolean | _clear_suppress_row_activated (gpointer d) |
| static gboolean | _view_drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time, dt_lib_collect_t *d) |
| static void | _view_drag_leave (GtkWidget *widget, GdkDragContext *context, guint time, dt_lib_collect_t *d) |
| static void | _view_drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint target_type, guint time, dt_lib_collect_t *d) |
| static gboolean | _view_button_pressed (GtkWidget *treeview, GdkEventButton *event, dt_lib_collect_t *d) |
| static gboolean | _view_popup_menu (GtkWidget *treeview, dt_lib_collect_t *d) |
| static void | _view_row_activated (GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, dt_lib_collect_t *d) |
| static void | _view_row_expanded (GtkTreeView *view, GtkTreeIter *iter, GtkTreePath *path, dt_lib_collect_t *d) |
| static void | _set_tooltip (dt_lib_collect_rule_t *dr) |
| static void | _update_op_combo (dt_lib_collect_rule_t *dr) |
| static void | entry_activated (GtkWidget *entry, dt_lib_collect_rule_t *dr) |
| static gboolean | _entry_focus_in (GtkWidget *w, GdkEventFocus *event, dt_lib_collect_rule_t *dr) |
| static void | _recursive_toggled (GtkToggleButton *b, dt_lib_collect_t *d) |
| static void | _sort_dir_toggled (GtkToggleButton *b, dt_lib_collect_t *d) |
| static void | _sort_by_changed (GtkWidget *combo, dt_lib_collect_t *d) |
| static void | _folder_levels_changed (GtkWidget *spin, dt_lib_collect_t *d) |
| static void | _no_uncategorized_toggled (GtkToggleButton *b, dt_lib_collect_t *d) |
| static void | _raw_toggled (GtkToggleButton *b, dt_lib_collect_t *d) |
| static void | _raw_entry_activated (GtkWidget *entry, dt_lib_collect_t *d) |
| static void | menuitem_mode (GtkMenuItem *menuitem, dt_lib_collect_rule_t *dr) |
| static void | menuitem_mode_change (GtkMenuItem *menuitem, dt_lib_collect_rule_t *dr) |
| static void | menuitem_clear (GtkMenuItem *menuitem, dt_lib_collect_rule_t *dr) |
| static gboolean | popup_button_callback (GtkWidget *widget, GdkEventButton *event, dt_lib_collect_rule_t *dr) |
| static void | _on_tab_switch (GtkNotebook *nb, GtkWidget *page, guint page_num, dt_lib_module_t *self) |
| static void | _combo_as_view_toggle (GtkWidget *combo) |
| static void | _combo_as_collections (GtkWidget *combo) |
| static void | _combo_as_full (GtkWidget *combo) |
| static void | _set_rule_button (dt_lib_collect_rule_t *dr, gboolean last, gboolean active) |
| static void | _hide_all_widgets (dt_lib_collect_t *d) |
| static void | _configure_tab (dt_lib_collect_t *d, dt_collect_tab_t tab) |
| static void | filmrolls_updated (gpointer instance, gpointer self) |
| static void | filmrolls_removed (gpointer instance, gpointer self) |
| static void | preferences_changed (gpointer instance, gpointer self) |
| static void | geotag_changed (gpointer instance, GList *imgs, const int locid, gpointer self) |
| static void | metadata_changed (gpointer instance, int type, gpointer self) |
| static void | _mount_changed (GVolumeMonitor *volume_monitor, GMount *mount, dt_lib_module_t *self) |
| void | gui_init (dt_lib_module_t *self) |
| void | gui_cleanup (dt_lib_module_t *self) |
Variables | |
| static const char *const | OP_TOKENS [] = { "", "<", "<=", ">", ">=", "<>" } |
| static const char *const | OP_LABELS [] = { "=", "<", "≤", ">", "≥", "≠" } |
| static const char * | UNCATEGORIZED_TAG = N_("uncategorized") |
| static const collect_action_t | ACTIONS [] |
| #define ADD_COLLECT_ENTRY | ( | value | ) |
| #define CLEAR_PARAMS | ( | r | ) |
| typedef struct _date_range_t _date_range_t |
| typedef struct _expand_ctx_t _expand_ctx_t |
| typedef struct collect_action_t collect_action_t |
| typedef struct collect_prerender_t collect_prerender_t |
| typedef struct collect_row_t collect_row_t |
| typedef enum dt_collect_tab_t dt_collect_tab_t |
| typedef enum dt_lib_collect_cols_t dt_lib_collect_cols_t |
| typedef struct dt_lib_collect_params_rule_t dt_lib_collect_params_rule_t |
| typedef struct dt_lib_collect_params_t dt_lib_collect_params_t |
| typedef struct dt_lib_collect_rule_t dt_lib_collect_rule_t |
| typedef struct dt_lib_collect_t dt_lib_collect_t |
| typedef struct name_key_tuple_t name_key_tuple_t |
| enum dt_collect_tab_t |
|
static |
Definition at line 1916 of file collect.c.
References _force_refresh(), d, dt_collection_memory_update(), dt_control_log(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_relocate(), dt_film_set_folder_status(), dt_free, dt_gui_main_window(), DT_SIGNAL_FILMROLLS_CHANGED, fc, IS_NULL_PTR, n, collect_row_t::path, and r.
|
static |
Definition at line 1901 of file collect.c.
References _force_refresh(), _rows_to_imgids(), d, DT_COLLECTION_PROP_FOLDERS, dt_control_remove_images(), dt_selection_clear(), dt_selection_get_global(), dt_selection_select_list(), and TRUE.
|
static |
Definition at line 2045 of file collect.c.
References _prerender_free(), _prerender_job(), _rows_to_imgids(), d, dt_control_add_job(), dt_control_get_global(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_set_params(), DT_JOB_QUEUE_USER_BG, DT_MIPMAP_2, p, and TRUE.
|
static |
Definition at line 1984 of file collect.c.
References _ask_text(), _force_refresh(), d, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free, DT_SIGNAL_TAG_CHANGED, dt_tag_get_tag_id_by_name(), dt_tag_rename(), IS_NULL_PTR, and r.
|
static |
Definition at line 1962 of file collect.c.
References _confirm(), _force_refresh(), d, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free, DT_SIGNAL_TAG_CHANGED, dt_tag_get_tag_id_by_name(), dt_tag_remove(), IS_NULL_PTR, n, r, and TRUE.
|
static |
Definition at line 2104 of file collect.c.
References _free_row(), _selected_rows(), d, and collect_action_t::run.
Referenced by _show_context_menu().
|
static |
Definition at line 1681 of file collect.c.
References dt_collection_get_global(), DT_COLLECTION_ORDER_FLAG, dt_collection_set_tag_id(), DT_COLLECTION_SORT_FILENAME, DT_COLLECTION_SORT_NONE, dt_tag_get_tag_id_by_name(), dt_tag_get_tag_order_by_id(), dt_tag_set_tag_order_by_id(), FALSE, and TRUE.
Referenced by row_activated().
|
static |
Definition at line 1873 of file collect.c.
References dt_gui_main_window(), dt_handle_dialog_enter(), dt_osx_disallow_fullscreen(), t, and TRUE.
Referenced by _act_tag_rename().
|
static |
Definition at line 1331 of file collect.c.
References _maybe_file_uncategorized(), _propagate_count_to_ancestors(), _split_tree_name(), name_key_tuple_t::count, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, dt_free, DT_LIB_COLLECT_COL_COUNT, DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_INDEX, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, DT_LIB_COLLECT_COL_UNREACHABLE, DT_LIB_COLLECT_COL_VISIBLE, dt_util_dstrcat(), i, IS_NULL_PTR, is_time_property(), model, name, name_key_tuple_t::name, names, status, name_key_tuple_t::status, store, string_array_length(), and TRUE.
Referenced by _populate_tree().
|
static |
Definition at line 2238 of file collect.c.
Referenced by _view_drag_data_received().
|
static |
Definition at line 1208 of file collect.c.
References DT_LIB_COLLECT_COL_PATH, model, p, and view.
Referenced by _populate_tree().
|
static |
Definition at line 1294 of file collect.c.
References name_key_tuple_t::collate_key, dt_collection_name_value_t::count, name_key_tuple_t::count, dt_collection_get_property_values(), dt_collection_name_value_free(), DT_COLLECTION_PROP_FOLDERS, dt_conf_get_bool(), dt_free, dt_collection_name_value_t::name, name, name_key_tuple_t::name, sort_folder_tag(), dt_collection_name_value_t::status, name_key_tuple_t::status, tag_collate_key(), and v.
Referenced by _populate_tree().
Definition at line 2700 of file collect.c.
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set_selected_text_align(), dt_bauhaus_widget_set_label(), DT_COLLECTION_PROP_TAG, and TRUE.
Referenced by _configure_tab().
Definition at line 2709 of file collect.c.
References _populate_collect_combo(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set_selected_text_align(), and dt_bauhaus_widget_set_label().
Referenced by _configure_tab().
Definition at line 2689 of file collect.c.
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set_selected_text_align(), dt_bauhaus_widget_set_label(), DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, and TRUE.
Referenced by _configure_tab().
|
static |
Definition at line 722 of file collect.c.
References dt_bauhaus_combobox_get_data().
Referenced by _create_filtered_model(), _mount_changed(), _populate_list(), _populate_tree(), _recursive_toggled(), _set_tooltip(), _update_op_combo(), collection_updated(), combo_changed(), entry_activated(), geotag_changed(), get_properties(), list_match_string(), metadata_changed(), row_activated(), set_properties(), tag_changed(), tree_expand(), tree_match_string(), and update_view().
|
static |
Definition at line 727 of file collect.c.
References dt_bauhaus_combobox_set_from_value(), and DT_COLLECTION_PROP_FILMROLL.
Referenced by _configure_tab(), get_properties(), and row_activated().
|
static |
Definition at line 604 of file collect.c.
References _rule_get_item(), _rule_get_recursive(), _rule_get_string(), _self(), d, dt_lib_module_t::data, DT_COLLECTION_CHANGE_NEW_QUERY, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_free, FALSE, item_is_folder(), and TRUE.
Referenced by _commit_quiet(), _op_changed(), _raw_entry_activated(), combo_changed(), gui_reset(), menuitem_clear(), menuitem_mode(), menuitem_mode_change(), and set_params().
|
static |
Definition at line 626 of file collect.c.
References _commit_colllection(), collection_updated(), dt_control_signal_block_by_func(), dt_control_signal_get_global(), dt_control_signal_unblock_by_func(), dt_view_manager_get_global(), and dt_view_manager_t::module_collect.
Referenced by _raw_toggled(), _recursive_toggled(), entry_activated(), and row_activated().
|
static |
Definition at line 2756 of file collect.c.
References _combo_as_collections(), _combo_as_full(), _combo_as_view_toggle(), _combo_set_active_collection(), _hide_all_widgets(), _rule_get_item(), _rule_get_recursive(), _rule_get_string(), _rule_set_item(), _rule_set_recursive(), _rule_set_string(), _rules_set_count(), _set_rule_button(), _set_tooltip(), _update_op_combo(), CPF_DIRECTION_DOWN, CPF_DIRECTION_UP, d, dt_bauhaus_combobox_set(), DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_QUERY, DT_COLLECTION_PROP_TAG, dt_conf_get_bool(), dt_conf_get_int(), dt_conf_get_string_const(), dt_free, dt_gui_freeze_begin, dt_gui_freeze_end, dtgtk_cairo_paint_sortby(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), FALSE, get_number_of_rules(), get_properties(), i, item_is_folder(), item_is_tag(), MAX_RULES, TAB_COLLECTIONS, TAB_FOLDERS, and TRUE.
Referenced by _lib_collect_gui_update(), _on_tab_switch(), and _raw_toggled().
|
static |
Definition at line 1859 of file collect.c.
References dt_gui_main_window(), dt_osx_disallow_fullscreen(), and res.
Referenced by _act_tags_remove(), and _drop_move_to_folder().
|
static |
Definition at line 1194 of file collect.c.
References _combo_get_active_collection(), _folders_root_collapse_path(), dt_lib_collect_rule_t::combo, DT_COLLECTION_PROP_FOLDERS, DT_LIB_COLLECT_COL_VISIBLE, and model.
Referenced by _populate_list(), and _populate_tree().
|
static |
Definition at line 1024 of file collect.c.
Referenced by _populate_tree(), and tree_range_visible().
|
static |
Definition at line 1662 of file collect.c.
References dt_free, dt_modifier_is(), DT_PRIMARY_MASK, and n.
Referenced by row_activated().
|
static |
Definition at line 2208 of file collect.c.
References _drop_attach_tag(), _drop_move_to_folder(), d, dt_free, DT_LIB_COLLECT_COL_PATH, FALSE, i, item_is_folder(), item_is_tag(), model, and x.
Referenced by _view_drag_data_received().
|
static |
Definition at line 2184 of file collect.c.
References _force_refresh(), _self(), d, dt_control_signal_block_by_func(), dt_control_signal_get_global(), dt_control_signal_unblock_by_func(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_image_synch_xmp(), DT_SIGNAL_TAG_CHANGED, dt_tag_attach_images(), dt_tag_get_tag_id_by_name(), FALSE, IS_NULL_PTR, tag_changed(), and TRUE.
Referenced by _do_drop().
|
static |
Definition at line 2147 of file collect.c.
References _confirm(), _force_refresh(), d, DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), dt_collection_memory_update(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_log(), dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_cleanup(), dt_film_init(), dt_film_new(), dt_image_move(), DT_SIGNAL_FILMROLLS_CHANGED, FALSE, folder, dt_film_t::id, IS_NULL_PTR, and n.
Referenced by _do_drop().
|
static |
Definition at line 2083 of file collect.c.
References item_is_folder(), and item_is_tag().
|
static |
Definition at line 2060 of file collect.c.
References item_is_folder().
|
static |
Definition at line 2070 of file collect.c.
References dt_view_manager_t::current_view, DT_VIEW_LIGHTTABLE, dt_view_manager_get_global(), and item_is_folder().
|
static |
Definition at line 2079 of file collect.c.
References item_is_tag(), and n.
|
static |
Definition at line 2075 of file collect.c.
References item_is_tag().
|
static |
Definition at line 2500 of file collect.c.
References FALSE, get_collect(), dt_lib_collect_rule_t::num, and update_view().
Referenced by gui_init().
|
static |
Definition at line 2541 of file collect.c.
References _force_refresh(), d, dt_conf_set_int(), and dt_gui_widgets_suppressed().
Referenced by gui_init().
|
static |
Definition at line 1162 of file collect.c.
References dt_film_get_id(), dt_free, DT_LIB_COLLECT_COL_PATH, and model.
Referenced by _create_filtered_model().
|
static |
Definition at line 1795 of file collect.c.
References _lib_collect_gui_update(), _self(), and d.
Referenced by _act_folders_relocate(), _act_folders_remove(), _act_tag_rename(), _act_tags_remove(), _drop_attach_tag(), _drop_move_to_folder(), _folder_levels_changed(), _no_uncategorized_toggled(), _sort_by_changed(), and _sort_dir_toggled().
|
static |
|
static |
|
static |
Definition at line 2921 of file collect.c.
References _configure_tab(), _on_tab_switch(), _rule_get_item(), d, dt_lib_module_t::data, DT_COLLECTION_PROP_QUERY, dt_conf_set_int(), dt_gui_freeze_begin, dt_gui_freeze_end, get_active_rule(), get_number_of_rules(), item_is_folder(), item_is_tag(), TAB_COLLECTIONS, TAB_FOLDERS, TAB_QUERIES, and update_view().
Referenced by _force_refresh(), _mount_changed(), collection_updated(), filmrolls_removed(), filmrolls_updated(), geotag_changed(), gui_init(), metadata_changed(), set_params(), and tag_changed().
|
static |
Definition at line 652 of file collect.c.
References _rule_get_item(), _rule_get_mode(), _rule_get_recursive(), _rule_get_string(), _rules_count(), d, DT_COLLECTION_PROP_FOLDERS, dt_free, i, n, p, and PARAM_STRING_SIZE.
Referenced by get_params(), and set_params().
|
static |
Definition at line 1263 of file collect.c.
References dt_free, DT_LIB_COLLECT_COL_COUNT, DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_INDEX, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, DT_LIB_COLLECT_COL_VISIBLE, FALSE, name, store, TRUE, and UNCATEGORIZED_TAG.
Referenced by _build_tree_store().
|
static |
Definition at line 3052 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), d, dt_lib_module_t::data, dt_film_set_folder_status(), get_active_rule(), and item_is_folder().
Referenced by gui_init().
|
static |
Definition at line 2548 of file collect.c.
References _force_refresh(), d, dt_conf_set_bool(), and dt_gui_widgets_suppressed().
Referenced by gui_init().
|
static |
Definition at line 2899 of file collect.c.
References _configure_tab(), _rule_get_item(), _rules_set_count(), d, dt_lib_module_t::data, DT_COLLECTION_PROP_QUERY, dt_conf_set_int(), get_active_rule(), dt_lib_collect_rule_t::reveal, TAB_COLLECTIONS, TAB_FOLDERS, TAB_QUERIES, TRUE, and update_view().
Referenced by _lib_collect_gui_update(), and gui_init().
|
static |
Definition at line 2398 of file collect.c.
References _commit_colllection(), dt_gui_widgets_suppressed(), get_collect(), dt_lib_collect_rule_t::num, and set_properties().
Referenced by combo_changed(), get_properties(), and gui_init().
Definition at line 734 of file collect.c.
References ADD_COLLECT_ENTRY, DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_CAMERA, DT_COLLECTION_PROP_CHANGE_TIMESTAMP, DT_COLLECTION_PROP_COLORLABEL, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_EXPORT_TIMESTAMP, DT_COLLECTION_PROP_EXPOSURE, DT_COLLECTION_PROP_FILENAME, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_GROUPING, DT_COLLECTION_PROP_HISTORY, DT_COLLECTION_PROP_IMPORT_TIMESTAMP, DT_COLLECTION_PROP_ISO, DT_COLLECTION_PROP_LENS, DT_COLLECTION_PROP_LOCAL_COPY, DT_COLLECTION_PROP_METADATA, DT_COLLECTION_PROP_MODULE, DT_COLLECTION_PROP_ORDER, DT_COLLECTION_PROP_PRINT_TIMESTAMP, DT_COLLECTION_PROP_RATING, DT_COLLECTION_PROP_TAG, DT_COLLECTION_PROP_TIME, dt_conf_get_int(), dt_free, DT_METADATA_FLAG_HIDDEN, dt_metadata_get_keyid_by_display_order(), dt_metadata_get_name(), dt_metadata_get_type(), DT_METADATA_NUMBER, DT_METADATA_TYPE_INTERNAL, and i.
Referenced by _combo_as_full(), and gui_init().
|
static |
Definition at line 1540 of file collect.c.
References _combo_get_active_collection(), _create_filtered_model(), dt_lib_collect_rule_t::combo, dt_collection_name_value_t::count, d, dt_collection_get_property_values(), dt_collection_name_value_free(), DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_CAMERA, DT_COLLECTION_PROP_FILENAME, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_ISO, DT_COLLECTION_PROP_LENS, DT_COLLECTION_PROP_METADATA, DT_COLLECTION_PROP_MODULE, DT_COLLECTION_PROP_ORDER, DT_COLLECTION_PROP_RATING, dt_free, dt_image_film_roll_name(), DT_LIB_COLLECT_COL_COUNT, DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_ID, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, DT_LIB_COLLECT_COL_TOOLTIP, DT_LIB_COLLECT_COL_UNREACHABLE, DT_LIB_COLLECT_COL_VISIBLE, DT_METADATA_NUMBER, FALSE, get_collect(), dt_collection_name_value_t::id, IS_NULL_PTR, item_is_numeric(), list_match_string(), list_select(), model, dt_collection_name_value_t::name, dt_lib_collect_rule_t::num, _range_t::path1, _range_t::path2, range_select(), dt_lib_collect_rule_t::searchstring, set_properties(), _range_t::start, dt_collection_name_value_t::status, _range_t::stop, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, v, and value.
Referenced by update_view().
|
static |
Definition at line 1411 of file collect.c.
References _build_tree_store(), _collect_expanded_cb(), _collect_sorted_tree_names(), _combo_get_active_collection(), _create_filtered_model(), _date_key(), _restore_expanded_cb(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_CHANGE_TIMESTAMP, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_EXPORT_TIMESTAMP, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_IMPORT_TIMESTAMP, DT_COLLECTION_PROP_PRINT_TIMESTAMP, DT_COLLECTION_PROP_TAG, DT_COLLECTION_PROP_TIME, dt_conf_get_bool(), dt_free, DT_LIB_COLLECT_COL_TOOLTIP, FALSE, free_tuple(), get_collect(), item_is_numeric(), MAX, MIN, model, dt_lib_collect_rule_t::num, _range_t::path1, _range_t::path2, range_select(), set_properties(), _range_t::start, _range_t::stop, dt_lib_collect_rule_t::text, tree_expand(), tree_range_visible(), tree_reveal_func(), tree_set_visibility(), TRUE, and dt_lib_collect_rule_t::typing.
Referenced by update_view().
Definition at line 2007 of file collect.c.
References collect_prerender_t::imgids, and p.
Referenced by _act_prerender().
|
static |
Definition at line 2017 of file collect.c.
References dt_control_job_get_params(), dt_control_job_get_state(), dt_control_job_set_progress(), DT_JOB_STATE_CANCELLED, dt_mimap_cache_evict(), DT_MIPMAP_0, DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, dt_mipmap_get_cache_filename(), DT_PATH_MAX, dt_util_test_image_file(), k, max, collect_prerender_t::max_size, n, and p.
Referenced by _act_prerender().
|
static |
Definition at line 1248 of file collect.c.
References DT_LIB_COLLECT_COL_COUNT, model, and store.
Referenced by _build_tree_store().
|
static |
Definition at line 2557 of file collect.c.
References _commit_colllection(), _rule_set_item(), _rule_set_mode(), _rule_set_string(), _rules_set_count(), d, DT_COLLECTION_PROP_QUERY, and DT_LIB_COLLECT_MODE_AND.
Referenced by gui_init().
|
static |
Definition at line 2878 of file collect.c.
References _commit_quiet(), _configure_tab(), _rule_get_item(), _rule_set_item(), _rule_set_string(), _rules_set_count(), d, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_QUERY, dt_gui_widgets_suppressed(), get_active_rule(), TAB_QUERIES, and update_view().
Referenced by gui_init().
|
static |
Definition at line 2510 of file collect.c.
References _combo_get_active_collection(), _commit_quiet(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_FOLDERS, dt_gui_widgets_suppressed(), get_active_rule(), and set_properties().
Referenced by gui_init().
|
static |
Definition at line 1227 of file collect.c.
References dt_free, DT_LIB_COLLECT_COL_PATH, FALSE, model, and p.
Referenced by _populate_tree().
|
static |
Definition at line 1836 of file collect.c.
References dt_collection_get_images_for_rule(), DT_COLLECTION_PROP_FOLDERS, i, item_is_folder(), out, and r.
Referenced by _act_folders_remove(), and _act_prerender().
|
static |
Definition at line 476 of file collect.c.
References dt_conf_get_int(), k, and n.
Referenced by _commit_colllection(), _configure_tab(), _lib_collect_gui_update(), _lib_collect_update_params(), _on_tab_switch(), _raw_toggled(), _rule_get_string(), combo_changed(), get_properties(), and menuitem_clear().
|
static |
Definition at line 490 of file collect.c.
References dt_conf_get_int(), k, and n.
Referenced by _lib_collect_update_params(), _set_rule_button(), and menuitem_clear().
|
static |
Definition at line 504 of file collect.c.
References dt_conf_get_bool(), k, and n.
Referenced by _commit_colllection(), _configure_tab(), _lib_collect_update_params(), and menuitem_clear().
|
static |
Definition at line 518 of file collect.c.
References _rule_get_item(), _rule_set_recursive(), DT_COLLECTION_PROP_FOLDERS, dt_conf_get_string(), dt_conf_set_string(), k, n, and TRUE.
Referenced by _commit_colllection(), _configure_tab(), _lib_collect_update_params(), get_properties(), and menuitem_clear().
|
static |
Definition at line 483 of file collect.c.
References dt_conf_set_int(), k, and n.
Referenced by _configure_tab(), _raw_entry_activated(), _raw_toggled(), gui_reset(), menuitem_clear(), menuitem_mode(), set_params(), and set_properties().
|
static |
Definition at line 497 of file collect.c.
References dt_conf_set_int(), k, and n.
Referenced by _raw_entry_activated(), gui_reset(), menuitem_clear(), menuitem_mode(), menuitem_mode_change(), and set_params().
|
static |
Definition at line 511 of file collect.c.
References dt_conf_set_bool(), k, and n.
Referenced by _configure_tab(), _rule_get_string(), gui_reset(), menuitem_clear(), menuitem_mode(), and set_properties().
|
static |
Definition at line 535 of file collect.c.
References dt_conf_set_string(), k, and n.
Referenced by _configure_tab(), _raw_entry_activated(), _raw_toggled(), gui_reset(), menuitem_clear(), menuitem_mode(), set_params(), and set_properties().
|
static |
Definition at line 466 of file collect.c.
References dt_conf_get_int(), and MAX_RULES.
Referenced by _lib_collect_update_params(), get_number_of_rules(), menuitem_clear(), menuitem_mode(), and popup_button_callback().
|
static |
Definition at line 471 of file collect.c.
References dt_conf_set_int(), MAX_RULES, and n.
Referenced by _configure_tab(), _on_tab_switch(), _raw_entry_activated(), _raw_toggled(), gui_reset(), menuitem_clear(), menuitem_mode(), and set_params().
|
static |
Definition at line 1815 of file collect.c.
References d, DT_LIB_COLLECT_COL_ID, DT_LIB_COLLECT_COL_PATH, model, out, and r.
Referenced by _action_activate().
|
static |
Definition at line 1790 of file collect.c.
References dt_view_manager_get_global(), dt_view_manager_t::module_collect, and dt_view_manager_t::proxy.
Referenced by _commit_colllection(), _drop_attach_tag(), and _force_refresh().
|
static |
Definition at line 2717 of file collect.c.
References _rule_get_mode(), dt_lib_collect_rule_t::button, DT_LIB_COLLECT_MODE_AND, DT_LIB_COLLECT_MODE_OR, and dt_lib_collect_rule_t::num.
Referenced by _configure_tab().
|
static |
Definition at line 2349 of file collect.c.
References _combo_get_active_collection(), dt_lib_collect_rule_t::combo, DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_EXPOSURE, DT_COLLECTION_PROP_FILENAME, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_ISO, DT_COLLECTION_PROP_RATING, DT_COLLECTION_PROP_TAG, dt_free, is_time_property(), and dt_lib_collect_rule_t::text.
Referenced by _configure_tab(), and combo_changed().
|
static |
Definition at line 2112 of file collect.c.
References _action_activate(), ACTIONS, d, collect_action_t::enabled, i, collect_action_t::label, collect_action_t::multi, and n.
Referenced by _view_button_pressed(), and _view_popup_menu().
|
static |
Definition at line 2533 of file collect.c.
References _force_refresh(), d, dt_bauhaus_combobox_get(), dt_conf_set_string(), and dt_gui_widgets_suppressed().
Referenced by gui_init().
|
static |
Definition at line 2522 of file collect.c.
References _force_refresh(), CPF_DIRECTION_DOWN, CPF_DIRECTION_UP, d, dt_conf_set_bool(), dt_gui_widgets_suppressed(), dtgtk_cairo_paint_sortby(), DTGTK_TOGGLEBUTTON, and dtgtk_togglebutton_set_paint().
Referenced by gui_init().
|
static |
Definition at line 334 of file collect.c.
References IS_NULL_PTR, and value.
Referenced by get_properties().
|
static |
Definition at line 1238 of file collect.c.
References DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, is_time_property(), name, and split_path().
Referenced by _build_tree_store().
|
static |
Definition at line 953 of file collect.c.
References DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, and is_time_property().
Referenced by tree_expand(), and tree_match_string().
|
static |
Definition at line 2393 of file collect.c.
References _combo_get_active_collection(), dt_lib_collect_rule_t::combo, item_is_numeric(), and dt_lib_collect_rule_t::op_combo.
Referenced by _configure_tab(), and combo_changed().
|
static |
Definition at line 2290 of file collect.c.
References _show_context_menu(), d, FALSE, item_is_folder(), item_is_tag(), TRUE, and view.
Referenced by gui_init().
|
static |
Definition at line 2273 of file collect.c.
References _clear_suppress_row_activated(), _do_drop(), d, DND_TARGET_IMGID, FALSE, IS_NULL_PTR, TRUE, and x.
Referenced by gui_init().
|
static |
Definition at line 2268 of file collect.c.
Referenced by gui_init().
|
static |
Definition at line 2248 of file collect.c.
References d, item_is_folder(), item_is_tag(), TRUE, and x.
Referenced by gui_init().
|
static |
Definition at line 2319 of file collect.c.
References _show_context_menu(), d, FALSE, item_is_folder(), item_is_tag(), and TRUE.
Referenced by gui_init().
|
static |
Definition at line 2326 of file collect.c.
References d, row_activated(), and view.
Referenced by gui_init().
|
static |
Definition at line 2341 of file collect.c.
References d, DT_COLLECTION_PROP_FOLDERS, TRUE, and view.
Referenced by gui_init().
|
static |
Definition at line 2952 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), d, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_UNDEF, FALSE, get_active_rule(), i, TRUE, dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by _commit_quiet(), geotag_changed(), gui_cleanup(), gui_init(), and tag_changed().
|
static |
Definition at line 2408 of file collect.c.
References _combo_get_active_collection(), _commit_colllection(), _op_changed(), _rule_get_item(), _set_tooltip(), _update_op_combo(), dt_lib_collect_rule_t::combo, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, dt_gui_widgets_suppressed(), entry_changed(), FALSE, get_collect(), item_is_folder(), item_is_tag(), dt_lib_collect_rule_t::num, dt_lib_collect_rule_t::op_combo, dt_lib_collect_rule_t::reveal, set_properties(), dt_lib_collect_rule_t::text, and dt_lib_collect_rule_t::typing.
Referenced by gui_init().
| uint32_t container | ( | dt_lib_module_t * | self | ) |
Definition at line 387 of file collect.c.
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
|
static |
Definition at line 2469 of file collect.c.
References _combo_get_active_collection(), _commit_quiet(), dt_lib_collect_rule_t::combo, dt_control_queue_redraw_center(), dt_free, DT_LIB_COLLECT_COL_PATH, entry_changed(), FALSE, get_collect(), item_is_tree(), model, dt_lib_collect_rule_t::text, dt_lib_collect_rule_t::typing, and update_view().
Referenced by gui_init().
|
static |
Definition at line 2460 of file collect.c.
References TRUE, dt_lib_collect_rule_t::typing, and update_view().
Referenced by combo_changed(), entry_activated(), get_properties(), gui_init(), and row_activated().
|
static |
Definition at line 2981 of file collect.c.
References _lib_collect_gui_update(), d, FALSE, get_active_rule(), dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 2974 of file collect.c.
References _lib_collect_gui_update(), d, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 823 of file collect.c.
References name_key_tuple_t::collate_key, dt_free, and name_key_tuple_t::name.
Referenced by _populate_tree().
|
static |
Definition at line 3018 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), collection_updated(), d, DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_GEOTAGGING, dt_collection_update_query(), dt_control_signal_block_by_func(), dt_control_signal_get_global(), dt_control_signal_unblock_by_func(), dt_view_manager_get_global(), FALSE, get_active_rule(), dt_view_manager_t::module_collect, dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 640 of file collect.c.
References d.
Referenced by _lib_collect_gui_update(), _mount_changed(), _on_tab_switch(), _raw_toggled(), _recursive_toggled(), collection_updated(), filmrolls_removed(), geotag_changed(), metadata_changed(), row_activated(), and tag_changed().
|
static |
Definition at line 635 of file collect.c.
References r.
Referenced by _entry_focus_in(), _op_changed(), _populate_list(), _populate_tree(), combo_changed(), entry_activated(), list_select(), menuitem_clear(), menuitem_mode(), menuitem_mode_change(), set_properties(), and tree_expand().
|
static |
Definition at line 645 of file collect.c.
References _rules_count(), and d.
Referenced by _configure_tab(), _lib_collect_gui_update(), and row_activated().
| void * get_params | ( | dt_lib_module_t * | self, |
| int * | size | ||
| ) |
Definition at line 677 of file collect.c.
References _lib_collect_update_params(), dt_lib_module_t::data, p, and size.
|
static |
Definition at line 570 of file collect.c.
References _combo_get_active_collection(), _combo_set_active_collection(), _op_changed(), _rule_get_item(), _rule_get_string(), _split_operator(), dt_lib_collect_rule_t::combo, dt_free, entry_changed(), FALSE, item_is_numeric(), dt_lib_collect_rule_t::num, dt_lib_collect_rule_t::op_combo, dt_lib_collect_rule_t::text, and dt_lib_collect_rule_t::typing.
Referenced by _configure_tab().
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
Definition at line 3279 of file collect.c.
References collection_updated(), d, dt_lib_module_t::data, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, dt_view_manager_get_global(), filmrolls_removed(), filmrolls_updated(), geotag_changed(), IS_NULL_PTR, metadata_changed(), dt_view_manager_t::module_collect, preferences_changed(), dt_view_manager_t::proxy, and tag_changed().
| void gui_init | ( | dt_lib_module_t * | self | ) |
Definition at line 3074 of file collect.c.
References _entry_focus_in(), _folder_levels_changed(), _lib_collect_gui_update(), _mount_changed(), _no_uncategorized_toggled(), _on_tab_switch(), _op_changed(), _populate_collect_combo(), _raw_entry_activated(), _raw_toggled(), _recursive_toggled(), _sort_by_changed(), _sort_dir_toggled(), _view_button_pressed(), _view_drag_data_received(), _view_drag_leave(), _view_drag_motion(), _view_popup_menu(), _view_row_activated(), _view_row_expanded(), COLLECT_N_OPS, collection_updated(), combo_changed(), CPF_DIRECTION_UP, d, dt_lib_module_t::data, dt_accels_disconnect_on_text_input(), dt_bauhaus_combobox_add(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set_selected_text_align(), dt_bauhaus_get_global(), dt_bauhaus_widget_set_label(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_add_class(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_UNREACHABLE, DT_LIB_COLLECT_COL_VISIBLE, DT_LIB_COLLECT_NUM_COLS, DT_SIGNAL_COLLECTION_CHANGED, DT_SIGNAL_FILMROLLS_CHANGED, DT_SIGNAL_FILMROLLS_REMOVED, DT_SIGNAL_GEOTAG_CHANGED, DT_SIGNAL_METADATA_CHANGED, DT_SIGNAL_PREFERENCES_CHANGE, DT_SIGNAL_TAG_CHANGED, dt_ui_notebook_new(), dt_ui_notebook_page(), DT_UI_RESIZE_STATIC, dt_ui_scroll_wrap(), dt_view_manager_get_global(), dtgtk_cairo_paint_sortby(), dtgtk_togglebutton_new(), entry_activated(), entry_changed(), FALSE, filmrolls_removed(), filmrolls_updated(), geotag_changed(), i, MAX_RULES, metadata_changed(), dt_view_manager_t::module_collect, n_targets_internal, OP_LABELS, popup_button_callback(), preferences_changed(), dt_view_manager_t::proxy, tag_changed(), target_list_internal, tree_count_show(), TRUE, dt_view_manager_t::update, view, and dt_lib_module_t::widget.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
Definition at line 704 of file collect.c.
References _commit_colllection(), _rule_set_item(), _rule_set_mode(), _rule_set_recursive(), _rule_set_string(), _rules_set_count(), COLLECTION_QUERY_FULL, d, dt_lib_module_t::data, dt_collection_get_global(), DT_COLLECTION_PROP_FILMROLL, dt_collection_set_query_flags(), DT_LIB_COLLECT_MODE_AND, and FALSE.
| void init_presets | ( | dt_lib_module_t * | self | ) |
Definition at line 409 of file collect.c.
References CLEAR_PARAMS, DT_COLLECTION_PROP_IMPORT_TIMESTAMP, DT_COLLECTION_PROP_TIME, dt_free, dt_lib_presets_add(), PARAM_STRING_SIZE, dt_lib_module_t::plugin_name, and TRUE.
|
static |
Definition at line 296 of file collect.c.
References DT_COLLECTION_PROP_CHANGE_TIMESTAMP, DT_COLLECTION_PROP_EXPORT_TIMESTAMP, DT_COLLECTION_PROP_IMPORT_TIMESTAMP, DT_COLLECTION_PROP_PRINT_TIMESTAMP, and DT_COLLECTION_PROP_TIME.
Referenced by _build_tree_store(), _set_tooltip(), _split_tree_name(), _strip_recursion_marker(), item_is_numeric(), item_is_tree(), and row_activated().
|
static |
Definition at line 303 of file collect.c.
References DT_COLLECTION_PROP_FILMROLL, and DT_COLLECTION_PROP_FOLDERS.
Referenced by _commit_colllection(), _configure_tab(), _do_drop(), _en_any(), _en_folders(), _en_folders_lighttable(), _lib_collect_gui_update(), _mount_changed(), _rows_to_imgids(), _view_button_pressed(), _view_drag_motion(), _view_popup_menu(), and combo_changed().
|
static |
Definition at line 313 of file collect.c.
References DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_EXPOSURE, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_ISO, DT_COLLECTION_PROP_RATING, and is_time_property().
Referenced by _populate_list(), _populate_tree(), _update_op_combo(), get_properties(), row_activated(), and set_properties().
|
static |
Definition at line 308 of file collect.c.
References DT_COLLECTION_PROP_TAG.
Referenced by _configure_tab(), _do_drop(), _en_any(), _en_tag_single(), _en_tags(), _lib_collect_gui_update(), _view_button_pressed(), _view_drag_motion(), _view_popup_menu(), and combo_changed().
|
static |
Definition at line 321 of file collect.c.
References DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, and is_time_property().
Referenced by entry_activated(), and update_view().
| void * legacy_params | ( | struct dt_lib_module_t * | self, |
| const void *const | old_params, | ||
| const size_t | old_params_size, | ||
| const int | old_version, | ||
| int * | new_version, | ||
| size_t * | new_size | ||
| ) |
|
static |
Definition at line 877 of file collect.c.
References _combo_get_active_collection(), dt_lib_collect_rule_t::combo, DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_FILENAME, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_ISO, DT_COLLECTION_PROP_RATING, dt_collection_split_operator_number(), dt_free, dt_free_gpointer(), DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_VISIBLE, dt_util_str_to_glist(), FALSE, model, name, dt_lib_collect_rule_t::searchstring, and TRUE.
Referenced by _populate_list().
|
static |
Definition at line 1056 of file collect.c.
References d, dt_free, DT_LIB_COLLECT_COL_PATH, FALSE, get_collect(), model, and dt_lib_collect_rule_t::text.
Referenced by _populate_list().
|
static |
Definition at line 2596 of file collect.c.
References _commit_colllection(), _rule_get_item(), _rule_get_mode(), _rule_get_recursive(), _rule_get_string(), _rule_set_item(), _rule_set_mode(), _rule_set_recursive(), _rule_set_string(), _rules_count(), _rules_set_count(), DT_COLLECTION_PROP_FILMROLL, dt_free, DT_LIB_COLLECT_MODE_AND, FALSE, get_collect(), i, MAX_RULES, dt_lib_collect_rule_t::num, and dt_lib_collect_rule_t::typing.
Referenced by popup_button_callback().
|
static |
Definition at line 2568 of file collect.c.
References _commit_colllection(), _rule_set_item(), _rule_set_mode(), _rule_set_recursive(), _rule_set_string(), _rules_count(), _rules_set_count(), DT_COLLECTION_PROP_FILMROLL, FALSE, get_collect(), and MAX_RULES.
Referenced by popup_button_callback().
|
static |
Definition at line 2586 of file collect.c.
References _commit_colllection(), _rule_set_mode(), get_collect(), and dt_lib_collect_rule_t::num.
Referenced by popup_button_callback().
|
static |
Definition at line 3036 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), d, DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_METADATA, dt_collection_update_query(), DT_METADATA_NUMBER, DT_METADATA_SIGNAL_HIDDEN, DT_METADATA_SIGNAL_SHOWN, get_active_rule(), type, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
| const char * name | ( | struct dt_lib_module_t * | self | ) |
|
static |
Definition at line 2631 of file collect.c.
References _rules_count(), DT_LIB_COLLECT_MODE_AND, DT_LIB_COLLECT_MODE_AND_NOT, DT_LIB_COLLECT_MODE_OR, FALSE, menuitem_clear(), menuitem_mode(), menuitem_mode_change(), dt_lib_collect_rule_t::num, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 2989 of file collect.c.
References DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_UNDEF, and dt_collection_update_query().
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 1076 of file collect.c.
References dt_free, DT_LIB_COLLECT_COL_PATH, FALSE, model, _range_t::path1, _range_t::path2, _range_t::start, _range_t::stop, and TRUE.
Referenced by _populate_list(), and _populate_tree().
|
static |
Definition at line 1702 of file collect.c.
References _adopt_tag_order(), _combo_get_active_collection(), _combo_set_active_collection(), _commit_quiet(), _decorate_hierarchy(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_COLORLABEL, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_GROUPING, DT_COLLECTION_PROP_HISTORY, DT_COLLECTION_PROP_LOCAL_COPY, DT_COLLECTION_PROP_TAG, dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free, dt_gui_refocus_center(), DT_LIB_COLLECT_COL_PATH, DT_SIGNAL_IMAGES_ORDER_CHANGE, entry_changed(), FALSE, get_active_rule(), get_number_of_rules(), is_time_property(), item_is_numeric(), model, set_properties(), dt_lib_collect_rule_t::text, dt_lib_collect_rule_t::typing, update_view(), and view.
Referenced by _view_row_activated().
| int set_params | ( | dt_lib_module_t * | self, |
| const void * | params, | ||
| int | size | ||
| ) |
Definition at line 686 of file collect.c.
References _commit_colllection(), _lib_collect_gui_update(), _lib_collect_update_params(), _rule_set_item(), _rule_set_mode(), _rule_set_string(), _rules_set_count(), dt_lib_module_t::data, i, and p.
|
static |
Definition at line 544 of file collect.c.
References _combo_get_active_collection(), _rule_set_item(), _rule_set_recursive(), _rule_set_string(), COLLECT_N_OPS, dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_FOLDERS, dt_free, get_collect(), item_is_numeric(), dt_lib_collect_rule_t::num, dt_lib_collect_rule_t::op_combo, OP_TOKENS, and dt_lib_collect_rule_t::text.
Referenced by _op_changed(), _populate_list(), _populate_tree(), _recursive_toggled(), combo_changed(), and row_activated().
|
static |
Definition at line 831 of file collect.c.
References name_key_tuple_t::collate_key.
Referenced by _collect_sorted_tree_names().
|
static |
Definition at line 793 of file collect.c.
References dt_free, i, IS_NULL_PTR, and size.
Referenced by _split_tree_name().
|
static |
Definition at line 785 of file collect.c.
Referenced by _build_tree_store().
|
static |
Definition at line 2994 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), collection_updated(), d, DT_COLLECTION_CHANGE_RELOAD, dt_collection_get_global(), DT_COLLECTION_PROP_TAG, dt_collection_update_query(), dt_control_signal_block_by_func(), dt_control_signal_get_global(), dt_control_signal_unblock_by_func(), dt_view_manager_get_global(), FALSE, get_active_rule(), i, dt_view_manager_t::module_collect, TRUE, dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by _drop_attach_tag(), gui_cleanup(), and gui_init().
|
static |
Definition at line 841 of file collect.c.
Referenced by _collect_sorted_tree_names().
|
static |
Definition at line 859 of file collect.c.
References dt_free, DT_LIB_COLLECT_COL_COUNT, DT_LIB_COLLECT_COL_TEXT, model, and name.
Referenced by gui_init().
|
static |
Definition at line 1103 of file collect.c.
References _combo_get_active_collection(), _strip_recursion_marker(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_FOLDERS, dt_free, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, FALSE, get_collect(), model, dt_lib_collect_rule_t::reveal, dt_lib_collect_rule_t::text, TRUE, and dt_lib_collect_rule_t::typing.
Referenced by _populate_tree().
|
static |
Definition at line 977 of file collect.c.
References _combo_get_active_collection(), _strip_recursion_marker(), dt_lib_collect_rule_t::combo, dt_free, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_VISIBLE, FALSE, model, dt_lib_collect_rule_t::text, TRUE, and dt_lib_collect_rule_t::typing.
Referenced by tree_set_visibility().
|
static |
Definition at line 1043 of file collect.c.
References _date_key(), dt_free, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_VISIBLE, FALSE, model, and r.
Referenced by _populate_tree().
|
static |
Definition at line 1000 of file collect.c.
References DT_LIB_COLLECT_COL_VISIBLE, FALSE, model, state, and TRUE.
Referenced by _populate_tree(), and tree_set_visibility().
|
static |
Definition at line 1014 of file collect.c.
References model, tree_match_string(), and tree_reveal_func().
Referenced by _populate_tree().
|
static |
Definition at line 1645 of file collect.c.
References _combo_get_active_collection(), _populate_list(), _populate_tree(), dt_lib_collect_rule_t::combo, FALSE, item_is_tree(), and dt_lib_collect_rule_t::reveal.
Referenced by _entry_focus_in(), _lib_collect_gui_update(), _on_tab_switch(), _raw_toggled(), entry_activated(), entry_changed(), and row_activated().
| const char ** views | ( | dt_lib_module_t * | self | ) |
|
static |
Definition at line 2096 of file collect.c.
Referenced by _show_context_menu().
|
static |
Definition at line 330 of file collect.c.
Referenced by gui_init().
|
static |
Definition at line 329 of file collect.c.
Referenced by set_properties().
|
static |
Definition at line 1205 of file collect.c.
Referenced by _maybe_file_uncategorized().