![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "libs/collect.h"#include "bauhaus/bauhaus.h"#include "common/collection.h"#include "common/darktable.h"#include "common/datetime.h"#include "common/debug.h"#include "common/film.h"#include "common/image.h"#include "common/map_locations.h"#include "common/metadata.h"#include "common/mipmap_cache.h"#include "common/selection.h"#include "common/tags.h"#include "common/utility.h"#include "control/conf.h"#include "control/control.h"#include "control/jobs.h"#include "control/jobs/control_jobs.h"#include "dtgtk/button.h"#include "dtgtk/paint.h"#include "dtgtk/togglebutton.h"#include "gui/drag_and_drop.h"#include "gui/gtk.h"#include "gui/preferences_dialogs.h"#include "libs/lib.h"#include "libs/lib_api.h"#include "views/view.h"#include <gio/gunixmounts.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 | 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 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 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_t * | get_collect (dt_lib_collect_rule_t *r) |
| 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 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 dt_lib_module_t * | _self () |
| 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_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 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 | tag_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 (GUnixMountMonitor *monitor, 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 1832 of file collect.c.
References _force_refresh(), d, darktable, dt_collection_memory_update(), dt_control_log(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_relocate(), dt_film_set_folder_status(), dt_free, DT_SIGNAL_FILMROLLS_CHANGED, dt_ui_main_window(), fc, darktable_t::gui, IS_NULL_PTR, n, collect_row_t::path, r, darktable_t::signals, and dt_gui_gtk_t::ui.
|
static |
Definition at line 1819 of file collect.c.
References _force_refresh(), _rows_to_imgids(), d, darktable, DT_COLLECTION_PROP_FOLDERS, dt_control_remove_images(), dt_selection_clear(), dt_selection_select_list(), FALSE, and darktable_t::selection.
|
static |
Definition at line 1961 of file collect.c.
References _prerender_free(), _prerender_job(), _rows_to_imgids(), darktable_t::control, d, darktable, dt_control_add_job(), 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 1900 of file collect.c.
References _ask_text(), _force_refresh(), d, darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free, DT_SIGNAL_TAG_CHANGED, dt_tag_get_tag_id_by_name(), dt_tag_rename(), IS_NULL_PTR, r, and darktable_t::signals.
|
static |
Definition at line 1878 of file collect.c.
References _confirm(), _force_refresh(), d, darktable, 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, darktable_t::signals, and TRUE.
|
static |
Definition at line 2009 of file collect.c.
References _free_row(), _selected_rows(), d, and collect_action_t::run.
Referenced by _show_context_menu().
|
static |
Definition at line 1588 of file collect.c.
References darktable_t::collection, darktable, 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 1791 of file collect.c.
References darktable, dt_handle_dialog_enter(), dt_osx_disallow_fullscreen(), dt_ui_main_window(), darktable_t::gui, t, TRUE, and dt_gui_gtk_t::ui.
Referenced by _act_tag_rename().
|
static |
Definition at line 1238 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, name_key_tuple_t::status, store(), string_array_length(), and TRUE.
Referenced by _populate_tree().
|
static |
Definition at line 1115 of file collect.c.
References DT_LIB_COLLECT_COL_PATH, model, p, and view().
Referenced by _populate_tree().
|
static |
Definition at line 1201 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 2563 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 2572 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 2552 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 643 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(), entry_changed(), geotag_changed(), get_properties(), list_match_string(), metadata_changed(), set_properties(), tag_changed(), tree_expand(), and update_view().
|
static |
Definition at line 648 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 553 of file collect.c.
References darktable_t::collection, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, and dt_collection_update_query().
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 559 of file collect.c.
References _commit_colllection(), collection_updated(), darktable, dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), dt_view_manager_t::module_collect, dt_view_manager_t::proxy, darktable_t::signals, and darktable_t::view_manager.
Referenced by _raw_toggled(), _recursive_toggled(), entry_activated(), and row_activated().
|
static |
Definition at line 2619 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_string(), _rule_set_item(), _rule_set_string(), _rules_set_count(), _set_rule_button(), _set_tooltip(), _update_op_combo(), CPF_DIRECTION_DOWN, CPF_DIRECTION_UP, d, darktable, 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, dtgtk_cairo_paint_sortby(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), FALSE, get_number_of_rules(), get_properties(), darktable_t::gui, i, item_is_folder(), item_is_tag(), MAX_RULES, dt_gui_gtk_t::reset, t, TAB_COLLECTIONS, TAB_FOLDERS, and TRUE.
Referenced by _lib_collect_gui_update(), _on_tab_switch(), and _raw_toggled().
|
static |
Definition at line 1777 of file collect.c.
References darktable, dt_osx_disallow_fullscreen(), dt_ui_main_window(), darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by _act_tags_remove(), and _drop_move_to_folder().
|
static |
Definition at line 1101 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 913 of file collect.c.
Referenced by _populate_tree(), and tree_range_visible().
|
static |
Definition at line 1569 of file collect.c.
References dt_free, dt_modifier_is(), and n.
Referenced by row_activated().
|
static |
Definition at line 2102 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 2089 of file collect.c.
References _force_refresh(), d, darktable, 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, darktable_t::signals, and TRUE.
Referenced by _do_drop().
|
static |
Definition at line 2052 of file collect.c.
References _confirm(), _force_refresh(), darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_RELOAD, dt_collection_memory_update(), DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_log(), dt_control_queue_redraw_center(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_film_cleanup(), dt_film_init(), dt_film_new(), dt_image_move(), DT_SIGNAL_FILMROLLS_CHANGED, FALSE, dt_film_t::id, IS_NULL_PTR, n, and darktable_t::signals.
Referenced by _do_drop().
|
static |
Definition at line 1988 of file collect.c.
References item_is_folder(), and item_is_tag().
|
static |
Definition at line 1976 of file collect.c.
References item_is_folder().
|
static |
Definition at line 1984 of file collect.c.
References item_is_tag(), and n.
|
static |
Definition at line 1980 of file collect.c.
References item_is_tag().
|
static |
Definition at line 2359 of file collect.c.
References FALSE, get_active_rule(), get_collect(), and update_view().
Referenced by gui_init().
|
static |
Definition at line 2408 of file collect.c.
References _force_refresh(), d, darktable, dt_conf_set_int(), darktable_t::gui, and dt_gui_gtk_t::reset.
Referenced by gui_init().
|
static |
Definition at line 1069 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 1707 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 2769 of file collect.c.
References _configure_tab(), _on_tab_switch(), _rule_get_item(), d, darktable, dt_lib_module_t::data, DT_COLLECTION_PROP_QUERY, dt_conf_set_int(), get_active_rule(), get_number_of_rules(), darktable_t::gui, item_is_folder(), item_is_tag(), dt_gui_gtk_t::reset, 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 585 of file collect.c.
References _rule_get_item(), _rule_get_mode(), _rule_get_string(), _rules_count(), d, dt_free, i, n, p, and PARAM_STRING_SIZE.
Referenced by get_params(), and set_params().
|
static |
Definition at line 1170 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 2902 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 2415 of file collect.c.
References _force_refresh(), d, darktable, dt_conf_set_bool(), darktable_t::gui, and dt_gui_gtk_t::reset.
Referenced by gui_init().
|
static |
Definition at line 2747 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 2249 of file collect.c.
References _commit_colllection(), darktable, get_collect(), darktable_t::gui, dt_lib_collect_rule_t::num, dt_gui_gtk_t::reset, and set_properties().
Referenced by combo_changed(), get_properties(), and gui_init().
Definition at line 655 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 1447 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 1318 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 1923 of file collect.c.
References collect_prerender_t::imgids, and p.
Referenced by _act_prerender().
|
static |
Definition at line 1933 of file collect.c.
References darktable, 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_util_test_image_file(), k, max, collect_prerender_t::max_size, darktable_t::mipmap_cache, n, p, and PATH_MAX.
Referenced by _act_prerender().
|
static |
Definition at line 1155 of file collect.c.
References DT_LIB_COLLECT_COL_COUNT, model, and store().
Referenced by _build_tree_store().
|
static |
Definition at line 2424 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 2726 of file collect.c.
References _commit_quiet(), _configure_tab(), _rule_get_item(), _rule_set_item(), _rule_set_string(), _rules_set_count(), d, darktable, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_QUERY, get_active_rule(), darktable_t::gui, dt_gui_gtk_t::reset, TAB_QUERIES, and update_view().
Referenced by gui_init().
|
static |
Definition at line 2367 of file collect.c.
References _combo_get_active_collection(), _commit_quiet(), dt_lib_collect_rule_t::combo, d, darktable, DT_COLLECTION_PROP_FOLDERS, dt_free, entry_changed(), get_active_rule(), darktable_t::gui, n, dt_gui_gtk_t::reset, set_properties(), t, and dt_lib_collect_rule_t::text.
Referenced by gui_init().
|
static |
Definition at line 1134 of file collect.c.
References dt_free, DT_LIB_COLLECT_COL_PATH, FALSE, model, and p.
Referenced by _populate_tree().
|
static |
Definition at line 1748 of file collect.c.
References dt_collection_get_images_for_rule(), DT_COLLECTION_PROP_FOLDERS, dt_free, i, item_is_folder(), out, and r.
Referenced by _act_folders_remove(), and _act_prerender().
|
static |
Definition at line 457 of file collect.c.
References dt_conf_get_int(), k, and n.
Referenced by _configure_tab(), _lib_collect_gui_update(), _lib_collect_update_params(), _on_tab_switch(), _raw_toggled(), combo_changed(), get_properties(), and menuitem_clear().
|
static |
Definition at line 471 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 485 of file collect.c.
References dt_conf_get_string(), k, and n.
Referenced by _configure_tab(), _lib_collect_update_params(), get_properties(), and menuitem_clear().
|
static |
Definition at line 464 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 478 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 492 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 447 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 452 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 1727 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 1702 of file collect.c.
References darktable, dt_view_manager_t::module_collect, dt_view_manager_t::proxy, and darktable_t::view_manager.
Referenced by _force_refresh().
|
static |
Definition at line 2580 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 2200 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 2017 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 2400 of file collect.c.
References _force_refresh(), d, darktable, dt_bauhaus_combobox_get(), dt_conf_set_string(), darktable_t::gui, and dt_gui_gtk_t::reset.
Referenced by gui_init().
|
static |
Definition at line 2389 of file collect.c.
References _force_refresh(), CPF_DIRECTION_DOWN, CPF_DIRECTION_UP, d, darktable, dt_conf_set_bool(), dtgtk_cairo_paint_sortby(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), darktable_t::gui, and dt_gui_gtk_t::reset.
Referenced by gui_init().
|
static |
Definition at line 315 of file collect.c.
References IS_NULL_PTR, and value.
Referenced by get_properties().
|
static |
Definition at line 1145 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 2244 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 2143 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 2132 of file collect.c.
References _do_drop(), d, DND_TARGET_IMGID, FALSE, IS_NULL_PTR, and x.
Referenced by gui_init().
|
static |
Definition at line 2172 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 2179 of file collect.c.
References d, row_activated(), and view().
Referenced by gui_init().
|
static |
Definition at line 2192 of file collect.c.
References d, DT_COLLECTION_PROP_FOLDERS, TRUE, and view().
Referenced by gui_init().
|
static |
Definition at line 2800 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 2259 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, darktable, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, entry_changed(), FALSE, get_collect(), darktable_t::gui, item_is_folder(), item_is_tag(), dt_lib_collect_rule_t::num, dt_lib_collect_rule_t::op_combo, dt_gui_gtk_t::reset, 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 368 of file collect.c.
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
|
static |
Definition at line 2328 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 2311 of file collect.c.
References _combo_get_active_collection(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_FOLDERS, get_collect(), t, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, and update_view().
Referenced by _recursive_toggled(), combo_changed(), entry_activated(), get_properties(), gui_init(), and row_activated().
|
static |
Definition at line 2829 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 2822 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 744 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 2866 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), darktable_t::collection, collection_updated(), d, darktable, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_GEOTAGGING, dt_collection_update_query(), dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), FALSE, get_active_rule(), dt_view_manager_t::module_collect, dt_view_manager_t::proxy, darktable_t::signals, dt_lib_collect_rule_t::typing, darktable_t::view_manager, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 573 of file collect.c.
References d.
Referenced by _entry_focus_in(), _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 568 of file collect.c.
References r.
Referenced by _entry_focus_in(), _op_changed(), _populate_list(), _populate_tree(), combo_changed(), entry_activated(), entry_changed(), list_select(), menuitem_clear(), menuitem_mode(), menuitem_mode_change(), and tree_expand().
|
static |
Definition at line 578 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 601 of file collect.c.
References _lib_collect_update_params(), dt_lib_module_t::data, p, and size.
|
static |
Definition at line 519 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 3121 of file collect.c.
References collection_updated(), d, darktable, dt_lib_module_t::data, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, filmrolls_removed(), filmrolls_updated(), geotag_changed(), IS_NULL_PTR, metadata_changed(), dt_view_manager_t::module_collect, preferences_changed(), dt_view_manager_t::proxy, darktable_t::signals, tag_changed(), and darktable_t::view_manager.
| void gui_init | ( | dt_lib_module_t * | self | ) |
Definition at line 2922 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_popup_menu(), _view_row_activated(), _view_row_expanded(), darktable_t::bauhaus, COLLECT_N_OPS, collection_updated(), combo_changed(), CPF_DIRECTION_UP, d, darktable, 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_widget_set_label(), 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(), 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, darktable_t::signals, tag_changed(), target_list_internal, tree_count_show(), TRUE, dt_view_manager_t::update, view(), darktable_t::view_manager, and dt_lib_module_t::widget.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
Definition at line 626 of file collect.c.
References _commit_colllection(), _rule_set_item(), _rule_set_mode(), _rule_set_string(), _rules_set_count(), darktable_t::collection, COLLECTION_QUERY_FULL, d, darktable, dt_lib_module_t::data, DT_COLLECTION_PROP_FILMROLL, dt_collection_set_query_flags(), and DT_LIB_COLLECT_MODE_AND.
| void init_presets | ( | dt_lib_module_t * | self | ) |
Definition at line 390 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 277 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(), item_is_numeric(), item_is_tree(), row_activated(), and tree_expand().
|
static |
Definition at line 284 of file collect.c.
References DT_COLLECTION_PROP_FILMROLL, and DT_COLLECTION_PROP_FOLDERS.
Referenced by _configure_tab(), _do_drop(), _en_any(), _en_folders(), _lib_collect_gui_update(), _mount_changed(), _rows_to_imgids(), _view_button_pressed(), _view_popup_menu(), and combo_changed().
|
static |
Definition at line 294 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 289 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_popup_menu(), and combo_changed().
|
static |
Definition at line 302 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 794 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 945 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 2462 of file collect.c.
References _commit_colllection(), _rule_get_item(), _rule_get_mode(), _rule_get_string(), _rule_set_item(), _rule_set_mode(), _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 2435 of file collect.c.
References _commit_colllection(), _rule_set_item(), _rule_set_mode(), _rule_set_string(), _rules_count(), _rules_set_count(), DT_COLLECTION_PROP_FILMROLL, get_collect(), and MAX_RULES.
Referenced by popup_button_callback().
|
static |
Definition at line 2452 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 2884 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_RELOAD, 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 2494 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 2837 of file collect.c.
References darktable_t::collection, darktable, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_UNDEF, and dt_collection_update_query().
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 965 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 1609 of file collect.c.
References _adopt_tag_order(), _combo_set_active_collection(), _commit_quiet(), _decorate_hierarchy(), dt_lib_collect_rule_t::combo, d, darktable, 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_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(), darktable_t::signals, 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 610 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 501 of file collect.c.
References _combo_get_active_collection(), _rule_set_item(), _rule_set_string(), COLLECT_N_OPS, dt_lib_collect_rule_t::combo, dt_free, 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 752 of file collect.c.
References name_key_tuple_t::collate_key.
Referenced by _collect_sorted_tree_names().
|
static |
Definition at line 714 of file collect.c.
References dt_free, i, IS_NULL_PTR, and size.
Referenced by _split_tree_name().
|
static |
Definition at line 706 of file collect.c.
Referenced by _build_tree_store().
|
static |
Definition at line 2842 of file collect.c.
References _combo_get_active_collection(), _lib_collect_gui_update(), darktable_t::collection, collection_updated(), d, darktable, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_TAG, dt_collection_update_query(), dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), FALSE, get_active_rule(), i, dt_view_manager_t::module_collect, dt_view_manager_t::proxy, darktable_t::signals, TRUE, dt_lib_collect_rule_t::typing, darktable_t::view_manager, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 760 of file collect.c.
Referenced by _collect_sorted_tree_names().
|
static |
Definition at line 776 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 992 of file collect.c.
References _combo_get_active_collection(), dt_lib_collect_rule_t::combo, d, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, dt_free, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, FALSE, get_collect(), is_time_property(), 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 867 of file collect.c.
References 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 932 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 889 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 903 of file collect.c.
References model, tree_match_string(), and tree_reveal_func().
Referenced by _populate_tree().
|
static |
Definition at line 1552 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 2001 of file collect.c.
Referenced by _show_context_menu().
|
static |
Definition at line 311 of file collect.c.
Referenced by gui_init().
|
static |
Definition at line 310 of file collect.c.
Referenced by set_properties().
|
static |
Definition at line 1112 of file collect.c.
Referenced by _maybe_file_uncategorized().