Remove commented out code.
[geeqie.git] / src / view_file.h
1 /*
2  * Geeqie
3  * Copyright (C) 2008 - 2012 The Geeqie Team
4  *
5  * Author: Laurent Monin
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_H
13 #define VIEW_FILE_H
14
15 #define VIEW_FILE_TYPES_COUNT 2
16
17 #define VFLIST(_vf_) ((ViewFileInfoList *)(_vf_->info))
18 #define VFICON(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
19
20 void vf_send_update(ViewFile *vf);
21
22 ViewFile *vf_new(FileViewType type, FileData *dir_fd);
23
24 void vf_set_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gpointer data), gpointer data);
25 void vf_set_thumb_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gdouble val, const gchar *text, gpointer data), gpointer data);
26
27 void vf_set_layout(ViewFile *vf, LayoutWindow *layout);
28
29 gboolean vf_set_fd(ViewFile *vf, FileData *fd);
30 gboolean vf_refresh(ViewFile *vf);
31 void vf_refresh_idle(ViewFile *vf);
32
33 void vf_thumb_set(ViewFile *vf, gboolean enable);
34 void vf_marks_set(ViewFile *vf, gboolean enable);
35 void vf_sort_set(ViewFile *vf, SortType type, gboolean ascend);
36
37 guint vf_marks_get_filter(ViewFile *vf);
38 void vf_mark_filter_toggle(ViewFile *vf, gint mark);
39
40 GList *vf_selection_get_one(ViewFile *vf, FileData *fd);
41 GList *vf_pop_menu_file_list(ViewFile *vf);
42 GtkWidget *vf_pop_menu(ViewFile *vf);
43
44 FileData *vf_index_get_data(ViewFile *vf, gint row);
45 gint vf_index_by_fd(ViewFile *vf, FileData *in_fd);
46 guint vf_count(ViewFile *vf, gint64 *bytes);
47 GList *vf_get_list(ViewFile *vf);
48
49 gint vf_index_is_selected(ViewFile *vf, gint row);
50 guint vf_selection_count(ViewFile *vf, gint64 *bytes);
51 GList *vf_selection_get_list(ViewFile *vf);
52 GList *vf_selection_get_list_by_index(ViewFile *vf);
53
54 void vf_select_all(ViewFile *vf);
55 void vf_select_none(ViewFile *vf);
56 void vf_select_invert(ViewFile *vf);
57 void vf_select_by_fd(ViewFile *vf, FileData *fd);
58
59 void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
60 void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode);
61
62 void vf_refresh_idle_cancel(ViewFile *vf);
63 void vf_notify_cb(FileData *fd, NotifyType type, gpointer data);
64
65 void vf_thumb_update(ViewFile *vf);
66 void vf_thumb_cleanup(ViewFile *vf);
67 void vf_thumb_stop(ViewFile *vf);
68
69 #endif /* VIEW_FILE_H */
70 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */