![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "libs/collect.h"#include "bauhaus/bauhaus.h"#include "common/collection.h"#include "common/selection.h"#include "common/darktable.h"#include "common/debug.h"#include "common/film.h"#include "common/metadata.h"#include "common/utility.h"#include "common/image.h"#include "common/map_locations.h"#include "common/datetime.h"#include "control/conf.h"#include "control/control.h"#include "control/jobs.h"#include "dtgtk/button.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: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 |
Macros | |
| #define | MAX_RULES 10 |
| #define | PARAM_STRING_SIZE 256 |
| #define | CLEAR_PARAMS(r) |
| #define | ADD_COLLECT_ENTRY(value) |
Typedefs | |
| 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 enum dt_lib_collect_cols_t | dt_lib_collect_cols_t |
| typedef struct _range_t | _range_t |
| typedef struct name_key_tuple_t | name_key_tuple_t |
Functions | |
| static void | _lib_collect_gui_update (dt_lib_module_t *self) |
| static void | _lib_folders_update_collection (const gchar *filmroll) |
| static void | entry_changed (GtkEntry *entry, 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_with_event (GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, GdkEventButton *event, dt_lib_collect_t *d) |
| static int | is_time_property (int property) |
| static void | _populate_collect_combo (GtkWidget *w) |
| static gboolean | item_is_folder_collection (dt_collection_properties_t item) |
| static gboolean | item_is_numeric_collection (dt_collection_properties_t item) |
| const char * | name (struct dt_lib_module_t *self) |
| 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 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) |
| const char ** | views (dt_lib_module_t *self) |
| uint32_t | container (dt_lib_module_t *self) |
| static void | view_popup_menu_onSearchFilmroll (GtkWidget *menuitem, gpointer userdata) |
| static void | view_popup_menu_onRemove (GtkWidget *menuitem, gpointer userdata) |
| static void | view_popup_menu (GtkWidget *treeview, GdkEventButton *event, dt_lib_collect_t *d) |
| static void | _reset_tree_font (GtkTreeModel *model, GtkTreeIter *tree_iter) |
| static void | _update_tree_view_nodes_font (GtkTreeSelection *selection) |
| static gboolean | view_onButtonPressed (GtkWidget *treeview, GdkEventButton *event, dt_lib_collect_t *d) |
| static gboolean | view_onPopupMenu (GtkWidget *treeview, dt_lib_collect_t *d) |
| 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 gboolean | list_select (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static gboolean | range_select (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| int | _combo_get_active_collection (GtkWidget *combo) |
| gboolean | _combo_set_active_collection (GtkWidget *combo, const int property) |
| static gboolean | tree_expand (GtkTreeModel *model, GtkTreePath *path, 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 void | set_properties (dt_lib_collect_rule_t *dr) |
| static void | get_properties (dt_lib_collect_rule_t *dr) |
| static GtkTreeModel * | _create_filtered_model (GtkTreeModel *model, dt_lib_collect_rule_t *dr) |
| 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) |
| void | tree_count_show (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
| static void | tree_view (dt_lib_collect_rule_t *dr) |
| static void | list_view (dt_lib_collect_rule_t *dr) |
| static void | _clean_wildcards (dt_lib_collect_rule_t *dr) |
| static void | update_view (dt_lib_collect_rule_t *dr) |
| static void | _set_tooltip (dt_lib_collect_rule_t *d) |
| static void | _set_rules_visibility (dt_lib_collect_rule_t *dr, gboolean last, gboolean active) |
| static gboolean | _is_folder_collection (int i) |
| static gboolean | _is_tag_collection (int i) |
| static void | combo_changed (GtkWidget *combo, dt_lib_collect_rule_t *d) |
| static gboolean | _clear_text_entry (dt_collection_properties_t next_property, dt_collection_properties_t prev_property, dt_lib_collect_rule_t *d) |
| static void | _depopulate_combo (GtkWidget *combo) |
| static void | _repopulate_combo (GtkWidget *combo) |
| static void | _hide_all_rules (dt_lib_collect_t *d) |
| static void | _refresh_rules_visibility (dt_lib_collect_t *d) |
| static void | _update_collect_modes (dt_lib_collect_t *d, int variant) |
| static void | _lib_collect_mode (GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data) |
| void | gui_reset (dt_lib_module_t *self) |
| static gboolean | _is_folder_property (const int prop) |
| static gboolean | _is_tag_property (const int prop) |
| static void | entry_activated (GtkWidget *entry, dt_lib_collect_rule_t *d) |
| int | position () |
| static gboolean | entry_focus_in_callback (GtkWidget *w, GdkEventFocus *event, dt_lib_collect_rule_t *d) |
| static void | menuitem_mode (GtkMenuItem *menuitem, dt_lib_collect_rule_t *d) |
| static void | menuitem_mode_change (GtkMenuItem *menuitem, dt_lib_collect_rule_t *d) |
| static void | filmrolls_updated (gpointer instance, gpointer self) |
| static void | filmrolls_imported (gpointer instance, int film_id, gpointer self) |
| static void | preferences_changed (gpointer instance, gpointer self) |
| static void | filmrolls_removed (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 | menuitem_clear (GtkMenuItem *menuitem, dt_lib_collect_rule_t *d) |
| static gboolean | popup_button_callback (GtkWidget *widget, GdkEventButton *event, dt_lib_collect_rule_t *d) |
| void | _menuitem_preferences (GtkMenuItem *menuitem, dt_lib_module_t *self) |
| void | set_preferences (void *menu, dt_lib_module_t *self) |
| static gint | _sort_model_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, dt_lib_module_t *self) |
| 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 sqlite3_stmt * | _collect_filmrolls_select_like_stmt = NULL |
| static sqlite3_stmt * | _collect_filmrolls_update_stmt = NULL |
| static const char * | UNCATEGORIZED_TAG = N_("uncategorized") |
| #define ADD_COLLECT_ENTRY | ( | value | ) |
| #define CLEAR_PARAMS | ( | r | ) |
| #define MAX_RULES 10 |
| #define PARAM_STRING_SIZE 256 |
| 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 |
|
static |
References dt_conf_get_string(), dt_conf_set_string(), dt_free, dt_string_replace(), get_properties(), and dt_lib_collect_rule_t::num.
Referenced by update_view().
|
static |
References _is_folder_property(), _is_tag_property(), d, entry_changed(), FALSE, and TRUE.
Referenced by _update_collect_modes(), and combo_changed().
| int _combo_get_active_collection | ( | GtkWidget * | combo | ) |
References dt_bauhaus_combobox_get_data().
Referenced by _create_filtered_model(), _mount_changed(), _set_tooltip(), collection_updated(), combo_changed(), entry_activated(), geotag_changed(), list_match_string(), list_view(), metadata_changed(), set_properties(), tag_changed(), tree_expand(), tree_view(), and update_view().
| gboolean _combo_set_active_collection | ( | GtkWidget * | combo, |
| const int | property | ||
| ) |
References dt_bauhaus_combobox_set_from_value(), and DT_COLLECTION_PROP_FILMROLL.
Referenced by _update_collect_modes(), get_properties(), metadata_changed(), and row_activated_with_event().
|
static |
References _collect_filmrolls_select_like_stmt, _combo_get_active_collection(), dt_lib_collect_rule_t::combo, darktable, darktable_t::db, DT_COLLECTION_PROP_FOLDERS, dt_database_get(), DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_free, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_VISIBLE, and model.
Referenced by list_view(), and tree_view().
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_remove_at(), dt_bauhaus_combobox_set_selected_text_align(), dt_bauhaus_widget_set_label(), DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, and TRUE.
Referenced by _update_collect_modes().
|
static |
References d, FALSE, i, MAX_RULES, and TRUE.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
References DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, dt_conf_get_int(), and i.
Referenced by _lib_collect_gui_update(), and _update_collect_modes().
|
static |
References DT_COLLECTION_PROP_FILMROLL, and DT_COLLECTION_PROP_FOLDERS.
Referenced by _clear_text_entry(), and combo_changed().
|
static |
References DT_COLLECTION_PROP_TAG, dt_conf_get_int(), and i.
Referenced by _lib_collect_gui_update().
|
static |
References DT_COLLECTION_PROP_TAG.
Referenced by _clear_text_entry().
|
static |
References _hide_all_rules(), _is_folder_collection(), _is_tag_collection(), _lib_collect_mode(), _refresh_rules_visibility(), _update_collect_modes(), d, darktable, dt_lib_module_t::data, get_active_rule(), darktable_t::gui, dt_gui_gtk_t::reset, and update_view().
Referenced by collection_updated(), filmrolls_imported(), filmrolls_removed(), filmrolls_updated(), geotag_changed(), gui_init(), and set_params().
|
static |
References _hide_all_rules(), _refresh_rules_visibility(), _update_collect_modes(), d, darktable, dt_lib_module_t::data, dt_conf_set_int(), get_active_rule(), darktable_t::gui, dt_gui_gtk_t::reset, and update_view().
Referenced by _lib_collect_gui_update(), and gui_init().
|
static |
References d, dt_conf_get_int(), dt_conf_get_string_const(), i, MAX_RULES, p, and PARAM_STRING_SIZE.
Referenced by get_params(), and set_params().
|
static |
| void _menuitem_preferences | ( | GtkMenuItem * | menuitem, |
| dt_lib_module_t * | self | ||
| ) |
References darktable_t::collection, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_handle_dialog_enter(), dt_osx_disallow_fullscreen(), dt_prefs_init_dialog_collect(), dt_ui_main_window(), darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by set_preferences().
| void _mount_changed | ( | GUnixMountMonitor * | monitor, |
| dt_lib_module_t * | self | ||
| ) |
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, i, and name.
Referenced by _repopulate_combo(), gui_init(), and metadata_changed().
|
static |
References _set_rules_visibility(), d, get_number_of_rules(), i, and MAX_RULES.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
Traverse down the tree from the node referred by the specified iterator in the given model in order to set to the default font the name of each child node. We walk down the tree by recursion. If the library is made up of millions collections, the recursion should be replaced by a stack-based iteration for better performance.
References _reset_tree_font(), DT_LIB_COLLECT_COL_FONT, and model.
Referenced by _reset_tree_font(), and _update_tree_view_nodes_font().
|
static |
|
static |
References _combo_get_active_collection(), d, 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, and is_time_property().
Referenced by _set_rules_visibility(), and combo_changed().
|
static |
References a, b, DT_LIB_COLLECT_COL_INDEX, and model.
Referenced by gui_init().
|
static |
References _clear_text_entry(), _combo_set_active_collection(), _depopulate_combo(), _is_folder_collection(), _repopulate_combo(), d, dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_remove_at(), dt_bauhaus_combobox_set_selected_text_align(), dt_bauhaus_widget_set_label(), DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_TAG, dt_conf_get_int(), dt_conf_set_int(), and TRUE.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
Updates the font of the name of each node in the collection treeview according it is or not selected.
References _reset_tree_font(), DT_LIB_COLLECT_COL_FONT, and model.
Referenced by view_onButtonPressed().
|
static |
References _combo_get_active_collection(), _lib_collect_gui_update(), d, dt_lib_module_t::data, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_UNDEF, FALSE, get_active_rule(), i, TRUE, and dt_lib_collect_rule_t::typing.
Referenced by entry_activated(), geotag_changed(), gui_cleanup(), gui_init(), row_activated_with_event(), and tag_changed().
|
static |
References _clear_text_entry(), _combo_get_active_collection(), _is_folder_property(), _set_tooltip(), c, darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_conf_get_int(), FALSE, get_collect(), darktable_t::gui, is_time_property(), dt_gui_gtk_t::reset, set_properties(), and update_view().
Referenced by gui_init(), and metadata_changed().
| uint32_t container | ( | dt_lib_module_t * | self | ) |
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
|
static |
References _combo_get_active_collection(), c, darktable_t::collection, collection_updated(), d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_control_queue_redraw_center(), dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), dt_free, DT_LIB_COLLECT_COL_PATH, entry_changed(), FALSE, get_collect(), is_time_property(), model, dt_view_manager_t::module_collect, dt_view_manager_t::proxy, darktable_t::signals, update_view(), view(), and darktable_t::view_manager.
Referenced by gui_init().
|
static |
References TRUE, dt_lib_collect_rule_t::typing, and update_view().
Referenced by _clear_text_entry(), entry_activated(), get_properties(), gui_init(), metadata_changed(), and row_activated_with_event().
|
static |
References c, d, FALSE, get_active_rule(), get_collect(), and update_view().
Referenced by gui_init().
|
static |
References _lib_collect_gui_update(), d, dt_lib_module_t::data, FALSE, get_active_rule(), and dt_lib_collect_rule_t::typing.
Referenced by gui_cleanup().
|
static |
References _lib_collect_gui_update(), d, dt_lib_module_t::data, DT_COLLECTION_PROP_FOLDERS, FALSE, get_active_rule(), and dt_lib_collect_rule_t::typing.
Referenced by gui_cleanup(), and gui_init().
|
static |
References _lib_collect_gui_update(), d, and dt_lib_module_t::data.
Referenced by gui_cleanup(), and gui_init().
|
static |
References name_key_tuple_t::collate_key, dt_free, and name_key_tuple_t::name.
Referenced by tree_view().
|
static |
References _combo_get_active_collection(), _lib_collect_gui_update(), darktable_t::collection, collection_updated(), dt_lib_collect_rule_t::combo, d, darktable, dt_lib_module_t::data, 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, and darktable_t::view_manager.
Referenced by gui_cleanup(), and gui_init().
|
static |
|
static |
|
static |
References d, dt_conf_get_int(), and MAX_RULES.
Referenced by _refresh_rules_visibility(), and row_activated_with_event().
| void * get_params | ( | dt_lib_module_t * | self, |
| int * | size | ||
| ) |
References _lib_collect_update_params(), dt_lib_module_t::data, p, and size.
|
static |
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
References _collect_filmrolls_select_like_stmt, _collect_filmrolls_update_stmt, collection_updated(), d, darktable, dt_lib_module_t::data, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, filmrolls_imported(), filmrolls_removed(), filmrolls_updated(), geotag_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 | ) |
References _lib_collect_gui_update(), _lib_collect_mode(), _mount_changed(), _populate_collect_combo(), _sort_model_func(), darktable_t::bauhaus, collection_updated(), combo_changed(), d, darktable, dt_lib_module_t::data, dt_accels_disconnect_on_text_input(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set_selected_text_align(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_GUI_MODULE, dt_gui_widget_init_auto_height(), DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_INDEX, 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(), entry_activated(), entry_changed(), entry_focus_in_callback(), FALSE, filmrolls_removed(), filmrolls_updated(), geotag_changed(), i, MAX_RULES, metadata_changed(), dt_view_manager_t::module_collect, popup_button_callback(), preferences_changed(), dt_view_manager_t::proxy, darktable_t::signals, tag_changed(), tree_count_show(), TREE_LIST_MAX_ROWS, TREE_LIST_MIN_ROWS, TRUE, dt_view_manager_t::update, view(), darktable_t::view_manager, view_onButtonPressed(), view_onPopupMenu(), and dt_lib_module_t::widget.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
| void init_presets | ( | dt_lib_module_t * | self | ) |
|
static |
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 _set_tooltip(), combo_changed(), entry_activated(), item_is_numeric_collection(), row_activated_with_event(), tree_expand(), tree_view(), and update_view().
|
static |
References DT_COLLECTION_PROP_FILMROLL, and DT_COLLECTION_PROP_FOLDERS.
Referenced by view_onButtonPressed().
|
static |
| 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 | ||
| ) |
References DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_CAMERA, DT_COLLECTION_PROP_COLORLABEL, DT_COLLECTION_PROP_DAY, 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_ISO, DT_COLLECTION_PROP_LAST, DT_COLLECTION_PROP_LENS, DT_COLLECTION_PROP_LOCAL_COPY, DT_COLLECTION_PROP_MODULE, DT_COLLECTION_PROP_ORDER, DT_COLLECTION_PROP_TAG, DT_COLLECTION_PROP_TIME, dt_lib_collect_params_rule_t::item, MAX_RULES, dt_lib_collect_params_rule_t::mode, n, PARAM_STRING_SIZE, r, dt_lib_collect_params_t::rule, dt_lib_collect_params_t::rules, and dt_lib_collect_params_rule_t::string.
|
static |
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 list_view().
|
static |
References d, dt_free, DT_LIB_COLLECT_COL_FONT, DT_LIB_COLLECT_COL_PATH, FALSE, get_collect(), model, store(), and dt_lib_collect_rule_t::text.
Referenced by list_view().
|
static |
References _combo_get_active_collection(), _create_filtered_model(), darktable_t::collection, dt_lib_collect_rule_t::combo, d, darktable, darktable_t::db, dt_collection_get_extended_where(), dt_collection_get_makermodel(), DT_COLLECTION_PROP_APERTURE, DT_COLLECTION_PROP_CAMERA, DT_COLLECTION_PROP_COLORLABEL, DT_COLLECTION_PROP_EXPOSURE, DT_COLLECTION_PROP_FILENAME, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOCAL_LENGTH, DT_COLLECTION_PROP_GROUPING, DT_COLLECTION_PROP_HISTORY, 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_RATING, dt_conf_get_bool(), dt_conf_get_int(), dt_conf_get_string_const(), dt_database_get(), DT_DEBUG_SQLITE3_PREPARE_V2, dt_free, dt_image_film_roll_name(), DT_IMAGE_LOCAL_COPY, DT_IOP_ORDER_LAST, dt_iop_order_string(), 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_FLAG_HIDDEN, dt_metadata_get_keyid_by_display_order(), dt_metadata_get_name(), DT_METADATA_NUMBER, dt_util_dstrcat(), FALSE, get_collect(), i, list_match_string(), list_select(), model, 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, _range_t::stop, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, and value.
Referenced by _mount_changed(), and update_view().
|
static |
References c, darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_conf_get_int(), dt_conf_get_string(), dt_conf_set_int(), dt_conf_set_string(), dt_free, DT_LIB_COLLECT_MODE_AND, FALSE, get_collect(), i, and MAX_RULES.
Referenced by popup_button_callback().
|
static |
References c, darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_conf_get_int(), dt_conf_set_int(), dt_conf_set_string(), get_collect(), and MAX_RULES.
Referenced by popup_button_callback().
|
static |
References c, darktable_t::collection, d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_conf_set_int(), and get_collect().
Referenced by popup_button_callback().
|
static |
References _combo_get_active_collection(), _combo_set_active_collection(), _populate_collect_combo(), darktable_t::collection, dt_lib_collect_rule_t::combo, combo_changed(), d, darktable, dt_lib_module_t::data, dt_bauhaus_combobox_clear(), DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_METADATA, dt_collection_update_query(), DT_METADATA_NUMBER, DT_METADATA_SIGNAL_HIDDEN, DT_METADATA_SIGNAL_SHOWN, entry_changed(), FALSE, get_active_rule(), i, MAX_RULES, set_properties(), and type.
Referenced by gui_init().
| const char * name | ( | struct dt_lib_module_t * | self | ) |
|
static |
References d, dt_conf_get_int(), DT_LIB_COLLECT_MODE_AND, DT_LIB_COLLECT_MODE_AND_NOT, DT_LIB_COLLECT_MODE_OR, FALSE, MAX_RULES, menuitem_clear(), menuitem_mode(), menuitem_mode_change(), and TRUE.
Referenced by gui_init().
| int position | ( | ) |
|
static |
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 |
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 list_view(), and tree_view().
|
static |
References _combo_set_active_collection(), darktable_t::collection, collection_updated(), dt_lib_collect_rule_t::combo, d, darktable, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_ORDER_FLAG, 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_COLLECTION_PROP_UNDEF, dt_collection_set_tag_id(), DT_COLLECTION_SORT_FILENAME, DT_COLLECTION_SORT_NONE, dt_collection_update_query(), dt_control_queue_redraw_center(), dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_free, dt_gui_refocus_center(), DT_LIB_COLLECT_COL_PATH, dt_modifier_is(), DT_SIGNAL_IMAGES_ORDER_CHANGE, dt_tag_get_tag_id_by_name(), dt_tag_get_tag_order_by_id(), dt_tag_set_tag_order_by_id(), entry_changed(), FALSE, get_active_rule(), get_number_of_rules(), is_time_property(), item_is_numeric_collection(), model, dt_view_manager_t::module_collect, dt_view_manager_t::proxy, set_properties(), darktable_t::signals, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, update_view(), view(), and darktable_t::view_manager.
Referenced by view_onButtonPressed().
| int set_params | ( | dt_lib_module_t * | self, |
| const void * | params, | ||
| int | size | ||
| ) |
| void set_preferences | ( | void * | menu, |
| dt_lib_module_t * | self | ||
| ) |
References _menuitem_preferences().
|
static |
|
static |
References a, b, and name_key_tuple_t::collate_key.
Referenced by tree_view().
|
static |
References dt_free, i, and size.
Referenced by tree_view().
|
static |
Referenced by tree_view().
|
static |
References _combo_get_active_collection(), darktable_t::collection, collection_updated(), dt_lib_collect_rule_t::combo, d, darktable, dt_lib_module_t::data, 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, dt_lib_collect_rule_t::typing, and darktable_t::view_manager.
Referenced by gui_cleanup(), and gui_init().
|
static |
Referenced by tree_view().
| void tree_count_show | ( | GtkTreeViewColumn * | col, |
| GtkCellRenderer * | renderer, | ||
| GtkTreeModel * | model, | ||
| GtkTreeIter * | iter, | ||
| gpointer | data | ||
| ) |
References dt_free, DT_LIB_COLLECT_COL_COUNT, DT_LIB_COLLECT_COL_TEXT, model, and name.
Referenced by gui_init().
|
static |
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_FONT, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, FALSE, get_collect(), is_time_property(), model, store(), dt_lib_collect_rule_t::text, TRUE, and dt_lib_collect_rule_t::typing.
Referenced by tree_view().
|
static |
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 |
References DT_LIB_COLLECT_COL_VISIBLE, FALSE, model, and TRUE.
Referenced by tree_set_visibility().
|
static |
References model, tree_match_string(), and tree_reveal_func().
Referenced by tree_view().
|
static |
References _combo_get_active_collection(), _create_filtered_model(), name_key_tuple_t::collate_key, darktable_t::collection, dt_lib_collect_rule_t::combo, name_key_tuple_t::count, d, darktable, darktable_t::db, dt_collection_get_extended_where(), 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_database_get(), DT_DATETIME_EXIF_LENGTH, dt_datetime_gtimespan_to_exif(), DT_DEBUG_SQLITE3_PREPARE_V2, 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_TOOLTIP, DT_LIB_COLLECT_COL_UNREACHABLE, DT_LIB_COLLECT_COL_VISIBLE, dt_map_location_data_tag_root(), dt_util_dstrcat(), FALSE, free_tuple(), get_collect(), i, is_time_property(), item_is_numeric_collection(), model, name, name_key_tuple_t::name, dt_lib_collect_rule_t::num, _range_t::path1, _range_t::path2, range_select(), set_properties(), sort_folder_tag(), split_path(), _range_t::start, name_key_tuple_t::status, _range_t::stop, string_array_length(), tag_collate_key(), dt_lib_collect_rule_t::text, tree_expand(), tree_set_visibility(), TRUE, dt_lib_collect_rule_t::typing, and UNCATEGORIZED_TAG.
Referenced by _mount_changed(), _tree_query_tooltip(), _widget_auto_model_row_collapsed(), _widget_auto_model_row_expanded(), dt_accels_search(), dt_accels_window(), search_changed(), and update_view().
|
static |
References _clean_wildcards(), _combo_get_active_collection(), dt_lib_collect_rule_t::combo, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, is_time_property(), list_view(), and tree_view().
Referenced by _lib_collect_gui_update(), _lib_collect_mode(), combo_changed(), entry_activated(), entry_changed(), entry_focus_in_callback(), and row_activated_with_event().
|
static |
References _update_tree_view_nodes_font(), d, dt_modifier_is(), FALSE, item_is_folder_collection(), item_is_numeric_collection(), model, row_activated_with_event(), TRUE, and view_popup_menu().
Referenced by gui_init().
|
static |
References d, DT_COLLECTION_PROP_FOLDERS, FALSE, TRUE, and view_popup_menu().
Referenced by gui_init().
|
static |
References view_popup_menu_onRemove(), and view_popup_menu_onSearchFilmroll().
Referenced by view_onButtonPressed(), and view_onPopupMenu().
References _collect_filmrolls_select_like_stmt, _collect_filmrolls_update_stmt, _lib_folders_update_collection(), darktable, darktable_t::db, dt_control_log(), dt_database_get(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_film_set_folder_status(), dt_free, DT_LIB_COLLECT_COL_PATH, DT_SIGNAL_FILMROLLS_CHANGED, dt_ui_main_window(), error(), darktable_t::gui, model, darktable_t::signals, and dt_gui_gtk_t::ui.
Referenced by view_popup_menu().
| const char ** views | ( | dt_lib_module_t * | self | ) |
References v.
|
static |
Referenced by _create_filtered_model(), gui_cleanup(), and view_popup_menu_onSearchFilmroll().
|
static |
Referenced by gui_cleanup(), and view_popup_menu_onSearchFilmroll().
|
static |
Referenced by tree_view().