comparison src/view_file.h @ 560:ebb2c2b1454d

Add function prototypes (yet unused).
author zas_
date Sat, 03 May 2008 12:50:52 +0000
parents fe675761d091
children 4dee80352786
comparison
equal deleted inserted replaced
559:c0e47b628f76 560:ebb2c2b1454d
12 #ifndef VIEW_FILE_H 12 #ifndef VIEW_FILE_H
13 #define VIEW_FILE_H 13 #define VIEW_FILE_H
14 14
15 #define VIEW_FILE_TYPES_COUNT 2 15 #define VIEW_FILE_TYPES_COUNT 2
16 16
17 ViewFile *vf_new(const gchar *path);
18
19 void vf_set_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gpointer data), gpointer data);
20 void vf_set_thumb_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gdouble val, const gchar *text, gpointer data), gpointer data);
21
22 void vf_set_layout(ViewFile *vf, LayoutWindow *layout);
23
24 gint vf_set_path(ViewFile *vf, const gchar *path);
25 gint vf_refresh(ViewFile *vf);
26
27 void vf_thumb_set(ViewFile *vf, gint enable);
28 void vf_marks_set(ViewFile *vf, gint enable);
29 void vf_sort_set(ViewFile *vf, SortType type, gint ascend);
30
31 FileData *vf_index_get_data(ViewFile *vf, gint row);
32 gchar *vf_index_get_path(ViewFile *vf, gint row);
33 gint vf_index_by_path(ViewFile *vf, const gchar *path);
34 gint vf_index_by_fd(ViewFile *vf, FileData *in_fd);
35 gint vf_count(ViewFile *vf, gint64 *bytes);
36 GList *vf_get_list(ViewFile *vf);
37
38 gint vf_index_is_selected(ViewFile *vf, gint row);
39 gint vf_selection_count(ViewFile *vf, gint64 *bytes);
40 GList *vf_selection_get_list(ViewFile *vf);
41 GList *vf_selection_get_list_by_index(ViewFile *vf);
42
43 void vf_select_all(ViewFile *vf);
44 void vf_select_none(ViewFile *vf);
45 void vf_select_by_path(ViewFile *vf, const gchar *path);
46 void vf_select_by_fd(ViewFile *vf, FileData *fd);
47
48 void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
49 void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode);
50
51 void vf_select_marked(ViewFile *vf, gint mark);
52 void vf_mark_selected(ViewFile *vf, gint mark, gint value);
53
54 gint vf_maint_renamed(ViewFile *vf, FileData *fd);
55 gint vf_maint_removed(ViewFile *vf, FileData *fd, GList *ignore_list);
56 gint vf_maint_moved(ViewFile *vf, FileData *fd, GList *ignore_list);
57
58
17 #endif /* VIEW_FILE_H */ 59 #endif /* VIEW_FILE_H */