Sync to GQview 1.5.9 release.
[geeqie.git] / src / view_file_icon.h
1 /*
2  * GQview
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
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!
10  */
11
12 #ifndef VIEW_FILE_ICON_H
13 #define VIEW_FILE_ICON_H
14
15
16 ViewFileIcon *vficon_new(const gchar *path);
17
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),
23                                   gpointer data);
24
25 void vficon_set_layout(ViewFileIcon *vfi, LayoutWindow *layout);
26
27 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
28 gint vficon_refresh(ViewFileIcon *vfi);
29
30 void vficon_sort_set(ViewFileIcon *vfi, SortType type, gint ascend);
31
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);
37
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);
42
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);
46
47
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);
51
52
53 #endif
54
55