1 /*
2 *  Program: Rubrica
3 *  file: prefererences.h
4 *
5 *
6 *  Copyright (C) 2000-2003 Nicola Fragale <nicolafragale@libero.it>
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
11 *
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.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with this program; if not, write to the Free Software
19 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21 
22 #ifndef __RUBRICA_PREFERENCES_H
23 #define __RUBRICA_PREFERENCES_H
24 
25 #include <gtk/gtk.h>
26 
27 #include "types.h"
28 
29 void rubrica_preferences_setup_search_on   (GtkTreeView* view);
30 void rubrica_preferences_set_search_on     (GtkWidget* button, gpointer col);
31 void rubrica_preferences_setup_radio_group (GSList* group);
32 
33 
34 enum {
35   RUB_ICONS = 0,
36   RUB_TEXT,
37   RUB_BOTH,
38   RUB_GNOME
39 };
40 
41 
42 enum {
43   RUB_EPIPHANY = 0,
44   RUB_FIREFOX,
45   RUB_GALEON,
46   RUB_KONQUEROR,
47   RUB_MOZILLA,
48   RUB_SEAMONKEY,
49   RUB_OPERA,
50   RUB_OTHER_BROWSER
51 };
52 
53 enum {
54   RUB_BALSA = 0,
55   RUB_EVOLUTION,
56   RUB_MOZILLA_MAIL,
57   RUB_SEAMONKEY_MAIL,
58   RUB_THUNDERBIRD,
59   RUB_OTHER_EMAILER
60 };
61 
62 enum {
63   RUB_PIDGIN = 0,
64   RUB_GAIM,
65   RUB_GABBER,
66   RUB_GAJIM,
67   RUB_GADU,
68   RUB_GOSSIP,
69   RUB_OTHER_IRC
70 };
71 
72 
73 #define KEY_MISC                           "/apps/rubrica2"
74 #define RUBRICA_GCONF_FILE_FORMAT          KEY_MISC"/file_format"
75 #define RUBRICA_GCONF_WIDTH                KEY_MISC"/width"
76 #define RUBRICA_GCONF_HEIGHT               KEY_MISC"/heigth"
77 #define RUBRICA_GCONF_PANED_POSITION       KEY_MISC"/paned"
78 #define RUBRICA_GCONF_GRP_PANED_POSITION   KEY_MISC"/group_paned"
79 #define RUBRICA_GCONF_CRYPT                KEY_MISC"/crypt"
80 #define RUBRICA_GCONF_COPYRIGHT            KEY_MISC"/copyright"
81 
82 
83 /* file managment */
84 #define KEY_FILE                          "/apps/rubrica2/file"
85 #define RUBRICA_GCONF_FOLDER              KEY_FILE"/folder"
86 #define RUBRICA_GCONF_LOAD_FILES          KEY_FILE"/load_files"
87 #define RUBRICA_GCONF_FILES               KEY_FILE"/files"
88 #define RUBRICA_GCONF_RATE                KEY_FILE"/compression_rate"
89 #define RUBRICA_GCONF_AUTOSAVE            KEY_FILE"/autosave"
90 #define RUBRICA_GCONF_BACKUP              KEY_FILE"/make_backup"
91 
92 
93 /* columns to display */
94 #define KEY_DISPLAY                       "/apps/rubrica2/display"
95 #define RUBRICA_GCONF_PRINT_CARD          KEY_DISPLAY"/print"
96 #define RUBRICA_GCONF_CARD                KEY_DISPLAY"/card"
97 #define RUBRICA_GCONF_FIRST_NAME          KEY_DISPLAY"/first_name"
98 #define RUBRICA_GCONF_LAST_NAME           KEY_DISPLAY"/last_name"
99 #define RUBRICA_GCONF_PROFESSION          KEY_DISPLAY"/profession"
100 #define RUBRICA_GCONF_CITY                KEY_DISPLAY"/city"
101 #define RUBRICA_GCONF_COUNTRY             KEY_DISPLAY"/country"
102 #define RUBRICA_GCONF_WEB                 KEY_DISPLAY"/web"
103 #define RUBRICA_GCONF_EMAIL               KEY_DISPLAY"/email"
104 #define RUBRICA_GCONF_TELEPHONE           KEY_DISPLAY"/telephone"
105 #define RUBRICA_GCONF_COMPANY             KEY_DISPLAY"/company"
106 #define RUBRICA_GCONF_ASSIGNMENT          KEY_DISPLAY"/assignment"
107 
108 
109 /* search rules */
110 #define KEY_SEARCH                        "/apps/rubrica2/search"
111 #define RUBRICA_GCONF_SEARCH_ON           KEY_SEARCH"/performed_on"
112 
113 
114 /* appearance rules */
115 #define KEY_APPEARANCE                    "/apps/rubrica2/appearance"
116 #define RUBRICA_GCONF_TOOLBAR             KEY_APPEARANCE"/toolbar_style"
117 #define RUBRICA_GCONF_FONT                KEY_APPEARANCE"/font"
118 #define RUBRICA_GCONF_CONFIRM_EXIT        KEY_APPEARANCE"/confirm_exit"
119 
120 #define RUBRICA_GCONF_GNOME_TOOLBAR   "/desktop/gnome/interface/toolbar_style"
121 
122 
123 /* urls management */
124 #define KEY_URLS                          "/apps/rubrica2/urls_manager"
125 #define RUBRICA_GCONF_BROWSER             KEY_URLS"/browser"
126 #define RUBRICA_GCONF_EMAILS              KEY_URLS"/emailer"
127 #define RUBRICA_GCONF_IRC                 KEY_URLS"/irc"
128 #define RUBRICA_GCONF_BROWSER_UD          KEY_URLS"/browser_user_defined"
129 #define RUBRICA_GCONF_EMAILS_UD           KEY_URLS"/emailer_user_defined"
130 #define RUBRICA_GCONF_IRC_UD              KEY_URLS"/irc_user_defined"
131 #define RUBRICA_GCONF_EKIGA               KEY_URLS"/ekiga"
132 
133 
134 gint rubrica_preferences_get_gnome_default (void);
135 gint rubrica_preferences_get_toolbar_style (void);
136 void rubrica_preferences_setup_colum       (GtkTreeViewColumn* column,
137 					    gchar* key);
138 void rubrica_preferences_setup_menu_check  (GtkWidget* item, gchar* key);
139 void rubrica_preferences_run_gui           (GtkWidget* button, gpointer data);
140 
141 #endif
142