[SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 30 Aug 2017 11:28:52 +0000 (11:28 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Oct 2018 22:13:07 +0000 (00:13 +0200)
commite405ad257c0611d115f3fa7d82c9ca6cf00e6f75
tree06f4be361a25ba4cc9d341e3b1e3996224d1fb62
parente4d79e514a43fa9ef3b5c92c8d9f0eba307c8706
[SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib.

[SETUPLIB] Copy the mui* files from usetup into the setuplib for later usage, and add mui.c to build.

svn path=/branches/setup_improvements/; revision=75711

[SETUPLIB][USETUP] Start massaging the MUI files and split up what concerns only the usetup "resources",
and what concerns general language parameters (in the setuplib).

It may be interesting to retrieve the language parameters
from INF file (e.g. intl.inf) (suggested by Giannis).

svn path=/branches/setup_improvements/; revision=75715

[SETUPLIB] Add the necessary headers to mui.c to be able to compile.
[USETUP] Comment out the languages that don't have any resources.

svn path=/branches/setup_improvements/; revision=75716

[SETUPLIB][USETUP] Adjust MUI and settings code.

- Re-enable settings code concerning language, keyboards & layout
  in the setuplib, and remove the old code in usetup.

- Remove useless code in setuplib's mui.c.

- Rename usetup's MUI "LanguageList" into "ResourceList" so as to
  avoid colliding with the "LanguageList" of setuplib.

- Add the magic CMakeLists line "add_definitions(${I18N_DEFS})" that
  I forgot previously, that caused the "LanguageList" of setuplib to be empty!

The code compiles and works during my tests.

svn path=/branches/setup_improvements/; revision=75717

[SETUPLIB] Change some string pointer types & function prototypes so that the usetup-specific
"SelectedLanguageId" variable is not used in the library.

svn path=/branches/setup_improvements/; revision=75719

[SETUPLIB] Change some function prototypes so that the usetup-specific "SelectedLanguageId" variable is not used in the library.
Also, make AddEntriesFromInfSection(), DefaultProcessEntry() and the typedef PPROCESS_ENTRY_ROUTINE private again.

svn path=/branches/setup_improvements/; revision=75720
svn path=/branches/setup_improvements/; revision=75724

[USETUP] Code adaptations.

- Transform some do{}while() loops into while(){} ones, since the lists on which we work may only contain one single {NULL} element.
- Modify MUIGetOEMCodePage() call after r75719.
- Use PCWSTR where needed.

svn path=/branches/setup_improvements/; revision=75722

[USETUP] Adjust some MUI & settings calls, following the commits r75719, r75720 and r75721.

svn path=/branches/setup_improvements/; revision=75723

[INPUT.CPL] Adjust inclusion of "muifonts.h" (commit 3dbd44f) due to changes introduced in r75711 and r75715.
178 files changed:
base/setup/lib/CMakeLists.txt
base/setup/lib/lang/af-ZA.h [moved from base/setup/usetup/lang/af-ZA.h with 100% similarity]
base/setup/lib/lang/ar-AE.h [moved from base/setup/usetup/lang/ar-AE.h with 100% similarity]
base/setup/lib/lang/ar-BH.h [moved from base/setup/usetup/lang/ar-BH.h with 100% similarity]
base/setup/lib/lang/ar-DZ.h [moved from base/setup/usetup/lang/ar-DZ.h with 100% similarity]
base/setup/lib/lang/ar-EG.h [moved from base/setup/usetup/lang/ar-EG.h with 100% similarity]
base/setup/lib/lang/ar-IQ.h [moved from base/setup/usetup/lang/ar-IQ.h with 100% similarity]
base/setup/lib/lang/ar-JO.h [moved from base/setup/usetup/lang/ar-JO.h with 100% similarity]
base/setup/lib/lang/ar-KW.h [moved from base/setup/usetup/lang/ar-KW.h with 100% similarity]
base/setup/lib/lang/ar-LB.h [moved from base/setup/usetup/lang/ar-LB.h with 100% similarity]
base/setup/lib/lang/ar-LY.h [moved from base/setup/usetup/lang/ar-LY.h with 100% similarity]
base/setup/lib/lang/ar-MA.h [moved from base/setup/usetup/lang/ar-MA.h with 100% similarity]
base/setup/lib/lang/ar-OM.h [moved from base/setup/usetup/lang/ar-OM.h with 100% similarity]
base/setup/lib/lang/ar-QA.h [moved from base/setup/usetup/lang/ar-QA.h with 100% similarity]
base/setup/lib/lang/ar-SA.h [moved from base/setup/usetup/lang/ar-SA.h with 100% similarity]
base/setup/lib/lang/ar-SY.h [moved from base/setup/usetup/lang/ar-SY.h with 100% similarity]
base/setup/lib/lang/ar-TN.h [moved from base/setup/usetup/lang/ar-TN.h with 100% similarity]
base/setup/lib/lang/ar-YE.h [moved from base/setup/usetup/lang/ar-YE.h with 100% similarity]
base/setup/lib/lang/az-AZ.h [moved from base/setup/usetup/lang/az-AZ.h with 100% similarity]
base/setup/lib/lang/be-BY.h [moved from base/setup/usetup/lang/be-BY.h with 100% similarity]
base/setup/lib/lang/bg-BG.h [new file with mode: 0644]
base/setup/lib/lang/bn-BD.h [new file with mode: 0644]
base/setup/lib/lang/bn-IN.h [moved from base/setup/usetup/lang/bn-IN.h with 100% similarity]
base/setup/lib/lang/ca-ES.h [moved from base/setup/usetup/lang/ca-ES.h with 100% similarity]
base/setup/lib/lang/cs-CZ.h [new file with mode: 0644]
base/setup/lib/lang/da-DK.h [new file with mode: 0644]
base/setup/lib/lang/de-AT.h [moved from base/setup/usetup/lang/de-AT.h with 100% similarity]
base/setup/lib/lang/de-CH.h [moved from base/setup/usetup/lang/de-CH.h with 100% similarity]
base/setup/lib/lang/de-DE.h [new file with mode: 0644]
base/setup/lib/lang/de-LI.h [moved from base/setup/usetup/lang/de-LI.h with 100% similarity]
base/setup/lib/lang/de-LU.h [moved from base/setup/usetup/lang/de-LU.h with 100% similarity]
base/setup/lib/lang/dv-MV.h [moved from base/setup/usetup/lang/dv-MV.h with 100% similarity]
base/setup/lib/lang/el-GR.h [new file with mode: 0644]
base/setup/lib/lang/en-AU.h [moved from base/setup/usetup/lang/en-AU.h with 100% similarity]
base/setup/lib/lang/en-BZ.h [moved from base/setup/usetup/lang/en-BZ.h with 100% similarity]
base/setup/lib/lang/en-CA.h [moved from base/setup/usetup/lang/en-CA.h with 100% similarity]
base/setup/lib/lang/en-CB.h [moved from base/setup/usetup/lang/en-CB.h with 100% similarity]
base/setup/lib/lang/en-GB.h [moved from base/setup/usetup/lang/en-GB.h with 100% similarity]
base/setup/lib/lang/en-IE.h [moved from base/setup/usetup/lang/en-IE.h with 100% similarity]
base/setup/lib/lang/en-JM.h [moved from base/setup/usetup/lang/en-JM.h with 100% similarity]
base/setup/lib/lang/en-NZ.h [moved from base/setup/usetup/lang/en-NZ.h with 100% similarity]
base/setup/lib/lang/en-PH.h [moved from base/setup/usetup/lang/en-PH.h with 100% similarity]
base/setup/lib/lang/en-TT.h [moved from base/setup/usetup/lang/en-TT.h with 100% similarity]
base/setup/lib/lang/en-US.h [new file with mode: 0644]
base/setup/lib/lang/en-ZA.h [moved from base/setup/usetup/lang/en-ZA.h with 100% similarity]
base/setup/lib/lang/en-ZW.h [moved from base/setup/usetup/lang/en-ZW.h with 100% similarity]
base/setup/lib/lang/eo-AA.h [moved from base/setup/usetup/lang/eo-AA.h with 100% similarity]
base/setup/lib/lang/es-AR.h [moved from base/setup/usetup/lang/es-AR.h with 100% similarity]
base/setup/lib/lang/es-BO.h [moved from base/setup/usetup/lang/es-BO.h with 100% similarity]
base/setup/lib/lang/es-CL.h [moved from base/setup/usetup/lang/es-CL.h with 100% similarity]
base/setup/lib/lang/es-CO.h [moved from base/setup/usetup/lang/es-CO.h with 100% similarity]
base/setup/lib/lang/es-CR.h [moved from base/setup/usetup/lang/es-CR.h with 100% similarity]
base/setup/lib/lang/es-DO.h [moved from base/setup/usetup/lang/es-DO.h with 100% similarity]
base/setup/lib/lang/es-EC.h [moved from base/setup/usetup/lang/es-EC.h with 100% similarity]
base/setup/lib/lang/es-ES.h [new file with mode: 0644]
base/setup/lib/lang/es-GT.h [moved from base/setup/usetup/lang/es-GT.h with 100% similarity]
base/setup/lib/lang/es-HN.h [moved from base/setup/usetup/lang/es-HN.h with 100% similarity]
base/setup/lib/lang/es-MX.h [moved from base/setup/usetup/lang/es-MX.h with 100% similarity]
base/setup/lib/lang/es-NI.h [moved from base/setup/usetup/lang/es-NI.h with 100% similarity]
base/setup/lib/lang/es-PA.h [moved from base/setup/usetup/lang/es-PA.h with 100% similarity]
base/setup/lib/lang/es-PE.h [moved from base/setup/usetup/lang/es-PE.h with 100% similarity]
base/setup/lib/lang/es-PR.h [moved from base/setup/usetup/lang/es-PR.h with 100% similarity]
base/setup/lib/lang/es-PY.h [moved from base/setup/usetup/lang/es-PY.h with 100% similarity]
base/setup/lib/lang/es-SV.h [moved from base/setup/usetup/lang/es-SV.h with 100% similarity]
base/setup/lib/lang/es-UY.h [moved from base/setup/usetup/lang/es-UY.h with 100% similarity]
base/setup/lib/lang/es-VE.h [moved from base/setup/usetup/lang/es-VE.h with 100% similarity]
base/setup/lib/lang/et-EE.h [new file with mode: 0644]
base/setup/lib/lang/eu-ES.h [moved from base/setup/usetup/lang/eu-ES.h with 100% similarity]
base/setup/lib/lang/fa-IR.h [moved from base/setup/usetup/lang/fa-IR.h with 100% similarity]
base/setup/lib/lang/fi-FI.h [moved from base/setup/usetup/lang/fi-FI.h with 100% similarity]
base/setup/lib/lang/fo-FO.h [moved from base/setup/usetup/lang/fo-FO.h with 100% similarity]
base/setup/lib/lang/fr-BE.h [moved from base/setup/usetup/lang/fr-BE.h with 100% similarity]
base/setup/lib/lang/fr-CA.h [moved from base/setup/usetup/lang/fr-CA.h with 100% similarity]
base/setup/lib/lang/fr-CH.h [moved from base/setup/usetup/lang/fr-CH.h with 100% similarity]
base/setup/lib/lang/fr-FR.h [new file with mode: 0644]
base/setup/lib/lang/fr-LU.h [moved from base/setup/usetup/lang/fr-LU.h with 100% similarity]
base/setup/lib/lang/fr-MC.h [moved from base/setup/usetup/lang/fr-MC.h with 100% similarity]
base/setup/lib/lang/gl-ES.h [moved from base/setup/usetup/lang/gl-ES.h with 100% similarity]
base/setup/lib/lang/gu-IN.h [moved from base/setup/usetup/lang/gu-IN.h with 100% similarity]
base/setup/lib/lang/he-IL.h [new file with mode: 0644]
base/setup/lib/lang/hi-IN.h [moved from base/setup/usetup/lang/hi-IN.h with 100% similarity]
base/setup/lib/lang/hr-HR.h [moved from base/setup/usetup/lang/hr-HR.h with 100% similarity]
base/setup/lib/lang/hu-HU.h [moved from base/setup/usetup/lang/hu-HU.h with 100% similarity]
base/setup/lib/lang/hy-AM.h [moved from base/setup/usetup/lang/hy-AM.h with 100% similarity]
base/setup/lib/lang/id-ID.h [moved from base/setup/usetup/lang/id-ID.h with 100% similarity]
base/setup/lib/lang/is-IS.h [moved from base/setup/usetup/lang/is-IS.h with 100% similarity]
base/setup/lib/lang/it-CH.h [moved from base/setup/usetup/lang/it-CH.h with 100% similarity]
base/setup/lib/lang/it-IT.h [new file with mode: 0644]
base/setup/lib/lang/ja-JP.h [new file with mode: 0644]
base/setup/lib/lang/ka-GE.h [moved from base/setup/usetup/lang/ka-GE.h with 100% similarity]
base/setup/lib/lang/kk-KZ.h [moved from base/setup/usetup/lang/kk-KZ.h with 100% similarity]
base/setup/lib/lang/kn-IN.h [moved from base/setup/usetup/lang/kn-IN.h with 100% similarity]
base/setup/lib/lang/ko-KR.h [moved from base/setup/usetup/lang/ko-KR.h with 100% similarity]
base/setup/lib/lang/kok-IN.h [moved from base/setup/usetup/lang/kok-IN.h with 100% similarity]
base/setup/lib/lang/ky-KG.h [moved from base/setup/usetup/lang/ky-KG.h with 100% similarity]
base/setup/lib/lang/lt-LT.h [new file with mode: 0644]
base/setup/lib/lang/lv-LV.h [moved from base/setup/usetup/lang/lv-LV.h with 100% similarity]
base/setup/lib/lang/mk-MK.h [moved from base/setup/usetup/lang/mk-MK.h with 100% similarity]
base/setup/lib/lang/mn-MN.h [moved from base/setup/usetup/lang/mn-MN.h with 100% similarity]
base/setup/lib/lang/mr-IN.h [moved from base/setup/usetup/lang/mr-IN.h with 100% similarity]
base/setup/lib/lang/ms-BN.h [moved from base/setup/usetup/lang/ms-BN.h with 100% similarity]
base/setup/lib/lang/ms-MY.h [new file with mode: 0644]
base/setup/lib/lang/my-MM.h [moved from base/setup/usetup/lang/my-MM.h with 100% similarity]
base/setup/lib/lang/nl-BE.h [moved from base/setup/usetup/lang/nl-BE.h with 100% similarity]
base/setup/lib/lang/nl-NL.h [new file with mode: 0644]
base/setup/lib/lang/nn-NO.h [moved from base/setup/usetup/lang/nn-NO.h with 100% similarity]
base/setup/lib/lang/pa-IN.h [moved from base/setup/usetup/lang/pa-IN.h with 100% similarity]
base/setup/lib/lang/pl-PL.h [new file with mode: 0644]
base/setup/lib/lang/pt-BR.h [new file with mode: 0644]
base/setup/lib/lang/pt-PT.h [moved from base/setup/usetup/lang/pt-PT.h with 100% similarity]
base/setup/lib/lang/rm-CH.h [moved from base/setup/usetup/lang/rm-CH.h with 100% similarity]
base/setup/lib/lang/ro-RO.h [new file with mode: 0644]
base/setup/lib/lang/ru-RU.h [new file with mode: 0644]
base/setup/lib/lang/sa-IN.h [moved from base/setup/usetup/lang/sa-IN.h with 100% similarity]
base/setup/lib/lang/sk-SK.h [new file with mode: 0644]
base/setup/lib/lang/sl-SI.h [moved from base/setup/usetup/lang/sl-SI.h with 100% similarity]
base/setup/lib/lang/sq-AL.h [new file with mode: 0644]
base/setup/lib/lang/sr-SP.h [moved from base/setup/usetup/lang/sr-SP.h with 100% similarity]
base/setup/lib/lang/sv-FI.h [moved from base/setup/usetup/lang/sv-FI.h with 100% similarity]
base/setup/lib/lang/sv-SE.h [new file with mode: 0644]
base/setup/lib/lang/sw-KE.h [moved from base/setup/usetup/lang/sw-KE.h with 100% similarity]
base/setup/lib/lang/syr-SY.h [moved from base/setup/usetup/lang/syr-SY.h with 100% similarity]
base/setup/lib/lang/ta-IN.h [moved from base/setup/usetup/lang/ta-IN.h with 100% similarity]
base/setup/lib/lang/te-IN.h [moved from base/setup/usetup/lang/te-IN.h with 100% similarity]
base/setup/lib/lang/th-TH.h [moved from base/setup/usetup/lang/th-TH.h with 100% similarity]
base/setup/lib/lang/tr-TR.h [new file with mode: 0644]
base/setup/lib/lang/tt-TA.h [moved from base/setup/usetup/lang/tt-TA.h with 100% similarity]
base/setup/lib/lang/uk-UA.h [new file with mode: 0644]
base/setup/lib/lang/ur-PK.h [moved from base/setup/usetup/lang/ur-PK.h with 100% similarity]
base/setup/lib/lang/uz-UZ.h [moved from base/setup/usetup/lang/uz-UZ.h with 100% similarity]
base/setup/lib/lang/vi-VN.h [moved from base/setup/usetup/lang/vi-VN.h with 100% similarity]
base/setup/lib/lang/wa-BE.h [moved from base/setup/usetup/lang/wa-BE.h with 100% similarity]
base/setup/lib/lang/zh-CN.h [moved from base/setup/usetup/lang/zh-CN.h with 100% similarity]
base/setup/lib/lang/zh-HK.h [moved from base/setup/usetup/lang/zh-HK.h with 100% similarity]
base/setup/lib/lang/zh-MO.h [moved from base/setup/usetup/lang/zh-MO.h with 100% similarity]
base/setup/lib/lang/zh-SG.h [moved from base/setup/usetup/lang/zh-SG.h with 100% similarity]
base/setup/lib/lang/zh-TW.h [moved from base/setup/usetup/lang/zh-TW.h with 100% similarity]
base/setup/lib/mui.c [new file with mode: 0644]
base/setup/lib/mui.h [new file with mode: 0644]
base/setup/lib/muifonts.h [moved from base/setup/usetup/muifonts.h with 100% similarity]
base/setup/lib/muilanguages.h [new file with mode: 0644]
base/setup/lib/settings.c
base/setup/lib/settings.h
base/setup/lib/setuplib.h
base/setup/usetup/CMakeLists.txt
base/setup/usetup/lang/bg-BG.h
base/setup/usetup/lang/bn-BD.h
base/setup/usetup/lang/cs-CZ.h
base/setup/usetup/lang/da-DK.h
base/setup/usetup/lang/de-DE.h
base/setup/usetup/lang/el-GR.h
base/setup/usetup/lang/en-US.h
base/setup/usetup/lang/es-ES.h
base/setup/usetup/lang/et-EE.h
base/setup/usetup/lang/fr-FR.h
base/setup/usetup/lang/he-IL.h
base/setup/usetup/lang/it-IT.h
base/setup/usetup/lang/ja-JP.h
base/setup/usetup/lang/lt-LT.h
base/setup/usetup/lang/ms-MY.h
base/setup/usetup/lang/nl-NL.h
base/setup/usetup/lang/pl-PL.h
base/setup/usetup/lang/pt-BR.h
base/setup/usetup/lang/ro-RO.h
base/setup/usetup/lang/ru-RU.h
base/setup/usetup/lang/sk-SK.h
base/setup/usetup/lang/sq-AL.h
base/setup/usetup/lang/sv-SE.h
base/setup/usetup/lang/tr-TR.h
base/setup/usetup/lang/uk-UA.h
base/setup/usetup/mui.c
base/setup/usetup/mui.h
base/setup/usetup/muilanguages.h
base/setup/usetup/settings.c [deleted file]
base/setup/usetup/settings.h [deleted file]
base/setup/usetup/usetup.c
base/setup/usetup/usetup.h
dll/cpl/input/input_list.c