comparison src/view_file_list.h @ 573:2996f1bbc305

Drop ViewFileList, use ViewFile and ViewFileInfoList instead.
author zas_
date Sun, 04 May 2008 16:16:07 +0000
parents c0e47b628f76
children b941403a4cd9
comparison
equal deleted inserted replaced
572:4dee80352786 573:2996f1bbc305
14 #define VIEW_FILE_LIST_H 14 #define VIEW_FILE_LIST_H
15 15
16 16
17 #include "filelist.h" 17 #include "filelist.h"
18 18
19 ViewFileList *vflist_new(const gchar *path); 19 gint vflist_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
20 gint vflist_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
21 gint vflist_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
20 22
21 void vflist_set_status_func(ViewFileList *vfl, 23 void vflist_dnd_init(ViewFile *vf);
22 void (*func)(ViewFileList *vfl, gpointer data), gpointer data); 24
23 void vflist_set_thumb_status_func(ViewFileList *vfl, 25 void vflist_destroy_cb(GtkWidget *widget, gpointer data);
24 void (*func)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data), 26 ViewFile *vflist_new(ViewFile *vf, const gchar *path);
27
28 void vflist_set_status_func(ViewFile *vf,
29 void (*func)(ViewFile *vf, gpointer data), gpointer data);
30 void vflist_set_thumb_status_func(ViewFile *vf,
31 void (*func)(ViewFile *vf, gdouble val, const gchar *text, gpointer data),
25 gpointer data); 32 gpointer data);
26 33
27 void vflist_set_layout(ViewFileList *vfl, LayoutWindow *layout); 34 void vflist_set_layout(ViewFile *vf, LayoutWindow *layout);
28 35
29 gint vflist_set_path(ViewFileList *vfl, const gchar *path); 36 gint vflist_set_path(ViewFile *vf, const gchar *path);
30 gint vflist_refresh(ViewFileList *vfl); 37 gint vflist_refresh(ViewFile *vf);
31 38
32 void vflist_thumb_set(ViewFileList *vfl, gint enable); 39 void vflist_thumb_set(ViewFile *vf, gint enable);
33 void vflist_marks_set(ViewFileList *vfl, gint enable); 40 void vflist_marks_set(ViewFile *vf, gint enable);
34 void vflist_sort_set(ViewFileList *vfl, SortType type, gint ascend); 41 void vflist_sort_set(ViewFile *vf, SortType type, gint ascend);
35 42
36 FileData *vflist_index_get_data(ViewFileList *vfl, gint row); 43 FileData *vflist_index_get_data(ViewFile *vf, gint row);
37 gchar *vflist_index_get_path(ViewFileList *vfl, gint row); 44 gchar *vflist_index_get_path(ViewFile *vf, gint row);
38 gint vflist_index_by_path(ViewFileList *vfl, const gchar *path); 45 gint vflist_index_by_path(ViewFile *vf, const gchar *path);
39 gint vflist_count(ViewFileList *vfl, gint64 *bytes); 46 gint vflist_count(ViewFile *vf, gint64 *bytes);
40 GList *vflist_get_list(ViewFileList *vfl); 47 GList *vflist_get_list(ViewFile *vf);
41 48
42 gint vflist_index_is_selected(ViewFileList *vfl, gint row); 49 gint vflist_index_is_selected(ViewFile *vf, gint row);
43 gint vflist_selection_count(ViewFileList *vfl, gint64 *bytes); 50 gint vflist_selection_count(ViewFile *vf, gint64 *bytes);
44 GList *vflist_selection_get_list(ViewFileList *vfl); 51 GList *vflist_selection_get_list(ViewFile *vf);
45 GList *vflist_selection_get_list_by_index(ViewFileList *vfl); 52 GList *vflist_selection_get_list_by_index(ViewFile *vf);
46 53
47 void vflist_select_all(ViewFileList *vfl); 54 void vflist_select_all(ViewFile *vf);
48 void vflist_select_none(ViewFileList *vfl); 55 void vflist_select_none(ViewFile *vf);
49 void vflist_select_by_path(ViewFileList *vfl, const gchar *path); 56 void vflist_select_by_path(ViewFile *vf, const gchar *path);
50 void vflist_select_by_fd(ViewFileList *vfl, FileData *fd); 57 void vflist_select_by_fd(ViewFile *vf, FileData *fd);
51 58
52 void vflist_mark_to_selection(ViewFileList *vfl, gint mark, MarkToSelectionMode mode); 59 void vflist_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
53 void vflist_selection_to_mark(ViewFileList *vfl, gint mark, SelectionToMarkMode mode); 60 void vflist_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode);
54 61
55 void vflist_select_marked(ViewFileList *vfl, gint mark); 62 void vflist_select_marked(ViewFile *vf, gint mark);
56 void vflist_mark_selected(ViewFileList *vfl, gint mark, gint value); 63 void vflist_mark_selected(ViewFile *vf, gint mark, gint value);
57 64
58 gint vflist_maint_renamed(ViewFileList *vfl, FileData *fd); 65 gint vflist_maint_renamed(ViewFile *vf, FileData *fd);
59 gint vflist_maint_removed(ViewFileList *vfl, FileData *fd, GList *ignore_list); 66 gint vflist_maint_removed(ViewFile *vf, FileData *fd, GList *ignore_list);
60 gint vflist_maint_moved(ViewFileList *vfl, FileData *fd, GList *ignore_list); 67 gint vflist_maint_moved(ViewFile *vf, FileData *fd, GList *ignore_list);
61 68
62 69
63 #endif 70 #endif