tagging release
[dasher.git] / trunk / Src / Common / AppSettingsData.h
blobdcc413f92b1a3516b7a76c776c2b6ddd81ca2e20
1 #include "AppSettingsHeader.h"
3 // This file is an include file purely for the purposes of
4 // cross-platform consistency. IT WILL NOT LINK IF INCLUDED IN MORE
5 // THAN ONE PLACE! You probably want to obtain values via the
6 // application settings object instead.
8 #define PERS true
10 struct app_bp_table {
11 int key;
12 const char *regName;
13 bool persistent;
14 bool bDefaultValue;
15 bool value;
16 const char *humanReadable;
19 struct app_lp_table {
20 int key;
21 const char *regName;
22 bool persistent;
23 long iDefaultValue;
24 long value;
25 const char *humanReadable;
28 struct app_sp_table {
29 int key;
30 const char *regName;
31 bool persistent;
32 const char *szDefaultValue;
33 char *value;
34 const char *humanReadable;
37 // The following tables contain details of the application specific
38 // settings. Fields are:
40 // Key: See corresponding enum in AppSettingsHeader.h - entries *must*
41 // be in the same order as in the enum
42 //
43 // Registry Name: Short text, without spaces. Used as the registry key
44 // and for other 'machine readable' purposes. Please make the name
45 // indicative of the purpose of the setting.
47 // Persistence: Whether this should be persistent or set at the begining of each setting.
49 // Default value: Hopefully pretty obvious
51 // Human-readable Name: Used for help text etc. Please make sure this
52 // is useful
54 app_bp_table app_boolparamtable[] = {
55 {APP_BP_TIME_STAMP, "TimeStampNewFiles", PERS, true, true, "TimeStampNewFiles"},
56 {APP_BP_SHOW_TOOLBAR, "ViewToolbar", PERS, true, true, "ViewToolbar"},
57 {APP_BP_SHOW_TOOLBAR_TEXT, "ShowToolbarText", PERS, true, true, "ShowToolbarText"},
58 {APP_BP_SHOW_LARGE_ICONS, "ShowLargeIcons", PERS, true, true, "ShowLargeIcons"},
59 {APP_BP_FIX_LAYOUT, "FixLayout", PERS, false, false, "FixLayout"},
60 {APP_BP_COPY_ALL_ON_STOP, "CopyAllOnStop", PERS, false, false, "CopyAllOnStop"},
61 {APP_BP_WINDOW_PAUSE, "PauseOutsideWindow", PERS, false, false, "PauseOutsideWindow"},
62 {APP_BP_SPEECH_MODE, "SpeechEnabled", PERS, false, false, "SpeechEnabled"},
63 {APP_BP_KEYBOARD_MODE, "KeyboardMode", PERS, false, false, "KeyboardMode"},
64 {APP_BP_DOCK, "Dock", PERS, false, false, "Dock main window"}
67 app_lp_table app_longparamtable[] = {
68 {APP_LP_FILE_ENCODING, "FileEncodingFormat", PERS, -2, -2, "FileEncodingFormat"},
69 {APP_LP_EDIT_FONT_SIZE, "EditFontSize", PERS, 0, 0, "EditFontSize"},
70 {APP_LP_EDIT_HEIGHT, "EditHeight", PERS, 75, 75, "EditHeight0"},
71 {APP_LP_EDIT_WIDTH, "EditWidth", PERS, 200, 200, "EditWidth"},
72 {APP_LP_SCREEN_WIDTH, "ScreenWidth", PERS, 400, 400, "ScreenWidth"},
73 {APP_LP_SCREEN_HEIGHT, "ScreenHeight", PERS, 500, 500, "ScreenHeight"},
74 {APP_LP_SCREEN_WIDTH_H, "ScreenWidthH", PERS, 625, 625, "ScreenWidth"},
75 {APP_LP_SCREEN_HEIGHT_H, "ScreenHeightH", PERS, 250, 250, "ScreenHeight"},
76 {APP_LP_STYLE, "AppStyle", PERS, 0, 0, "Application style"},
77 {APP_LP_DOCK_STYLE, "DockStyle", PERS, 4, 4, "Dock Style, 0-3 = docked, 4 = floating, 5 = fullscreen"},
78 {APP_LP_DOCK_POSITION, "DockPosition", PERS, 100, 100, "Dock Position"},
79 #ifdef WITH_MAEMO
80 {APP_LP_MAEMO_SIZE, "MaemoSize", PERS, 0, 0, "Size of Maemo input window"},
81 #endif
84 app_sp_table app_stringparamtable[] = {
85 #ifdef WITH_MAEMO
86 {APP_SP_EDIT_FONT, "EditFont", PERS, "Sans 20", NULL, "EditFont"},
87 #else
88 {APP_SP_EDIT_FONT, "EditFont", PERS, "Sans 10", NULL, "EditFont"},
89 #endif
90 #ifndef DASHER_WINCE
91 {APP_SP_WINDOW_STATE, "WindowState", PERS, "", NULL, "WindowState"},
92 #endif