removed references to components.sql and kanjivg
[aoi.git] / src / config.cxx
blob8f39f66c57e2f77d2d7a3d26ba69ad8523518ed5
1 /*
2 Copyright 2013 Karel Matas
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include "config.hxx"
18 #include "logger.hxx"
20 namespace aoi_config {
22 Config::Config ()
24 // DEFAULTS
25 // logging
26 data_["log/level"] = {"message",
27 "Possible values: none, message, warning, error, debug", STRING};
28 // database
29 data_["db/file_main"] = {"main.db","Name of the database file.", STRING};
30 // fonts
31 data_["font/base_size"] = {"14",
32 "Base size of the text in pixels. (Most other size is based on this value)", INT};
33 data_["font/kanji"] = {"HanaMinA",
34 "This font should cover at least ASCII and JIS X 208. "\
35 "Recommended: MS PMincho, MS Mincho (at least one MS font should be present in Windows XP and higher) or hanazono (variant HanaMinA, http://fonts.jp/hanazono/", FONT};
36 // colors
37 data_["color/foreground"] = {"0x00000000","Text color. Default: black",COLOR};
38 data_["color/background"] = {"0xbebebe00","Background color of widgets. Default: gray",COLOR};
39 data_["color/background2"] = {"0xffffff00","Alternative background color of widgets (background of fields). Default: white.",COLOR};
40 data_["color/selection"] = {"0x00008b00","Selection color: Default: dark blue",COLOR};
41 data_["color/frequent"] = {"0x0000ff00",
42 "Color of the frequent readings and kanji. Default: blue",COLOR};
43 data_["color/misc"] = {"0x0000ff00",
44 "Color of the misc data (). Default: blue",COLOR};
45 data_["color/field"] = {"0x00ff0000",
46 "Color of the field data (comp, ling, ...). Default: green",COLOR};
47 data_["color/pos"] = {"0xff000000",
48 "Color of the part-of-speech data (n,adj,exp,...). Default: red",COLOR};
50 data_["sources/url_jmdict"] = {"http://ftp.monash.edu.au/pub/nihongo/JMdict_e.gz",
51 "URL for downloading JMdict.",STRING};
52 data_["sources/url_kanjidic"] = {"http://www.csse.monash.edu.au/~jwb/kanjidic2/kanjidic2.xml.gz",
53 "URL for downloading kanjidic2.",STRING};
54 data_["sources/help_index"] = {"help/help.html",
55 "Path to help index.",STRING};
56 // internal variables
57 data_["knj/min_compo_count"] = {"10","INTERNAL. Components with count lower then this value will be not shown in component view.",INT};
58 data_["knj/jis208_only"] = {"1","INTERNAL. State of the 'JIS X 208 only checkbox.'",BOOL};
59 data_["dic/input_parser_warning"] = {"10","INTERNAL. How much kanji in andvanced search will trigger warning.",INT};
61 default_ = data_;
64 } // namespace aoi_config