Mercurial > geeqie.yaz
annotate src/filefilter.h @ 1248:f3cb10d0ad0d
French translation was updated.
author | zas_ |
---|---|
date | Sat, 24 Jan 2009 07:36:21 +0000 |
parents | 254b09942e68 |
children | 8b89e3ff286b |
rev | line source |
---|---|
586 | 1 /* |
2 * Geeqie | |
3 * (C) 2004 John Ellis | |
4 * Copyright (C) 2008 The Geeqie Team | |
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 | |
14 #ifndef FILEFILTER_H | |
15 #define FILEFILTER_H | |
16 | |
17 | |
18 typedef struct _FilterEntry FilterEntry; | |
19 struct _FilterEntry { | |
20 gchar *key; | |
21 gchar *description; | |
22 gchar *extensions; | |
23 FileFormatClass file_class; | |
736 | 24 gboolean enabled; |
1239
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
25 gboolean writable; |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
26 gboolean allow_sidecar; |
586 | 27 }; |
28 | |
29 /* you can change, but not add or remove entries from the returned list */ | |
30 GList *filter_get_list(void); | |
31 void filter_remove_entry(FilterEntry *fe); | |
32 | |
1239
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
33 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
34 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gint enabled); |
586 | 35 void filter_add_defaults(void); |
36 void filter_reset(void); | |
37 void filter_rebuild(void); | |
38 GList *filter_to_list(const gchar *extensions); | |
39 | |
1239
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
40 gboolean filter_name_exists(const gchar *name); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
41 gboolean filter_file_class(const gchar *name, FileFormatClass file_class); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
42 gboolean filter_name_is_writable(const gchar *name); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
43 gboolean filter_name_allow_sidecar(const gchar *name); |
586 | 44 |
45 void filter_write_list(SecureSaveInfo *ssi); | |
46 void filter_parse(const gchar *text); | |
47 | |
1190
a4ea0c74a6e2
File filters cleanup: add .pef .dng and .arw extensions to default sidecar extensions list, add .k25 in Kodak raw extensions, simplify and optimize sidecar_ext_parse().
zas_
parents:
1055
diff
changeset
|
48 void sidecar_ext_parse(const gchar *text, gboolean quoted); |
609
b690cecbf5b8
Use function(void) instead of function() for declaring functions which
zas_
parents:
586
diff
changeset
|
49 gchar *sidecar_ext_to_string(void); |
586 | 50 GList *sidecar_ext_get_list(void); |
51 | |
52 gint ishidden(const gchar *name); | |
53 | |
54 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
736
diff
changeset
|
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |