summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/InputBox.h
AgeCommit message (Collapse)Author
2023-04-18LibGUI: Add a numeric input type to InputBoxthankyouverycool
This should be a more convenient API and a better UX for apps that want simple integer input from the user.
2023-04-18LibGUI: Let InputBox display an ImageWidgetthankyouverycool
InputBox can now be given a bitmap to display alongside its prompt and editor. Prompts are now optional to allow for compact dialogs.
2023-04-18LibGUI+Userland: Improve error and font handling for InputBoxthankyouverycool
Adds fallible factories, ports DeprecatedString, and rebuilds the layout to accomodate system font changes.
2023-02-04LibGUI: Verify NonemptyText InputBox doesn't result in an empty stringKarol Baraniecki
2023-02-04LibGUI+Userland: Switch order of parameters for InputBox::showKarol Baraniecki
Because usage of the input_type parameter is now higher than of the placeholder parameter, this makes for a cleaner API.
2023-02-04LibGUI: Allow the InputBox to be of NonemptyText typeKarol Baraniecki
It seems like a lot (most?) places where InputBoxes are used check if the retrieved string isn't empty anyway - make this be reflected in the user interface, by disabling (graying out) the "OK" button when nothing is entered, so empty input isn't a viable option at all.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-16LibGUI: Allow more programmatic control over GUI::InputBoxTimothy Flynn
This will be needed for WebDriver, which will require constructing and controlling dialogs manually. Currently, InputBox will only set its text value when the OK button is pressed. This changes InputBox to update its text when done(ExecResult::OK) is invoked in any way. This also makes the text_value() method public, allows for setting the text value, and allows for moving-in the initial text value.
2022-09-12Everywhere: Use my very shiny serenityos.org email :^)networkException
2022-05-13LibGUI+Userland: Make Dialog::ExecResult an enum classSam Atkins
2022-03-12Libraries: Use default constructors/destructors in LibGUILenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-07-26LibGUI: Add InputType enum to allow creating a password InputBox dialogTom
2021-07-07LibGUI: Use east const style in InputBox.{cpp,h}networkException
2021-07-07LibGUI: Allow InputBox to show placeholdernetworkException
If passed as an argument, showing an InputBox now supports to set a placeholder text which will be shown in its TextBox.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-02-20LibGUI: Set InputBox initial value to text_value stringLinus Groh
2021-02-20LibGUI: Swap order of InputBox value and parent window argsLinus Groh
This is now consistent with the other dialog classes.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling