Mercurial > geeqie
annotate src/filedata.h @ 636:2ea7af1fbfe0
Make vf_pop_menu_toggle_view_type_cb() independent of FILEVIEW_LIST/FILEVIEW_ICON real values.
author | zas_ |
---|---|
date | Sun, 11 May 2008 23:56:40 +0000 |
parents | f8c93e1d728d |
children | f73df252aa05 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 | |
586 | 14 #ifndef FILEDATA_H |
15 #define FILEDATA_H | |
9 | 16 |
17 gchar *text_from_size(gint64 size); | |
18 gchar *text_from_size_abrev(gint64 size); | |
19 const gchar *text_from_time(time_t t); | |
20 | |
21 /* this expects a utf-8 path */ | |
138 | 22 FileData *file_data_new_simple(const gchar *path_utf8); |
145
8be2cc687304
fixed grouping sidecar files and made it configurable via config file
nadvornik
parents:
143
diff
changeset
|
23 |
138 | 24 FileData *file_data_ref(FileData *fd); |
25 void file_data_unref(FileData *fd); | |
9 | 26 |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
139
diff
changeset
|
27 gboolean file_data_add_change_info(FileData *fd, FileDataChangeType type, const gchar *src, const gchar *dest); |
138 | 28 void file_data_change_info_free(FileDataChangeInfo *fdci, FileData *fd); |
29 | |
30 gint filelist_sort_compare_filedata(FileData *fa, FileData *fb); | |
167 | 31 gint filelist_sort_compare_filedata_full(FileData *fa, FileData *fb, SortType method, gint ascend); |
9 | 32 GList *filelist_sort(GList *list, SortType method, gint ascend); |
33 GList *filelist_insert_sort(GList *list, FileData *fd, SortType method, gint ascend); | |
138 | 34 GList *filelist_sort_full(GList *list, SortType method, gint ascend, GCompareFunc cb); |
35 GList *filelist_insert_sort_full(GList *list, void *data, SortType method, gint ascend, GCompareFunc cb); | |
9 | 36 |
37 gint filelist_read(const gchar *path, GList **files, GList **dirs); | |
138 | 38 gint filelist_read_lstat(const gchar *path, GList **files, GList **dirs); |
9 | 39 void filelist_free(GList *list); |
138 | 40 GList *filelist_copy(GList *list); |
41 GList *filelist_from_path_list(GList *list); | |
42 GList *filelist_to_path_list(GList *list); | |
43 | |
44 GList *filelist_filter(GList *list, gint is_dir_list); | |
45 | |
46 GList *filelist_sort_path(GList *list); | |
47 GList *filelist_recursive(const gchar *path); | |
9 | 48 |
590 | 49 gchar *file_data_sc_list_to_string(FileData *fd); |
50 gboolean file_data_add_ci(FileData *fd, FileDataChangeType type, const gchar *src, const gchar *dest); | |
51 gboolean file_data_sc_add_ci_copy(FileData *fd, gchar *dest_path); | |
52 gboolean file_data_sc_add_ci_move(FileData *fd, gchar *dest_path); | |
53 gboolean file_data_sc_add_ci_rename(FileData *fd, gchar *dest_path); | |
54 gboolean file_data_sc_add_ci_delete(FileData *fd); | |
55 gboolean file_data_sc_add_ci_update(FileData *fd); | |
56 gint file_data_sc_update_ci_copy(FileData *fd, gchar *dest_path); | |
57 gint file_data_sc_update_ci_move(FileData *fd, gchar *dest_path); | |
58 gint file_data_sc_update_ci_rename(FileData *fd, gchar *dest_path); | |
59 gint file_data_sc_check_ci_dest(FileData *fd); | |
60 gboolean file_data_sc_perform_ci(FileData *fd); | |
61 gint file_data_sc_apply_ci(FileData *fd); | |
62 | |
9 | 63 #endif |