Changeset 137 for trunk/settings
- Timestamp:
- Sep 20, 2021, 6:48:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/settings/thth_settings.h
r50 r137 77 77 public: 78 78 ththSettingsEntryFlag (ID id, PSZ pszGroup, PSZ pszKey, BOOL f) 79 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG) { 80 fDefault = f; Reset (); } 79 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG), fDefault (f) 80 { 81 Reset (); 82 } 81 83 82 84 ththSettingsEntryFlag (ID id, PSZ pszGroup, PSZ pszKey, BOOL f, HINI hini) 83 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG) { 84 fDefault = f; Load (hini); } 85 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_FLAG), fDefault (f) 86 { 87 Load (hini); 88 } 85 89 86 90 VOID Set (BOOL f) { this->f = f; } 87 91 BOOL Query (VOID) { return f; } 88 VOID Reset (VOID) { f = fDefault; } 92 VOID Reset (VOID) { f = fDefault; } 89 93 90 94 VOID Load (HINI hini) … … 120 124 public: 121 125 ththSettingsEntryLong (ID id, PSZ pszGroup, PSZ pszKey, LONG l) 122 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG) { 123 lDefault = l; Reset (); } 126 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG), lDefault (l) 127 { 128 Reset (); 129 } 124 130 125 131 ththSettingsEntryLong (ID id, PSZ pszGroup, PSZ pszKey, LONG l, HINI hini) 126 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG) { 127 lDefault = l; Load (hini); } 132 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_LONG), lDefault (l) 133 { 134 Load (hini); 135 } 128 136 129 137 VOID Set (LONG l) { this->l = l; } … … 163 171 public: 164 172 ththSettingsEntryString (ID id, PSZ pszGroup, PSZ pszKey, PSZ psz) 165 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING) { 166 pszDefault = psz; Reset (); } 173 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING), pszDefault(psz) 174 { 175 Reset (); 176 } 167 177 168 178 ththSettingsEntryString (ID id, PSZ pszGroup, PSZ pszKey, PSZ psz, HINI hini) 169 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING) { 170 pszDefault = psz; Load (hini); } 179 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_STRING), pszDefault(psz) 180 { 181 Load (hini); 182 } 171 183 172 184 VOID Set (PSZ psz) … … 218 230 public: 219 231 ththSettingsEntryBinary (ID id, PSZ pszGroup, PSZ pszKey, PVOID pv, size_t size) 220 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY) { 221 pvDefault = pv; this->sizeDefault = size; Reset (); } 232 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY), pvDefault (pv) 233 { 234 this->sizeDefault = size; Reset (); 235 } 222 236 223 237 ththSettingsEntryBinary (ID id, PSZ pszGroup, PSZ pszKey, PVOID pv, size_t size, HINI hini) 224 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY) { 225 pvDefault = pv; this->sizeDefault = size; Load (hini); } 238 : ththSettingsEntry (id, pszGroup, pszKey, ththSettingsEntry::SET_BINARY), pvDefault (pv) 239 { 240 this->sizeDefault = size; Load (hini); 241 } 226 242 227 243 VOID Set (PVOID pv, size_t size)
Note:
See TracChangeset
for help on using the changeset viewer.