Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 105 lines (70 sloc) 3.896 kB
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
1 /*
d80bc7c @b4n Update FSF address
b4n authored
2 * stash.h - this file is part of Geany, a fast and lightweight IDE
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
3 *
d80bc7c @b4n Update FSF address
b4n authored
4 * Copyright 2008-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
5 * Copyright 2008-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
6 *
d80bc7c @b4n Update FSF address
b4n authored
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.
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
11 *
d80bc7c @b4n Update FSF address
b4n authored
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.
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
16 *
d80bc7c @b4n Update FSF address
b4n authored
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.
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
20 */
21
22 #ifndef GEANY_STASH_H
23 #define GEANY_STASH_H
24
51dc2e9 @codebrainz Support plugins written in C++
codebrainz authored
25 G_BEGIN_DECLS
26
aa872a4 @ntrel Add doc-comments for Stash setting functions.
ntrel authored
27 /** Opaque type for a group of settings. */
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
28 typedef struct StashGroup StashGroup;
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
29
a8bc1cb @ntrel Add Stash widget functions to API.
ntrel authored
30 /** Can be @c GtkWidget* or @c gchar* depending on whether the @a owner argument is used for
aa872a4 @ntrel Add doc-comments for Stash setting functions.
ntrel authored
31 * stash_group_display() and stash_group_update(). */
83527f7 @b4n Make StashWidgetID map to gconstpointer rather than gpointer
b4n authored
32 typedef gconstpointer StashWidgetID;
e270ab7 @ntrel Use typedef instead of pointer for widget_id function arguments.
ntrel authored
33
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
34
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
35 StashGroup *stash_group_new(const gchar *name);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
36
44e5687 @b4n Allow editing of formerly hidden preferences in the preferences dialog
b4n authored
37 void stash_group_set_various(StashGroup *group, gboolean write_once);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
38
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
39 void stash_group_set_use_defaults(StashGroup *group, gboolean use_defaults);
f0d2f92 @ntrel Add Project Indentation prefs, which override the Editor
ntrel authored
40
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
41 void stash_group_add_boolean(StashGroup *group, gboolean *setting,
f40aede @ntrel Fix indentation.
ntrel authored
42 const gchar *key_name, gboolean default_value);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
43
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
44 void stash_group_add_integer(StashGroup *group, gint *setting,
f40aede @ntrel Fix indentation.
ntrel authored
45 const gchar *key_name, gint default_value);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
46
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
47 void stash_group_add_string(StashGroup *group, gchar **setting,
f40aede @ntrel Fix indentation.
ntrel authored
48 const gchar *key_name, const gchar *default_value);
a699252 @ntrel Add foreach_ptr_array() macro to utils.h.
ntrel authored
49
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
50 void stash_group_add_string_vector(StashGroup *group, gchar ***setting,
0f575ea @ntrel Don't forget active plugins after disabling plugin support.
ntrel authored
51 const gchar *key_name, const gchar **default_value);
52
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
53 void stash_group_load_from_key_file(StashGroup *group, GKeyFile *keyfile);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
54
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
55 void stash_group_save_to_key_file(StashGroup *group, GKeyFile *keyfile);
5c5dfe9 @ntrel Move Stash data types to stash.c, so Stash functions could be used
ntrel authored
56
90acc27 @ntrel Add Stash setting functions to API.
ntrel authored
57 gboolean stash_group_load_from_file(StashGroup *group, const gchar *filename);
809a37d @ntrel Add stash_group_load_from_file() and stash_group_save_to_file().
ntrel authored
58
59 gint stash_group_save_to_file(StashGroup *group, const gchar *filename,
60 GKeyFileFlags flags);
61
f2d33bc @zhekov Add stash_group_free_settings() function to API
zhekov authored
62 void stash_group_free_settings(StashGroup *group);
63
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
64 void stash_group_free(StashGroup *group);
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
65
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
66
67 /* *** GTK-related functions *** */
68
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
69 void stash_group_add_toggle_button(StashGroup *group, gboolean *setting,
70 const gchar *key_name, gboolean default_value, StashWidgetID widget_id);
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
71
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
72 void stash_group_add_radio_buttons(StashGroup *group, gint *setting,
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
73 const gchar *key_name, gint default_value,
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
74 StashWidgetID widget_id, gint enum_id, ...) G_GNUC_NULL_TERMINATED;
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
75
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
76 void stash_group_add_spin_button_integer(StashGroup *group, gint *setting,
77 const gchar *key_name, gint default_value, StashWidgetID widget_id);
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
78
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
79 void stash_group_add_combo_box(StashGroup *group, gint *setting,
80 const gchar *key_name, gint default_value, StashWidgetID widget_id);
df5b4d8 @ntrel Remove remaining PrefEntry code, use Stash instead.
ntrel authored
81
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
82 void stash_group_add_combo_box_entry(StashGroup *group, gchar **setting,
83 const gchar *key_name, const gchar *default_value, StashWidgetID widget_id);
c56f0c4 @ntrel Add stash_group_add_combo_box_entry(), stash_group_add_entry().
ntrel authored
84
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
85 void stash_group_add_entry(StashGroup *group, gchar **setting,
86 const gchar *key_name, const gchar *default_value, StashWidgetID widget_id);
c56f0c4 @ntrel Add stash_group_add_combo_box_entry(), stash_group_add_entry().
ntrel authored
87
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
88 void stash_group_add_widget_property(StashGroup *group, gpointer setting,
89 const gchar *key_name, gpointer default_value, StashWidgetID widget_id,
20c66a6 @ntrel Add stash_group_add_widget_property() so we can save any widget's
ntrel authored
90 const gchar *property_name, GType type);
91
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
92 void stash_group_display(StashGroup *group, GtkWidget *owner);
0f575ea @ntrel Don't forget active plugins after disabling plugin support.
ntrel authored
93
201b595 @ntrel Rename Stash data types to be independently named from Geany (so
ntrel authored
94 void stash_group_update(StashGroup *group, GtkWidget *owner);
0f575ea @ntrel Don't forget active plugins after disabling plugin support.
ntrel authored
95
44e5687 @b4n Allow editing of formerly hidden preferences in the preferences dialog
b4n authored
96 void stash_tree_setup(GPtrArray *group_array, GtkTreeView *tree);
97
cf88abf @ntrel Speed up & simplify stash tree display/update
ntrel authored
98 void stash_tree_display(GtkTreeView *tree);
4d3959a @ntrel Fix making various prefs tree sync with data values when showing
ntrel authored
99
cf88abf @ntrel Speed up & simplify stash tree display/update
ntrel authored
100 void stash_tree_update(GtkTreeView *tree);
44e5687 @b4n Allow editing of formerly hidden preferences in the preferences dialog
b4n authored
101
51dc2e9 @codebrainz Support plugins written in C++
codebrainz authored
102 G_END_DECLS
103
4bbdf80 @ntrel Add foreach_c_array() macro in utils.h.
ntrel authored
104 #endif
Something went wrong with that request. Please try again.