Merge commit 'git-svn'
[anjuta-git-plugin.git] / libanjuta / anjuta-encodings.h
blobb33cccac2b087d80310b170ea6024dfd25d35b80
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /*
3 * anjuta-encodings.h
4 * Copyright (C) 2002 Paolo Maggi
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 * Modified by the gedit Team, 2002. See the gedit AUTHORS file for a
24 * list of people on the gedit Team.
25 * See the gedit ChangeLog files for a list of changes.
28 /* Stolen from gedit - Naba */
30 #ifndef __ANJUTA_ENCODINGS_H__
31 #define __ANJUTA_ENCODINGS_H__
33 #include <glib.h>
34 #include <libanjuta/anjuta-preferences.h>
35 #include <glade/glade.h>
37 G_BEGIN_DECLS
39 typedef struct _AnjutaEncoding AnjutaEncoding;
41 const AnjutaEncoding* anjuta_encoding_get_from_charset (const gchar *charset);
42 const AnjutaEncoding* anjuta_encoding_get_from_index (gint index);
44 gchar* anjuta_encoding_to_string (const AnjutaEncoding* enc);
45 const gchar* anjuta_encoding_get_charset (const AnjutaEncoding* enc);
47 GList* anjuta_encoding_get_encodings (GList *encoding_strings);
49 void anjuta_encodings_init (AnjutaPreferences *pref, GladeXML *gxml);
51 /* Character encodings; preferences keys */
52 #define SAVE_ENCODING_ORIGINAL "save.encoding.original"
53 #define SAVE_ENCODING_CURRENT_LOCALE "save.encoding.current.locale"
54 #define SUPPORTED_ENCODINGS "supported.encodings"
56 G_END_DECLS
58 #endif /* __ANJUTA_ENCODINGS_H__ */