7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
22 DUPE_MATCH_NAME = 1 << 0,
23 DUPE_MATCH_SIZE = 1 << 1,
24 DUPE_MATCH_DATE = 1 << 2,
25 DUPE_MATCH_DIM = 1 << 3, /* image dimensions */
26 DUPE_MATCH_SUM = 1 << 4, /* simple checksum */
27 DUPE_MATCH_PATH = 1 << 5,
28 DUPE_MATCH_SIM_HIGH = 1 << 6, /* similarity */
29 DUPE_MATCH_SIM_MED = 1 << 7,
30 DUPE_MATCH_SIM_LOW = 1 << 8,
31 DUPE_MATCH_SIM_CUSTOM = 1 << 9,
32 DUPE_MATCH_NAME_CI = 1 << 10 /* same as name, but case insensitive */
35 typedef struct _DupeItem DupeItem;
38 CollectionData *collection; /* NULL if from DupeWindow->files */
48 ImageSimilarityData *simd;
53 GList *group; /* List of match data */
59 typedef struct _DupeMatch DupeMatch;
66 typedef struct _DupeWindow DupeWindow;
69 GList *list; /* dropped files (DupeItem) */
70 GList *dupes; /* list of dupes (DupeItem, grouping the DupeMatches) */
71 DupeMatchType match_mask; /* mask of things to check for match */
77 GtkWidget *status_label;
78 GtkWidget *extra_label;
79 GtkWidget *button_thumbs;
87 gint setup_n; /* these are merely for speed optimization */
88 GList *setup_point; /* ditto */
89 DupeMatchType setup_mask; /* ditto */
91 guint64 setup_time_count;
93 DupeItem *click_item; /* for popup menu */
95 ThumbLoader *thumb_loader;
98 ImageLoader *img_loader;
100 /* second set comparison stuff */
102 gint second_set; /* second set enabled ? */
103 GList *second_list; /* second set dropped files */
104 gint second_drop; /* drop is on second set */
106 GtkWidget *second_vbox; /* box of second widgets */
107 GtkWidget *second_listview;
108 GtkWidget *second_status_label;
114 DupeWindow *dupe_window_new(DupeMatchType match_mask);
116 void dupe_window_clear(DupeWindow *dw);
117 void dupe_window_close(DupeWindow *dw);
119 void dupe_window_add_collection(DupeWindow *dw, CollectionData *collection);
120 void dupe_window_add_files(DupeWindow *dw, GList *list, gint recurse);
122 void dupe_maint_removed(FileData *fd);
123 void dupe_maint_renamed(FileData *fd);
126 /* cell max with/height hack utility */
127 void cell_renderer_height_override(GtkCellRenderer *renderer);