Update copyright years
[geany-mirror.git] / src / prefs.h
blobbe084ea28150caae91a5ffe49ed1c9036a7845e6
1 /*
2 * prefs.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_PREFS_H
23 #define GEANY_PREFS_H 1
25 #include <glib.h>
27 G_BEGIN_DECLS
29 /** General Preferences dialog settings. */
30 typedef struct GeanyPrefs
32 gboolean load_session;
33 gboolean load_plugins;
34 gboolean save_winpos;
35 gboolean confirm_exit;
36 gboolean beep_on_errors; /* use utils_beep() instead */
37 gboolean suppress_status_messages;
38 gboolean switch_to_status;
39 gboolean auto_focus;
40 gchar *default_open_path; /**< Default path to look for files when no other path is appropriate. */
41 gchar *custom_plugin_path;
42 gboolean save_wingeom;
44 GeanyPrefs;
46 /** Tools preferences */
47 typedef struct GeanyToolPrefs
49 gchar *browser_cmd; /**< web browser command */
50 gchar *term_cmd; /**< terminal emulator command */
51 gchar *grep_cmd; /**< grep command */
52 gchar *context_action_cmd; /**< context action command */
54 GeanyToolPrefs;
57 #ifdef GEANY_PRIVATE
59 extern GeanyPrefs prefs;
61 extern GeanyToolPrefs tool_prefs;
63 void prefs_show_dialog(void);
65 void prefs_kb_search_name(const gchar *search);
67 #endif /* GEANY_PRIVATE */
69 G_END_DECLS
71 #endif /* GEANY_PREFS_H */