![]() |
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/history.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>
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 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 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_string_replace(), get_properties(), and dt_lib_collect_rule_t::num.
Referenced by update_view().
|
static |
References _is_folder_property(), _is_tag_property(), entry_changed(), FALSE, dt_lib_collect_rule_t::text, 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 _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_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_VISIBLE, and model.
Referenced by list_view(), and tree_view().
|
static |
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 FALSE, dt_lib_collect_rule_t::hbox, MAX_RULES, dt_lib_collect_t::rule, TRUE, and dt_lib_collect_t::view.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
References DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, and dt_conf_get_int().
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, and dt_conf_get_int().
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(), dt_lib_collect_rule_t::combo, darktable, dt_lib_module_t::data, get_active_rule(), darktable_t::gui, dt_lib_collect_t::nb_rules, dt_lib_collect_t::notebook, dt_gui_gtk_t::reset, dt_lib_collect_t::rule, update_view(), and dt_lib_collect_t::view_rule.
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(), dt_lib_collect_rule_t::combo, darktable, dt_lib_module_t::data, dt_conf_set_int(), get_active_rule(), darktable_t::gui, dt_gui_gtk_t::reset, dt_lib_collect_t::rule, and update_view().
Referenced by _lib_collect_gui_update(), and gui_init().
|
static |
References dt_conf_get_int(), dt_conf_get_string_const(), MAX_RULES, PARAM_STRING_SIZE, and dt_lib_collect_t::params.
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 _combo_get_active_collection(), dt_lib_collect_rule_t::combo, dt_lib_module_t::data, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_FOLDERS, dt_film_set_folder_status(), FALSE, get_active_rule(), list_view(), tree_view(), dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by gui_init().
|
static |
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_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 name.
Referenced by _repopulate_combo(), gui_init(), and metadata_changed().
|
static |
References _set_rules_visibility(), dt_lib_collect_t::active_rule, get_number_of_rules(), MAX_RULES, and dt_lib_collect_t::rule.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
|
static |
|
static |
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, is_time_property(), and dt_lib_collect_rule_t::text.
Referenced by _set_rules_visibility(), and combo_changed().
|
static |
References 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(), dt_lib_collect_rule_t::combo, 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(), dt_lib_collect_t::rule, dt_lib_collect_rule_t::text, and TRUE.
Referenced by _lib_collect_gui_update(), and _lib_collect_mode().
|
static |
References _combo_get_active_collection(), _lib_collect_gui_update(), dt_lib_collect_t::active_rule, dt_lib_collect_rule_t::combo, dt_lib_module_t::data, DT_COLLECTION_CHANGE_RELOAD, DT_COLLECTION_PROP_UNDEF, FALSE, get_active_rule(), dt_lib_collect_t::rule, TRUE, dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
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(), darktable_t::collection, dt_lib_collect_rule_t::combo, 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_lib_collect_rule_t::num, dt_gui_gtk_t::reset, set_properties(), dt_lib_collect_rule_t::typing, 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(), darktable_t::collection, collection_updated(), dt_lib_collect_rule_t::combo, 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_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, dt_lib_collect_rule_t::text, dt_lib_collect_rule_t::typing, 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 FALSE, get_active_rule(), get_collect(), and update_view().
Referenced by gui_init().
|
static |
References _lib_collect_gui_update(), dt_lib_module_t::data, FALSE, get_active_rule(), dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup().
|
static |
References _lib_collect_gui_update(), dt_lib_module_t::data, DT_COLLECTION_PROP_FOLDERS, 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 |
References _lib_collect_gui_update(), dt_lib_module_t::data, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
References name_key_tuple_t::collate_key, 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, 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, darktable_t::view_manager, and dt_lib_collect_t::view_rule.
Referenced by gui_cleanup(), and gui_init().
|
static |
References dt_lib_collect_t::active_rule, and dt_lib_collect_t::rule.
Referenced by _lib_collect_gui_update(), _lib_collect_mode(), _mount_changed(), collection_updated(), entry_focus_in_callback(), filmrolls_imported(), filmrolls_removed(), geotag_changed(), metadata_changed(), row_activated_with_event(), and tag_changed().
|
static |
|
static |
References dt_lib_collect_t::active_rule, dt_conf_get_int(), MAX_RULES, and dt_lib_collect_t::nb_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, and size.
|
static |
void gui_cleanup | ( | dt_lib_module_t * | self | ) |
References collection_updated(), darktable, dt_lib_module_t::data, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, filmrolls_imported(), filmrolls_removed(), filmrolls_updated(), geotag_changed(), dt_lib_collect_t::listfilter, dt_view_manager_t::module_collect, dt_lib_collect_t::params, preferences_changed(), dt_view_manager_t::proxy, darktable_t::signals, tag_changed(), dt_lib_collect_t::treefilter, darktable_t::view_manager, and dt_lib_collect_t::vmonitor.
void gui_init | ( | dt_lib_module_t * | self | ) |
References _lib_collect_gui_update(), _lib_collect_mode(), _mount_changed(), _populate_collect_combo(), _sort_model_func(), dt_lib_collect_t::active_rule, darktable_t::bauhaus, dt_lib_collect_rule_t::button, collection_updated(), dt_lib_collect_rule_t::combo, combo_changed(), 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_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(), dt_ui_scroll_wrap(), entry_activated(), entry_changed(), entry_focus_in_callback(), FALSE, filmrolls_removed(), filmrolls_updated(), geotag_changed(), dt_lib_collect_rule_t::hbox, dt_lib_collect_rule_t::lib_collect, dt_lib_collect_t::listfilter, MAX_RULES, metadata_changed(), dt_view_manager_t::module_collect, dt_lib_collect_t::nb_rules, dt_lib_collect_t::notebook, dt_lib_collect_rule_t::num, dt_lib_collect_t::params, popup_button_callback(), preferences_changed(), dt_view_manager_t::proxy, dt_lib_collect_t::rule, darktable_t::signals, tag_changed(), dt_lib_collect_rule_t::text, tree_count_show(), dt_lib_collect_t::treefilter, TRUE, dt_lib_collect_rule_t::typing, dt_view_manager_t::update, dt_lib_collect_t::view, view(), darktable_t::view_manager, view_onButtonPressed(), view_onPopupMenu(), dt_lib_collect_t::view_rule, dt_lib_collect_t::vmonitor, and dt_lib_module_t::widget.
void gui_reset | ( | dt_lib_module_t * | self | ) |
References dt_lib_collect_t::active_rule, darktable_t::collection, COLLECTION_QUERY_FULL, darktable, dt_lib_module_t::data, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_FILMROLL, DT_COLLECTION_PROP_UNDEF, dt_collection_set_query_flags(), dt_collection_update_query(), dt_conf_set_int(), dt_conf_set_string(), and dt_lib_collect_t::view_rule.
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, PARAM_STRING_SIZE, 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_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 DT_LIB_COLLECT_COL_PATH, FALSE, get_collect(), model, dt_lib_collect_rule_t::text, and dt_lib_collect_t::view.
Referenced by list_view().
|
static |
References _combo_get_active_collection(), _create_filtered_model(), darktable_t::collection, dt_lib_collect_rule_t::combo, 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_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_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(), list_match_string(), list_select(), dt_lib_collect_t::listfilter, 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, dt_lib_collect_t::view, and dt_lib_collect_t::view_rule.
Referenced by _mount_changed(), and update_view().
|
static |
References darktable_t::collection, 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_LIB_COLLECT_MODE_AND, FALSE, get_collect(), MAX_RULES, dt_lib_collect_rule_t::num, and dt_lib_collect_rule_t::typing.
Referenced by popup_button_callback().
|
static |
|
static |
|
static |
References _combo_get_active_collection(), _combo_set_active_collection(), _populate_collect_combo(), darktable_t::collection, dt_lib_collect_rule_t::combo, combo_changed(), 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(), MAX_RULES, dt_lib_collect_t::rule, set_properties(), dt_lib_collect_rule_t::text, type, and dt_lib_collect_rule_t::typing.
Referenced by gui_init().
const char * name | ( | struct dt_lib_module_t * | self | ) |
|
static |
References 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(), dt_lib_collect_rule_t::num, 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_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, 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_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, dt_lib_collect_t::rule, set_properties(), darktable_t::signals, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, update_view(), view(), darktable_t::view_manager, and dt_lib_collect_t::view_rule.
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 name_key_tuple_t::collate_key.
Referenced by tree_view().
|
static |
References 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, 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(), dt_view_manager_t::module_collect, dt_lib_collect_t::nb_rules, dt_view_manager_t::proxy, dt_lib_collect_t::rule, 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 |
Referenced by tree_view().
void tree_count_show | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | model, | ||
GtkTreeIter * | iter, | ||
gpointer | data | ||
) |
References 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, DT_COLLECTION_PROP_DAY, DT_COLLECTION_PROP_FOLDERS, DT_COLLECTION_PROP_GEOTAGGING, DT_COLLECTION_PROP_TAG, DT_LIB_COLLECT_COL_PATH, DT_LIB_COLLECT_COL_TEXT, FALSE, get_collect(), is_time_property(), model, dt_lib_collect_rule_t::text, TRUE, dt_lib_collect_rule_t::typing, and dt_lib_collect_t::view.
Referenced by tree_view().
|
static |
References 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, 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_LIB_COLLECT_COL_COUNT, 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(), 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(), dt_lib_collect_t::treefilter, TRUE, dt_lib_collect_rule_t::typing, UNCATEGORIZED_TAG, dt_lib_collect_t::view, and dt_lib_collect_t::view_rule.
Referenced by _mount_changed(), _tree_query_tooltip(), 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 dt_modifier_is(), FALSE, item_is_folder_collection(), item_is_numeric_collection(), model, row_activated_with_event(), TRUE, view_popup_menu(), and dt_lib_collect_t::view_rule.
Referenced by gui_init().
|
static |
References DT_COLLECTION_PROP_FOLDERS, FALSE, TRUE, view_popup_menu(), and dt_lib_collect_t::view_rule.
Referenced by gui_init().
|
static |
References view_popup_menu_onRemove(), and view_popup_menu_onSearchFilmroll().
Referenced by view_onButtonPressed(), and view_onPopupMenu().
|
static |
|
static |
References _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_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 | ) |
|
static |
Referenced by tree_view().