2 * prefs.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
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 along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #define GEANY_PREFS_H 1
28 /** General Preferences dialog settings. */
29 typedef struct GeanyPrefs
31 gboolean load_session
;
32 gboolean load_plugins
;
34 gboolean confirm_exit
;
35 gboolean beep_on_errors
; /* use utils_beep() instead */
36 gboolean suppress_status_messages
;
37 gboolean switch_to_status
;
39 gchar
*default_open_path
; /**< Default path to look for files when no other path is appropriate. */
40 gchar
*custom_plugin_path
;
41 gboolean save_wingeom
;
43 gint socket_remote_cmd_port
;
48 /** Tools preferences */
49 typedef struct GeanyToolPrefs
51 gchar
*browser_cmd
; /**< web browser command */
52 gchar
*term_cmd
; /**< terminal emulator command */
53 gchar
*grep_cmd
; /**< grep command */
54 gchar
*context_action_cmd
; /**< context action command */
61 extern GeanyPrefs prefs
;
63 extern GeanyToolPrefs tool_prefs
;
65 void prefs_show_dialog(void);
67 void prefs_kb_search_name(const gchar
*search
);
69 #endif /* GEANY_PRIVATE */
73 #endif /* GEANY_PREFS_H */