2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* keyfile.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2009-01-04 18:30:42 +00:00
|
|
|
* Copyright 2005-2009 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2009 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_KEYFILE_H
|
|
|
|
#define GEANY_KEYFILE_H 1
|
|
|
|
|
|
|
|
|
2008-12-11 12:49:26 +00:00
|
|
|
extern GPtrArray *pref_groups;
|
|
|
|
|
|
|
|
|
2008-12-09 13:16:52 +00:00
|
|
|
void configuration_init(void);
|
|
|
|
|
|
|
|
void configuration_finalize(void);
|
|
|
|
|
2008-12-16 13:01:47 +00:00
|
|
|
struct GeanyPrefGroup;
|
|
|
|
|
|
|
|
void configuration_add_pref_group(struct GeanyPrefGroup *group, gboolean for_prefs_dialog);
|
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void configuration_save(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
gboolean configuration_load(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-04-29 11:30:19 +00:00
|
|
|
void configuration_open_files(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void configuration_reload_default_session(void);
|
2007-11-18 18:24:23 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void configuration_save_default_session(void);
|
2007-11-18 18:24:23 +00:00
|
|
|
|
2007-11-11 19:06:41 +00:00
|
|
|
void configuration_load_session_files(GKeyFile *config);
|
|
|
|
|
|
|
|
void configuration_save_session_files(GKeyFile *config);
|
|
|
|
|
2006-04-27 17:57:28 +00:00
|
|
|
/* set some settings which are already read from the config file, but need other things, like the
|
|
|
|
* realisation of the main window */
|
2008-02-20 11:24:23 +00:00
|
|
|
void configuration_apply_settings(void);
|
2006-08-01 21:07:46 +00:00
|
|
|
|
2006-11-04 12:49:00 +00:00
|
|
|
#ifdef GEANY_DEBUG
|
2006-08-01 21:07:46 +00:00
|
|
|
/* Generate the config files in "data/" from defaults */
|
2008-02-20 11:24:23 +00:00
|
|
|
void configuration_generate_data_files(void);
|
2006-11-04 12:49:00 +00:00
|
|
|
#endif
|
2006-04-27 17:57:28 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|