annotate src/view_file.h @ 658:dc09f544d292

Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
author zas_
date Tue, 13 May 2008 19:56:52 +0000
parents 8a1202efa51e
children 542bb47fef04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
554
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
1 /*
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
2 * Geeqie
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
3 * Copyright (C) 2008 The Geeqie Team
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
4 *
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
5 * Author: Laurent Monin
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
6 *
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
8 * Please read the included file COPYING for more information.
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
10 */
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
11
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
12 #ifndef VIEW_FILE_H
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
13 #define VIEW_FILE_H
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
14
556
fe675761d091 Replace Layout icon_view field by more generic file_view_type.
zas_
parents: 554
diff changeset
15 #define VIEW_FILE_TYPES_COUNT 2
fe675761d091 Replace Layout icon_view field by more generic file_view_type.
zas_
parents: 554
diff changeset
16
658
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
17 #define VFLIST_INFO_POINTER(_vf_) ((ViewFileInfoList *)(_vf_->info))
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
18 #define VFLIST_INFO(_vf_, _part_) (VFLIST_INFO_POINTER(_vf_)->_part_)
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
19
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
20 #define VFICON_INFO_POINTER(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
21 #define VFICON_INFO(_vf_, _part_) (VFICON_INFO_POINTER(_vf_)->_part_)
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
22
633
fe700864cb5a Use vf_* functions where possible.
zas_
parents: 632
diff changeset
23 void vf_send_update(ViewFile *vf);
fe700864cb5a Use vf_* functions where possible.
zas_
parents: 632
diff changeset
24
572
4dee80352786 Prepare switch to ViewFile (unused yet).
zas_
parents: 560
diff changeset
25 ViewFile *vf_new(FileViewType type, const gchar *path);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
26
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
27 void vf_set_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gpointer data), gpointer data);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
28 void vf_set_thumb_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gdouble val, const gchar *text, gpointer data), gpointer data);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
29
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
30 void vf_set_layout(ViewFile *vf, LayoutWindow *layout);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
31
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
32 gint vf_set_path(ViewFile *vf, const gchar *path);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
33 gint vf_refresh(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
34
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
35 void vf_thumb_set(ViewFile *vf, gint enable);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
36 void vf_marks_set(ViewFile *vf, gint enable);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
37 void vf_sort_set(ViewFile *vf, SortType type, gint ascend);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
38
634
92208e71673b Introduce vf_pop_menu_file_list() as a wrapper to
zas_
parents: 633
diff changeset
39 GList *vf_pop_menu_file_list(ViewFile *vf);
635
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
40 void vf_pop_menu_edit_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
41 void vf_pop_menu_info_cb(GtkWidget *widget, gpointer data);
637
8a1202efa51e Add some wrapper functions for not yet common code.
zas_
parents: 635
diff changeset
42 void vf_pop_menu_view_cb(GtkWidget *widget, gpointer data);
635
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
43 void vf_pop_menu_copy_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
44 void vf_pop_menu_move_cb(GtkWidget *widget, gpointer data);
637
8a1202efa51e Add some wrapper functions for not yet common code.
zas_
parents: 635
diff changeset
45 void vf_pop_menu_rename_cb(GtkWidget *widget, gpointer data);
635
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
46 void vf_pop_menu_delete_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
47 void vf_pop_menu_copy_path_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
48 void vf_pop_menu_sort_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
49 void vf_pop_menu_sort_ascend_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
50 void vf_pop_menu_sel_mark_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
51 void vf_pop_menu_sel_mark_and_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
52 void vf_pop_menu_sel_mark_or_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
53 void vf_pop_menu_sel_mark_minus_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
54 void vf_pop_menu_set_mark_sel_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
55 void vf_pop_menu_res_mark_sel_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
56 void vf_pop_menu_toggle_mark_sel_cb(GtkWidget *widget, gpointer data);
eaca3e910ecd Move a part of pop up menu common code to view_file.[ch].
zas_
parents: 634
diff changeset
57 void vf_pop_menu_toggle_view_type_cb(GtkWidget *widget, gpointer data);
637
8a1202efa51e Add some wrapper functions for not yet common code.
zas_
parents: 635
diff changeset
58 void vf_pop_menu_refresh_cb(GtkWidget *widget, gpointer data);
8a1202efa51e Add some wrapper functions for not yet common code.
zas_
parents: 635
diff changeset
59 void vf_popup_destroy_cb(GtkWidget *widget, gpointer data);
634
92208e71673b Introduce vf_pop_menu_file_list() as a wrapper to
zas_
parents: 633
diff changeset
60
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
61 FileData *vf_index_get_data(ViewFile *vf, gint row);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
62 gint vf_index_by_path(ViewFile *vf, const gchar *path);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
63 gint vf_index_by_fd(ViewFile *vf, FileData *in_fd);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
64 gint vf_count(ViewFile *vf, gint64 *bytes);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
65 GList *vf_get_list(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
66
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
67 gint vf_index_is_selected(ViewFile *vf, gint row);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
68 gint vf_selection_count(ViewFile *vf, gint64 *bytes);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
69 GList *vf_selection_get_list(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
70 GList *vf_selection_get_list_by_index(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
71
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
72 void vf_select_all(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
73 void vf_select_none(ViewFile *vf);
601
93c6dc4c537b Add a way to invert the current selection.
zas_
parents: 578
diff changeset
74 void vf_select_invert(ViewFile *vf);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
75 void vf_select_by_fd(ViewFile *vf, FileData *fd);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
76
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
77 void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
78 void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
79
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
80 void vf_select_marked(ViewFile *vf, gint mark);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
81 void vf_mark_selected(ViewFile *vf, gint mark, gint value);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
82
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
83 gint vf_maint_renamed(ViewFile *vf, FileData *fd);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
84 gint vf_maint_removed(ViewFile *vf, FileData *fd, GList *ignore_list);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
85 gint vf_maint_moved(ViewFile *vf, FileData *fd, GList *ignore_list);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
86
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
87
554
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
88 #endif /* VIEW_FILE_H */