Merge pull request #3334 from eht16/show_d_python_global_class_calltips
[geany-mirror.git] / src / prefs.h
blob09b8c7ba6deb9aca57c5ae63ea434b47b2ce22a9
1 /*
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.
21 #ifndef GEANY_PREFS_H
22 #define GEANY_PREFS_H 1
24 #include <glib.h>
26 G_BEGIN_DECLS
28 /** General Preferences dialog settings. */
29 typedef struct GeanyPrefs
31 gboolean load_session;
32 gboolean load_plugins;
33 gboolean save_winpos;
34 gboolean confirm_exit;
35 gboolean beep_on_errors; /* use utils_beep() instead */
36 gboolean suppress_status_messages;
37 gboolean switch_to_status;
38 gboolean auto_focus;
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;
42 #ifdef G_OS_WIN32
43 gint socket_remote_cmd_port;
44 #endif
46 GeanyPrefs;
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 */
56 GeanyToolPrefs;
59 #ifdef GEANY_PRIVATE
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 */
71 G_END_DECLS
73 #endif /* GEANY_PREFS_H */