[FREELDR] Some enhancements for the UI code. (#1763)
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 2 Aug 2019 19:35:23 +0000 (21:35 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 7 Aug 2019 16:50:20 +0000 (18:50 +0200)
commit5d5b6a5600c73696fa8a42e980f156d2f771f683
treee8f83be5f5177f47096f86a2b4b82cfc90a615b7
parent268cdf5702b7463a1ffbf047c935c5ac183a33f7
[FREELDR] Some enhancements for the UI code. (#1763)

- EditBox: Display the initial contents of the text buffer.
  This allows modifying already existing text in the passed buffer.

- Menu:
  * Make both MenuHeader and MenuFooter optional (but the latter is
    more "optional" than the former...).

  * Allow passing a user-provided "Context" structure to the key-press
    filter callback, and pass also the index of the menu item that has
    been selected.

- Minor formatting fixes.
13 files changed:
boot/freeldr/freeldr/bootmgr.c
boot/freeldr/freeldr/custom.c
boot/freeldr/freeldr/include/ui.h
boot/freeldr/freeldr/include/ui/gui.h
boot/freeldr/freeldr/include/ui/noui.h
boot/freeldr/freeldr/include/ui/tui.h
boot/freeldr/freeldr/options.c
boot/freeldr/freeldr/ui/directui.c
boot/freeldr/freeldr/ui/minitui.c
boot/freeldr/freeldr/ui/noui.c
boot/freeldr/freeldr/ui/tui.c
boot/freeldr/freeldr/ui/tuimenu.c
boot/freeldr/freeldr/ui/ui.c