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!
12 #ifndef VIEW_FILE_ICON_H
13 #define VIEW_FILE_ICON_H
16 ViewFileIcon *vficon_new(const gchar *path);
18 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
19 void vficon_set_status_func(ViewFileIcon *vfi,
20 void (*func)(ViewFileIcon *vfi, gpointer data), gpointer data);
21 void vficon_set_thumb_status_func(ViewFileIcon *vfi,
22 void (*func)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data),
25 void vficon_set_layout(ViewFileIcon *vfi, LayoutWindow *layout);
27 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
28 gint vficon_refresh(ViewFileIcon *vfi);
30 void vficon_sort_set(ViewFileIcon *vfi, SortType type, gint ascend);
32 FileData *vficon_index_get_data(ViewFileIcon *vfi, gint row);
33 gchar *vficon_index_get_path(ViewFileIcon *vfi, gint row);
34 gint vficon_index_by_path(ViewFileIcon *vfi, const gchar *path);
35 gint vficon_count(ViewFileIcon *vfi, gint64 *bytes);
36 GList *vficon_get_list(ViewFileIcon *vfi);
38 gint vficon_index_is_selected(ViewFileIcon *vfi, gint row);
39 gint vficon_selection_count(ViewFileIcon *vfi, gint64 *bytes);
40 GList *vficon_selection_get_list(ViewFileIcon *vfi);
41 GList *vficon_selection_get_list_by_index(ViewFileIcon *vfi);
43 void vficon_select_all(ViewFileIcon *vfi);
44 void vficon_select_none(ViewFileIcon *vfi);
45 void vficon_select_by_path(ViewFileIcon *vfi, const gchar *path);
48 gint vficon_maint_renamed(ViewFileIcon *vfi, const gchar *source, const gchar *dest);
49 gint vficon_maint_removed(ViewFileIcon *vfi, const gchar *path, GList *ignore_list);
50 gint vficon_maint_moved(ViewFileIcon *vfi, const gchar *source, const gchar *dest, GList *ignore_list);