annotate src/view_file.h @ 1802:956aab097ea7

added 2010 to copyright text
author nadvornik
date Tue, 16 Feb 2010 21:18:03 +0000
parents caf0e4b8319d
children
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
1802
956aab097ea7 added 2010 to copyright text
nadvornik
parents: 1761
diff changeset
3 * Copyright (C) 2008 - 2010 The Geeqie Team
554
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
968
065a129fd42b Simplify things related to ViewFileInfoList * and ViewFileInfoIcon * type casting:
zas_
parents: 964
diff changeset
17 #define VFLIST(_vf_) ((ViewFileInfoList *)(_vf_->info))
065a129fd42b Simplify things related to ViewFileInfoList * and ViewFileInfoIcon * type casting:
zas_
parents: 964
diff changeset
18 #define VFICON(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
658
dc09f544d292 Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
zas_
parents: 637
diff changeset
19
633
fe700864cb5a Use vf_* functions where possible.
zas_
parents: 632
diff changeset
20 void vf_send_update(ViewFile *vf);
fe700864cb5a Use vf_* functions where possible.
zas_
parents: 632
diff changeset
21
783
d6a7fb4b8e7c replaced directory path with FileData* dir_fd
nadvornik
parents: 736
diff changeset
22 ViewFile *vf_new(FileViewType type, FileData *dir_fd);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
23
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
24 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
25 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
26
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
27 void vf_set_layout(ViewFile *vf, LayoutWindow *layout);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
28
1453
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
29 gboolean vf_set_fd(ViewFile *vf, FileData *fd);
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
30 gboolean vf_refresh(ViewFile *vf);
964
ba1d3c4bc0cd implemented marks filter
nadvornik
parents: 814
diff changeset
31 void vf_refresh_idle(ViewFile *vf);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
32
1453
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
33 void vf_thumb_set(ViewFile *vf, gboolean enable);
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
34 void vf_marks_set(ViewFile *vf, gboolean enable);
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
35 void vf_sort_set(ViewFile *vf, SortType type, gboolean ascend);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
36
964
ba1d3c4bc0cd implemented marks filter
nadvornik
parents: 814
diff changeset
37 guint vf_marks_get_filter(ViewFile *vf);
1635
5ad450d67878 added mark filter to menu - now it is possible to assign hotkeys
nadvornik
parents: 1608
diff changeset
38 void vf_mark_filter_toggle(ViewFile *vf, gint mark);
964
ba1d3c4bc0cd implemented marks filter
nadvornik
parents: 814
diff changeset
39
1761
caf0e4b8319d consider sidecars in layout_image popup menu
nadvornik
parents: 1635
diff changeset
40 GList *vf_selection_get_one(ViewFile *vf, FileData *fd);
634
92208e71673b Introduce vf_pop_menu_file_list() as a wrapper to
zas_
parents: 633
diff changeset
41 GList *vf_pop_menu_file_list(ViewFile *vf);
659
542bb47fef04 Merge vflist_pop_menu() and vficon_pop_menu() into vf_pop_menu().
zas_
parents: 658
diff changeset
42 GtkWidget *vf_pop_menu(ViewFile *vf);
634
92208e71673b Introduce vf_pop_menu_file_list() as a wrapper to
zas_
parents: 633
diff changeset
43
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
44 FileData *vf_index_get_data(ViewFile *vf, gint row);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
45 gint vf_index_by_fd(ViewFile *vf, FileData *in_fd);
736
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 662
diff changeset
46 guint vf_count(ViewFile *vf, gint64 *bytes);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
47 GList *vf_get_list(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
48
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
49 gint vf_index_is_selected(ViewFile *vf, gint row);
736
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 662
diff changeset
50 guint vf_selection_count(ViewFile *vf, gint64 *bytes);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
51 GList *vf_selection_get_list(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
52 GList *vf_selection_get_list_by_index(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
53
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
54 void vf_select_all(ViewFile *vf);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
55 void vf_select_none(ViewFile *vf);
601
93c6dc4c537b Add a way to invert the current selection.
zas_
parents: 578
diff changeset
56 void vf_select_invert(ViewFile *vf);
560
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
57 void vf_select_by_fd(ViewFile *vf, FileData *fd);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
58
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
59 void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
60 void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode);
ebb2c2b1454d Add function prototypes (yet unused).
zas_
parents: 556
diff changeset
61
814
721c2bbaceec moved notification to view_file.c
nadvornik
parents: 787
diff changeset
62 void vf_refresh_idle_cancel(ViewFile *vf);
721c2bbaceec moved notification to view_file.c
nadvornik
parents: 787
diff changeset
63 void vf_notify_cb(FileData *fd, NotifyType type, gpointer data);
1453
bc3f5c0432f6 gint -> gboolean where applicable. The end (ouf!).
zas_
parents: 1284
diff changeset
64
1506
d352a44545a6 Force thumbnails refreshing when thumbnails dimensions are modified through Preferences.
zas_
parents: 1503
diff changeset
65 void vf_thumb_update(ViewFile *vf);
1608
fe9ac4a5c969 Merge common thumb code from view_file_list and view_file_icon to view_file.
zas_
parents: 1506
diff changeset
66 void vf_thumb_cleanup(ViewFile *vf);
fe9ac4a5c969 Merge common thumb code from view_file_list and view_file_icon to view_file.
zas_
parents: 1506
diff changeset
67 void vf_thumb_stop(ViewFile *vf);
1506
d352a44545a6 Force thumbnails refreshing when thumbnails dimensions are modified through Preferences.
zas_
parents: 1503
diff changeset
68
554
2da72a136070 Prepare merging of some parts of view_file_list and view_file_icon and
zas_
parents:
diff changeset
69 #endif /* VIEW_FILE_H */
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 968
diff changeset
70 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */