History log of /haiku/src/apps/firstbootprompt/BootPromptWindow.cpp
Revision Date Author Comments
# a53cd008 27-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

FirstBootPrompt: Appease GCC2.


# 1272bd2a 27-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

FirstBootPrompt: Scale the button icons.

Part of #17914.


# 789bcfd8 23-Jan-2022 Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>

Update own credits/copyrights

Change-Id: Ia28784e1c8d534df3946693c850e176c75c5d99a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4882
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# f2982f98 31-May-2021 Panagiotis Vasilopoulos <hello@alwayslivid.com>

FirstBootPrompt: Replaced %Distroname% with filler text

The unofficial builds used %Distroname% directly and showed that to the
users, which does not look great. Instead use different wording that
simply avoids mentionning the OS name in de-branded builds.

- Small lingustic change: "Try Haiku" sounds a bit less awkward than
"Try out Haiku" and conveys the same exact meaning.
- Updated copyright note.

Co-authored-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Change-Id: Ic1be6bc4728946c19fc4fd162cfeea640c1f6c1e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4036
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 03ae6227 14-Oct-2020 Humdinger <humdingerb@gmail.com>

FirstBootPrompt: Improved language, make distro-aware

Replace "Haiku" with "%distroname%" for non-official builds i.e. forks.
The forker will have to replace the "*Distroname*" that is now shown
on unofficial builds.

Change-Id: I1a48403d7acc69529769870d869238f660deb49c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3299
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 64ab6cf0 24-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: even more fixes

The previous code tried to add a boolean to the quit requested message,
but that is not propagated from the app to the window QuitRequested, so
it didn't work. Instead, split the task between the app and the window'
QuitRequested functions.


# 0b07cea0 22-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: Another fix for #16525

If we quit the app before handling the "reboot requested" message, the
system doesn't reboot.


# e6f60cad 20-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: some NULL pointer checks

Should fix #16525


# 8ed52b62 10-Sep-2020 Panagiotis Vasilopoulos <hello@alwayslivid.com>

FirstBootPrompt: Exiting is now possible

- Exiting the window when the Desktop is not running will result in a reboot.
- Otherwise, the window will just close ordinarily.
- A confirmation box pops up before rebooting.
- Made other optimizations for running FirstBootPrompt on the Desktop.
- Moved some definitions to the header files.
- Added "UsePrivateSystemHeaders" to the Jamfile.

(Thank you, PulkoMandy!)

Change-Id: I34d6538d7b538d36448498ad1ecd442d76bd2bb6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3204
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 06b2ce54 01-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: update welcome text.

Change-Id: Ibc8b051cd183a1184d62af264e0a42815e952f99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2545
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 95b2739d 22-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: adjust window size to font size

At 12pt, we try to fit a 640x480 display. But at larger font sizes we
have to allow some more space.

Fixes #16066.


# 96240a75 01-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: fix a typo


# 5c1b8016 29-Apr-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: smarter keyboard layout selection

Change-Id: I6501f8a697039c4c4d600d544e0ce6659d2b5dfe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2539
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 5c2709cd 28-Apr-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Firstbootprompt: remove flags from languages.

http://www.flagsarenotlanguages.com

Add some other icons to make the window a bit more spicy as suggested by
Axel.

Change-Id: I859cefc7f5cb99f9a5465902c9d471f0b9857b71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2527
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 4da0550b 13-Apr-2020 Niels Sascha Reedijk <niels.reedijk@gmail.com>

FirstBootPrompt: build fix for gcc 2 after applying change 1718


# c3fcf057 14-Aug-2019 Murai Takashi <tmurai01@gmail.com>

Firstbootprompt: Localize keymap list

Fixes #15522

Change-Id: I8909f70c0f7abe1fa23ea7c145220b95a3e06395
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1718
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>


# f69717ad 22-Nov-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: more layout fixes

ResizeToPreferred will only relayout the window once. Further calls will
not change anything, even if the text in the BTextView changed. So make
sure to compute the preferred size with a very high text view, and only
then, set the (rather short) english text.

This makes the text view large enough to fit the text in all languages,
and the window never changes size.


# 950b5664 20-Nov-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

FirstBootPrompt: fix layout

In some languages, the buttons would end up outside of window bounds, as
changing the BTextView content does not automatically update the window
size (even with B_AUTO_UPDATE_SIZE_LIMITS). So, we need to manually call
ResizeToPreferred after changing the text.

However, this exposed another problem: the view size is computed using
GetHeightForWidth, with a width as small as allowed by layout
constraints. In our cases, there weren't much layout constraints so we
would end up asking the text view to compute its height for a width of
52px, leading to a very high window. Add some explicit sizing
constraints to the text view and language list to make sure we get a
sane size.

Also tweak the layout a little to allow the keymap menu field to be
wider than the language list view, and make the window not resizable as
that makes it much easier to keep things under control and there isn't
really a need to resize it.


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# 744a3927 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use templatized version of BLayoutBuilder

...also more B_USE_WINDOW_SPACING


# 8d9fab1b 14-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FirstBootPrompt: focus the language list

Make it possible to easily use the window with only the keyboard.


# e9487c70 18-Oct-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style fixes. Thanks Axel for noticing.


# c8cc2f3e 18-Oct-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

FirstBootPrompt: sort keymaps


# eede25d3 16-Feb-2013 Matt Madia <mattmadia@gmail.com>

Make FirstBootPrompt write the settings immediately upon launch.

If a user does not select anything, the default settings will be written.
Part of #9427


# 37fb2473 23-Jan-2013 Matt Madia <mattmadia@gmail.com>

Renamed ReadOnlyBootPrompt to FirstBootPrompt.

The previous name is no longer applicable, as *BootPrompt is now launched on
the first boot of writable medium (e.g., USB thumb drive and hard drives).
Fixes part of #9399.

Notes:
* BootPrompt.rdef may have lost its history.
* The renaming was done with the following command:
git mv src/apps/readonlybootprompt src/apps/firstbootprompt


# 8d9fab1be9588715463e90c182441fdc4f7d4f48 14-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FirstBootPrompt: focus the language list

Make it possible to easily use the window with only the keyboard.


# e9487c70c5764317d45aef2e903c4ef683b5c18d 18-Oct-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style fixes. Thanks Axel for noticing.


# c8cc2f3e5db47f99575a90fb158b306b3057701e 18-Oct-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

FirstBootPrompt: sort keymaps


# eede25d31f3f4ddf64433e4b5f2335bd948aad4b 16-Feb-2013 Matt Madia <mattmadia@gmail.com>

Make FirstBootPrompt write the settings immediately upon launch.

If a user does not select anything, the default settings will be written.
Part of #9427


# 37fb24734106c315e58eadc7cff99f9b2566f4a7 23-Jan-2013 Matt Madia <mattmadia@gmail.com>

Renamed ReadOnlyBootPrompt to FirstBootPrompt.

The previous name is no longer applicable, as *BootPrompt is now launched on
the first boot of writable medium (e.g., USB thumb drive and hard drives).
Fixes part of #9399.

Notes:
* BootPrompt.rdef may have lost its history.
* The renaming was done with the following command:
git mv src/apps/readonlybootprompt src/apps/firstbootprompt