4 * Copyright (C) 2008 The Geeqie Team
8 * This software is released under the GNU General Public License (GNU GPL).
9 * Please read the included file COPYING for more information.
10 * This software comes with no warranty of any kind, use at your own risk!
13 #ifndef VIEW_FILE_ICON_H
14 #define VIEW_FILE_ICON_H
17 ViewFileIcon *vficon_new(const gchar *path);
19 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
20 void vficon_set_status_func(ViewFileIcon *vfi,
21 void (*func)(ViewFileIcon *vfi, gpointer data), gpointer data);
22 void vficon_set_thumb_status_func(ViewFileIcon *vfi,
23 void (*func)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data),
26 void vficon_set_layout(ViewFileIcon *vfi, LayoutWindow *layout);
28 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
29 gint vficon_refresh(ViewFileIcon *vfi);
31 void vficon_sort_set(ViewFileIcon *vfi, SortType type, gint ascend);
33 FileData *vficon_index_get_data(ViewFileIcon *vfi, gint row);
34 gchar *vficon_index_get_path(ViewFileIcon *vfi, gint row);
35 gint vficon_index_by_path(ViewFileIcon *vfi, const gchar *path);
36 gint vficon_index_by_fd(ViewFileIcon *vfi, FileData *in_fd);
37 gint vficon_count(ViewFileIcon *vfi, gint64 *bytes);
38 GList *vficon_get_list(ViewFileIcon *vfi);
40 gint vficon_index_is_selected(ViewFileIcon *vfi, gint row);
41 gint vficon_selection_count(ViewFileIcon *vfi, gint64 *bytes);
42 GList *vficon_selection_get_list(ViewFileIcon *vfi);
43 GList *vficon_selection_get_list_by_index(ViewFileIcon *vfi);
45 void vficon_select_all(ViewFileIcon *vfi);
46 void vficon_select_none(ViewFileIcon *vfi);
47 void vficon_select_by_path(ViewFileIcon *vfi, const gchar *path);
48 void vficon_select_by_fd(ViewFileIcon *vfi, FileData *fd);
50 void vficon_mark_to_selection(ViewFileIcon *vfi, gint mark, MarkToSelectionMode mode);
51 void vficon_selection_to_mark(ViewFileIcon *vfi, gint mark, SelectionToMarkMode mode);
53 gint vficon_maint_renamed(ViewFileIcon *vfi, FileData *fd);
54 gint vficon_maint_removed(ViewFileIcon *vfi, FileData *fd, GList *ignore_list);
55 gint vficon_maint_moved(ViewFileIcon *vfi, FileData *fd, GList *ignore_list);