1 /* Copyright (C) 2010-2012 by Cristian Henzel <oss@rspwn.com>
2  * Copyright (C) 2011 by Eugene Nikolsky <pluton.od@gmail.com>
3  *
4  * forked from parcellite, which is
5  * Copyright (C) 2007-2008 by Xyhthyx <xyhthyx@gmail.com>
6  *
7  * This file is part of ClipIt.
8  *
9  * ClipIt is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * ClipIt is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef PREFERENCES_H
24 #define PREFERENCES_H
25 
26 G_BEGIN_DECLS
27 
28 #define INIT_HISTORY_KEY      NULL
29 #define INIT_ACTIONS_KEY      NULL
30 #define INIT_MENU_KEY         NULL
31 #define INIT_SEARCH_KEY       NULL
32 #define INIT_OFFLINE_KEY      NULL
33 
34 #define DEF_USE_COPY          TRUE
35 #define DEF_USE_PRIMARY       FALSE
36 #define DEF_SYNCHRONIZE       FALSE
37 #define DEF_AUTOMATIC_PASTE   FALSE
38 #define DEF_SHOW_INDEXES      FALSE
39 #define DEF_SAVE_URIS         TRUE
40 #define DEF_SAVE_HISTORY      TRUE
41 #define DEF_USE_RMB_MENU      FALSE
42 #define DEF_HISTORY_LIMIT     50
43 #define DEF_ITEMS_MENU        20
44 #define DEF_STATICS_SHOW      TRUE
45 #define DEF_STATICS_ITEMS     10
46 #define DEF_HYPERLINKS_ONLY   FALSE
47 #define DEF_CONFIRM_CLEAR     FALSE
48 #define DEF_SINGLE_LINE       TRUE
49 #define DEF_REVERSE_HISTORY   FALSE
50 #define DEF_ITEM_LENGTH       50
51 #define DEF_ELLIPSIZE         2
52 #define DEF_HISTORY_KEY       "<Ctrl><Alt>H"
53 #define DEF_ACTIONS_KEY       "<Ctrl><Alt>A"
54 #define DEF_MENU_KEY          "<Ctrl><Alt>P"
55 #define DEF_SEARCH_KEY        "<Ctrl><Alt>F"
56 #define DEF_OFFLINE_KEY       "<Ctrl><Alt>O"
57 #define DEF_NO_ICON           FALSE
58 #define DEF_OFFLINE_MODE      FALSE
59 
60 #define ACTIONS_FILE          "clipit/actions"
61 #define EXCLUDES_FILE         "clipit/excludes"
62 #define PREFERENCES_FILE      "clipit/clipitrc"
63 #define THEMES_FOLDER         "clipit/themes"
64 
65 #define SAVE_HIST_MESSAGE     "ClipIt can save your history in a plain text file. If you copy \
66 passwords or other sensitive data and other people have access to the computer, this might be a \
67 security risk. Do you want to enable history saving?"
68 
69 #define CHECK_HIST_MESSAGE    "It appears that you have disabled history saving, the current history \
70 file still exists though. Do you want to empty the current history file?"
71 
72 void read_preferences();
73 
74 void save_preferences();
75 
76 void show_preferences(gint tab);
77 
78 G_END_DECLS
79 
80 #endif
81