[SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 29 Dec 2017 18:09:56 +0000 (19:09 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Oct 2018 23:32:15 +0000 (01:32 +0200)
commit1f4cb0977a324859f8d4ba0e27a0a63cae8f96aa
tree580808c675e01e6f40f31ec72aeb648fcb52e245
parent765994c9e34fc60b3b4f084cae8a3af1d7ef60c4
[SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies, + other code adaptations.

- Apart from allowing a UI cache variable that may be used when
  displaying GENERIC_LIST_ENTRY-ies, do not store any display strings
  associated to these list entries. They should be instead computed only
  when initializing a list UI (or a combo-box or list control if the
  code is used in Win32 environment).
  For this matter a callback is provided to InitGenericListUi() that
  does the job of computing the displayed string corresponding to a
  given GENERIC_LIST_ENTRY.

- Simplify the calls to InitGenericListUi(), and refactor the
  RestoreGenericListUiState() function.

- Use for-loops for iterating over GENERIC_LIST items.

- Adapt the storage data format for lists of settings items.

- The txtsetup.sif INF format specified in LoadSetupInf() should not be
  INF_STYLE_WIN4 (to be investigated...).
base/setup/lib/settings.c
base/setup/lib/settings.h
base/setup/lib/setuplib.c
base/setup/lib/utils/genlist.c
base/setup/lib/utils/genlist.h
base/setup/usetup/console.c
base/setup/usetup/genlist.c
base/setup/usetup/genlist.h
base/setup/usetup/usetup.c
base/setup/usetup/usetup.h