1 /*
2  * This is a plug-in for GIMP.
3  *
4  * Generates clickable image maps.
5  *
6  * Copyright (C) 1998-2005 Maurits Rijk  m.rijk@chello.nl
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef _IMAP_PREFERENCES_H
24 #define _IMAP_PREFERENCES_H
25 
26 #include "imap_default_dialog.h"
27 
28 typedef struct {
29    GdkColor normal_fg;
30    GdkColor normal_bg;
31    GdkColor selected_fg;
32    GdkColor selected_bg;
33    GdkColor interactive_bg;
34    GdkColor interactive_fg;
35 } ColorSelData_t;
36 
37 typedef struct {
38    gint                 default_map_type;
39    gboolean             prompt_for_area_info;
40    gboolean             require_default_url;
41    gboolean             show_area_handle;
42    gboolean             keep_circles_round;
43    gboolean             show_url_tip;
44    gboolean             use_doublesized;
45    gboolean             auto_convert;
46    gdouble              threshold;
47    gint                 undo_levels;
48    gint                 mru_size;
49    ColorSelData_t       colors;
50 } PreferencesData_t;
51 
52 void do_preferences_dialog(void);
53 gboolean preferences_load(PreferencesData_t *data);
54 void preferences_save(PreferencesData_t *data);
55 
56 #endif /* _IMAP_PREFERENCES_H */
57