annotate src/filefilter.h @ 1768:a22c42d36e2e

German translation update
author mow
date Tue, 13 Oct 2009 21:49:42 +0000
parents 0061979f7f6d
children 956aab097ea7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
1 /*
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
2 * Geeqie
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
3 * (C) 2004 John Ellis
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1239
diff changeset
4 * Copyright (C) 2008 - 2009 The Geeqie Team
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
5 *
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
6 * Author: John Ellis
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
7 *
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
9 * Please read the included file COPYING for more information.
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
11 */
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
12
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
13
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
14 #ifndef FILEFILTER_H
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
15 #define FILEFILTER_H
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
16
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
17
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
18 typedef struct _FilterEntry FilterEntry;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
19 struct _FilterEntry {
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
20 gchar *key;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
21 gchar *description;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
22 gchar *extensions;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
23 FileFormatClass file_class;
736
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 609
diff changeset
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
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
27 };
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
28
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
29 /* you can change, but not add or remove entries from the returned list */
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
30 GList *filter_get_list(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
31 void filter_remove_entry(FilterEntry *fe);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
32
1424
0061979f7f6d Use gboolean where applicable.
zas_
parents: 1423
diff changeset
33 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
0061979f7f6d Use gboolean where applicable.
zas_
parents: 1423
diff changeset
34 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
35 void filter_add_defaults(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
36 void filter_reset(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
37 void filter_rebuild(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
38 GList *filter_to_list(const gchar *extensions);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
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
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
44
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
45 void filter_write_list(GString *outstr, gint indent);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
46 void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
47
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
48
1327
15208b140481 quoted_value is no longer needed
nadvornik
parents: 1309
diff changeset
49 void sidecar_ext_parse(const gchar *text);
609
b690cecbf5b8 Use function(void) instead of function() for declaring functions which
zas_
parents: 586
diff changeset
50 gchar *sidecar_ext_to_string(void);
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
51 GList *sidecar_ext_get_list(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
52
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
53 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 736
diff changeset
54 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */