2
2
* prefs.h - this file is part of Geany, a fast and lightweight IDE
4
* Copyright 2005 Enrico Troeger <enrico.troeger@uvena.de>
4
* Copyright 2005-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
* Copyright 2006-2008 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
6
7
* This program is free software; you can redistribute it and/or modify
7
8
* it under the terms of the GNU General Public License as published by
23
24
#ifndef GEANY_PREFS_H
24
25
#define GEANY_PREFS_H 1
27
/* Preferences dialog settings.
28
* (See also EditorPrefs in editor.h and PrintingPrefs in printing.h).
29
* Remember to increment abi_version in plugindata.h when changing items. */
30
typedef struct GeanyPrefs
33
gboolean load_session;
34
gboolean load_plugins;
36
gboolean confirm_exit;
37
gboolean beep_on_errors;
38
gboolean suppress_search_dialogs;
39
gboolean search_use_current_word;
40
gboolean suppress_status_messages;
41
gboolean switch_msgwin_pages;
43
gchar *default_open_path;
46
gboolean sidebar_symbol_visible;
47
gboolean sidebar_openfiles_visible;
48
gboolean sidebar_openfiles_fullpath;
52
gboolean show_notebook_tabs;
56
gboolean statusbar_visible;
57
gboolean show_symbol_list_expanders;
60
gboolean toolbar_visible;
61
gboolean toolbar_show_search;
62
gboolean toolbar_show_goto;
63
gboolean toolbar_show_undo;
64
gboolean toolbar_show_navigation;
65
gboolean toolbar_show_compile;
66
gboolean toolbar_show_zoom;
67
gboolean toolbar_show_indent;
68
gboolean toolbar_show_colour;
69
gboolean toolbar_show_fileops;
70
gboolean toolbar_show_quit;
71
GtkIconSize toolbar_icon_size;
72
gint toolbar_icon_style;
75
gint default_new_encoding;
76
gint default_open_encoding;
77
gboolean final_new_line;
78
gboolean strip_trailing_spaces;
79
gboolean replace_tabs;
80
gboolean tab_order_ltr;
81
gboolean show_tab_cross;
85
gchar *tools_browser_cmd;
86
gchar *tools_make_cmd;
87
gchar *tools_term_cmd;
88
gchar *tools_grep_cmd;
89
gchar *context_action_cmd;
92
gchar *template_developer;
93
gchar *template_company;
95
gchar *template_initial;
96
gchar *template_version;
100
extern GeanyPrefs prefs;
26
103
void prefs_init_dialog(void);
28
void on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_data);
30
gboolean on_prefs_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data);
105
void prefs_show_dialog(void);
32
107
void on_prefs_font_choosed(GtkFontButton *widget, gpointer user_data);
34
109
void on_prefs_color_choosed(GtkColorButton *widget, gpointer user_data);
36
void on_pref_toolbar_show_toggled(GtkToggleButton *togglebutton, gpointer user_data);
38
void dialogs_show_prefs_dialog(void);
111
void on_prefs_tools_button_clicked(GtkButton *button, gpointer user_data);