summaryrefslogtreecommitdiff
path: root/src/table/settings.h.preamble
AgeCommit message (Collapse)Author
2021-05-29Codechange: use separate pre and post callbacks for int settingsrubidium42
2021-05-29Codechange: use separate pre and post callbacks for string settingsrubidium42
2021-05-27Codechange: remove SettingDescType in lieu of the actual classesrubidium42
2021-05-27Codechange: let OneOfMany and ManyOfMany be their own classes as wellrubidium42
2021-05-27Codechange: make BoolSettingDesc its own sub classrubidium42
2021-05-27Codechange: make sub classes of SettingDesc for the different types of settingsrubidium42
2021-05-27Codechange: make SettingDesc an instance in the setting table to allow for ↵rubidium42
sub classes
2021-05-27Codechange: use initializer_lists for the settings tablesrubidium42
Not using vectors as those require copying from the initializer list and that makes unique_ptrs to the actual SettingDesc objects later impossible.
2021-05-27Cleanup: remove and/or fix some confusing commentsrubidium42
The comments for SettingDescType; it is a byte, so not 4 bytes and since it is not a flag there are about 250 other possibilities left instead of 9. SettingGuiFlag is uint16 so has 2 bytes allocated. SettingDescGlobVarList and related comments imply that global vars cannot be used elsewhere, but they are used for settings just fine. Even then the type is not used anywhere else but the definition of the table.
2021-05-13Codechange: clean up C-string support from settingsrubidium42
2021-05-13Codechange: move locale settings to std::stringrubidium42
2021-05-13Codechange: move client name in settings to std::stringrubidium42
2021-05-13Codechange: move passwords in settings to std::stringrubidium42
2021-04-27Feature: allow non-ASCII currency separatorsrubidium42
2021-02-17Codechange: Allow early-load settings that are not misc settings.Michael Lutz
2021-02-13Codechange: Don't use cpp_offsetof in the save/load code.Michael Lutz
Many of the member variables that are used in save/load are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function. Unfortunately, the trickery employed for saving linkgraph settings causes quite some clutter in the settings ini files.
2020-06-05Cleanup: Add note explaining how settings.h is generated from source.TechGeekNZ
2020-06-05Cleanup: Fix typo in settings.h.preamble.TechGeekNZ
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-29Codechange: Set size of SettingGuiFlag & SettingDescType enums, and use them ↵Charles Pigott
properly
2019-04-11Codechange: NULL -> nullptr in settings files.peter1138
2018-06-27Codechange: lengthof is not defined for runtime-length strings, use sizeof ↵Charles Pigott
instead
2013-02-14(svn r24991) -Doc: Clarify comments regarding settings macros.matthijs
2012-11-08(svn r24671) -Feature [FS#5355]: Add basic/advanced/expert filters to adv. ↵frosch
settings GUI. (Eagle_rainbow)
2012-05-12(svn r24234) -Add: Add help-string infrastructure to the ini filesalberth
2011-05-29(svn r22522) -Fix (r22489): (size_t)(uint32)(-1) != (size_t)-1frosch
2011-03-06(svn r22210) -Add: Add a variable for the value strings in the settings tables.alberth
2011-03-06(svn r22209) -Codechange: Move function declarations from ↵alberth
settings.h.preamble to the ini file that uses it.
2011-03-05(svn r22202) -Codechange: make MusicFileSettings a proper citizen of the ↵rubidium
client settings
2011-03-05(svn r22199) -Cleanup-ish: replace the shortcut macros for (gui)flags with ↵rubidium
their more clearly named (longer) constant names
2011-03-05(svn r22198) -Codechange: make some constants name more explicitrubidium
2011-03-05(svn r22197) -Cleanup: remove the distinction between conditional and ↵rubidium
non-conditional settings; with default from and to savegame versions all can be conditional. They previously were as well; the non-conditional ones were macros of the conditionals with to/from saveload versions hardcoded
2011-03-03(svn r22173) -Add: Add preamble and postamble files before and after the ↵alberth
generated settings data.