![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <collection.h>
Collaboration diagram for dt_collection_rule_t:Data Fields | |
| dt_collection_properties_t | property |
| int | mode |
| const char * | text |
| gboolean | recursive |
One rule of a collection: "images whose <property> <mode> matches <text>".
This is what crosses into the database module. The module turns rules into SQL; reading them out of the user's configuration is common/collection.c's.
Definition at line 171 of file collection.h.
| int dt_collection_rule_t::mode |
0 = AND, 1 = OR, 2 = AND NOT
Definition at line 174 of file collection.h.
Referenced by dt_collection_update_query().
| dt_collection_properties_t dt_collection_rule_t::property |
Definition at line 173 of file collection.h.
Referenced by dt_collection_update_query().
| gboolean dt_collection_rule_t::recursive |
for the path-like properties: match below the value too
Definition at line 176 of file collection.h.
Referenced by dt_collection_update_query().
| const char* dt_collection_rule_t::text |
empty or NULL means "match everything"
Definition at line 175 of file collection.h.
Referenced by dt_collection_free(), dt_collection_set_rules(), and dt_collection_update_query().