2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 DUPE_MATCH_NAME = 1 << 0,
32 DUPE_MATCH_SIZE = 1 << 1,
33 DUPE_MATCH_DATE = 1 << 2,
34 DUPE_MATCH_DIM = 1 << 3, /* image dimensions */
35 DUPE_MATCH_SUM = 1 << 4, /* MD5sum */
36 DUPE_MATCH_PATH = 1 << 5,
37 DUPE_MATCH_SIM_HIGH = 1 << 6, /* similarity */
38 DUPE_MATCH_SIM_MED = 1 << 7,
39 DUPE_MATCH_SIM_LOW = 1 << 8,
40 DUPE_MATCH_SIM_CUSTOM = 1 << 9,
41 DUPE_MATCH_NAME_CI = 1 << 10 /* same as name, but case insensitive */
44 typedef struct _DupeItem DupeItem;
47 CollectionData *collection; /* NULL if from DupeWindow->files */
56 ImageSimilarityData *simd;
61 GList *group; /* List of match data */
67 typedef struct _DupeMatch DupeMatch;
74 typedef struct _DupeWindow DupeWindow;
77 GList *list; /* dropped files (DupeItem) */
78 GList *dupes; /* list of dupes (DupeItem, grouping the DupeMatches) */
79 DupeMatchType match_mask; /* mask of things to check for match */
85 GtkWidget *status_label;
86 GtkWidget *extra_label;
87 GtkWidget *button_thumbs;
91 guint idle_id; /* event source id */
95 gint setup_n; /* these are merely for speed optimization */
96 GList *setup_point; /* ditto */
97 DupeMatchType setup_mask; /* ditto */
99 guint64 setup_time_count;
101 DupeItem *click_item; /* for popup menu */
103 ThumbLoader *thumb_loader;
104 DupeItem *thumb_item;
106 ImageLoader *img_loader;
108 /* second set comparison stuff */
110 gboolean second_set; /* second set enabled ? */
111 GList *second_list; /* second set dropped files */
112 gboolean second_drop; /* drop is on second set */
114 GtkWidget *second_vbox; /* box of second widgets */
115 GtkWidget *second_listview;
116 GtkWidget *second_status_label;
118 gboolean color_frozen;
122 DupeWindow *dupe_window_new(DupeMatchType match_mask);
124 void dupe_window_clear(DupeWindow *dw);
125 void dupe_window_close(DupeWindow *dw);
127 void dupe_window_add_collection(DupeWindow *dw, CollectionData *collection);
128 void dupe_window_add_files(DupeWindow *dw, GList *list, gboolean recurse);
130 /* cell max with/height hack utility */
131 void cell_renderer_height_override(GtkCellRenderer *renderer);
135 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */