summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.h
AgeCommit message (Collapse)Author
2023-02-13Userland: Set Button text using the new String classKarol Kosek
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-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-08KeyboardMapper: Ask for unsaved changes on window close and file openKarol Kosek
2022-03-08KeyboardMapper: Display dirty close icon when the file is changedKarol Kosek
2022-02-14Applications: Use default constructors/destructorsLenny 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."
2022-01-08KeyboardMapper: Add support for dynamic keyboard visualizationJean-Paul Balabanian
2022-01-06KeyboardMapper: Propagate errors using ErrorOr and TRYRasmusNylander
KeyboardMapperWidget's load_map_from_file, load_map_from_system, save, and save_to_file now all return ErrorOr<void> and no longer handles alerting the user to potential errors. main is now responsible for handling errors originating from its calls to these four functions; it will simply alert the user using the new method KeyboardMapperWidget::show_error_to_user(Error), which simply creates a MassageBox displaying the error's string_literal. This makes the whole program slight more clean feeling :^).
2022-01-06KeyboardMapper: Extract method map_from_nameRasmusNylander
Extract the mapping of a name to a character map into its own method. This only slightly reduces the number of lines, going from 24 to 17 lines, but makes the code somewhat more readable and reduces repetition.
2022-01-06KeyboardMapper: Extract creation of map-selection buttonsRasmusNylander
Extract the creation of map-selection radio buttons from create_frame into the new private method add_map_radio_button(map_name, button_text) turning 24 lines into 4 + 6 lines. This makes create_frame a little easier to read. :^)
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-11-02Applications: Fix visibility of Object-derivative constructorsBen Wiederhake
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
2021-04-29Everywhere: "file name" => "filename"Andreas Kling
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-01KeyboardMapper: Without arguments, load current keymapBen Wiederhake
2021-01-12Applications: Move to Userland/Applications/Andreas Kling