Debian Codegraph @

code/global/ProfileKeys.h

raw
1 /*
2 Copyright (C) 2009-2013 wxLauncher Team
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
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.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef PROFILE_KEYS_H
20 #define PROFILE_KEYS_H
21
22 #include <wx/stdpaths.h>
23 #include <wx/string.h>
24
25 /** \defgroup Storage Storage locations */
26 /** @{*/
27 inline const wxString GetProfileStorageFolder() { return wxStandardPaths::Get().GetUserDataDir(); }
28 /** @}*/
29
30 /** \defgroup Internal Store location */
31 /** @{ */
32 #define INT_CONFIG_FILE_LOCATION _T("/wxlauncher/configlocation") //!< string
33 /** @} */
34
35 /** \defgroup globalkeys Keys used in global config file */
36 /** @{*/
37 extern const wxString GBL_CFG_MAIN_AUTOSAVEPROFILES; //!< bool
38 extern const wxString GBL_CFG_MAIN_LASTPROFILE; //!< string, internal profile name
39
40 extern const wxString GBL_CFG_PROXY_TYPE; //!< string
41 extern const wxString GBL_CFG_PROXY_SERVER; //!< string
42 extern const wxString GBL_CFG_PROXY_PORT; //!< int
43
44 extern const wxString GBL_CFG_NET_FOLDER; //!< string (folder name)
45 extern const wxString GBL_CFG_NET_DOWNLOAD_NEWS; //!< bool, true means autodownload
46 extern const wxString NEWS_LAST_TIME_FORMAT;
47 // these two are entries relative to news source folders, not absolute paths
48 extern const wxString GBL_CFG_NET_NEWS_LAST_TIME; //!< string, formated time as NEWS_LAST_TIME_FORMAT
49 extern const wxString GBL_CFG_NET_THE_NEWS; //!< string, the formatted text (workin' for a livin'!)
50
51 extern const wxString GBL_CFG_OPT_CONFIG_FRED; //!< bool, true means show the user the FRED button and allow user to select FRED executable
52 /** @}*/
53
54 /** \defgroup profilekeys Keys used in profiles */
55 /** @{*/
56 extern const wxString PRO_CFG_MAIN_NAME; //!< string, name of profile
57 extern const wxString PRO_CFG_MAIN_FILENAME; //!< string, full path to profile
58 extern const wxString PRO_CFG_MAIN_INITIALIZED; //!< bool, indicates whether profile has been saved with initial GUI values
59
60 extern const wxString PRO_CFG_TC_ROOT_FOLDER; //!< string, absolute path
61 extern const wxString PRO_CFG_TC_CURRENT_BINARY; //!< string, binary name
62 extern const wxString PRO_CFG_TC_CURRENT_MODLINE; //!< string, the entire line that should follow -mod
63 extern const wxString PRO_CFG_TC_CURRENT_MOD; //!< string, the mod shortname (for modlist)
64 extern const wxString PRO_CFG_TC_CURRENT_FLAG_LINE; //!< string, the flags that we as the modline to to make the cmdline
65 extern const wxString PRO_CFG_TC_CURRENT_FRED; //!< string, FRED binary's name
66
67 extern const wxString PRO_CFG_VIDEO_RESOLUTION_WIDTH; //!< int
68 extern const wxString PRO_CFG_VIDEO_RESOLUTION_HEIGHT; //!< int
69 extern const wxString CFG_RES_FORMAT_STRING;
70 extern const wxString PRO_CFG_VIDEO_BIT_DEPTH; //!< int
71 extern const wxString PRO_CFG_VIDEO_ANISOTROPIC; //!< int
72 extern const wxString PRO_CFG_VIDEO_ANTI_ALIAS; //!< int
73 extern const wxString PRO_CFG_VIDEO_TEXTURE_FILTER; //!< string
74
75 extern const wxString PRO_CFG_LIGHTING_PRESET; //!< string
76
77 extern const wxString PRO_CFG_SPEECH_VOICE; //!< int, same as what the current engine uses
78 extern const wxString PRO_CFG_SPEECH_VOLUME; //!< int
79 extern const wxString PRO_CFG_SPEECH_IN_TECHROOM; //!< bool
80 extern const wxString PRO_CFG_SPEECH_IN_BRIEFINGS; //!< bool
81 extern const wxString PRO_CFG_SPEECH_IN_GAME; //!< bool
82 extern const wxString PRO_CFG_SPEECH_IN_MULTI; //!< bool
83
84 extern const wxString PRO_CFG_NETWORK_TYPE; //!< string
85 extern const wxString PRO_CFG_NETWORK_SPEED; //!< string
86 extern const wxString PRO_CFG_NETWORK_PORT; //!< int
87 extern const wxString PRO_CFG_NETWORK_IP; //!< string
88
89 extern const wxString PRO_CFG_OPENAL_DEVICE; //!< string
90 extern const wxString PRO_CFG_OPENAL_CAPTURE_DEVICE; //!< string
91 extern const wxString PRO_CFG_OPENAL_EFX; //!< bool
92 extern const wxString PRO_CFG_OPENAL_SAMPLE_RATE; //!< int
93
94 extern const wxString PRO_CFG_JOYSTICK_ID; //!< int
95 extern const wxString PRO_CFG_JOYSTICK_FORCE_FEEDBACK; //!< bool
96 extern const wxString PRO_CFG_JOYSTICK_DIRECTIONAL; //!< bool
97 /** @}*/
98
99 #endif