summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Menu.h
AgeCommit message (Collapse)Author
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-02-25Userland: Rename WindowServerConnection=>ConnectionToWindowServerItamar
This was done with CLion's automatic rename feature.
2022-02-21LibGUI: Add 'remove_all_actions' method to 'Menu'Marco Cutecchia
2022-01-30LibGUI: Collect menu and submenu actions for CommandPalettenetworkException
We now not only collect actions that are children of windows but also all actions that are part of a window's menus and submenus :^)
2022-01-09LibGUI: Add Menu::set_children_actions_enabled() helperMarcus Nilsson
This adds a helper function to Menu that allows us to set all the children enabled/disabled.
2021-11-24LibGUI: Add GUI::Menu::try_add_submenu()Andreas Kling
This is a fallible variant of add_submenu() that returns ErrorOr.
2021-11-24LibGUI: Add GUI::Menu::try_add_action() and try_add_separator()Andreas Kling
These are fallible variants that return ErrorOr. :^)
2021-08-02LibGUI, WindowServer: Greatly simplify menubar logicsin-ack
Currently, any number of menubars can be plugged in and out of a window. This is unnecessary complexity, since we only need one menubar on a window. This commit removes most of the logic for dynamically attaching and detaching menubars and makes one menubar always available. The menubar is only considered existent if it has at least a single menu in it (in other words, an empty menubar will not be shown). This commit additionally fixes a bug wherein menus added after a menubar has been attached would not have their rects properly setup, and would therefore appear glitched out on the top left corner of the menubar.
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-04-17LibGUI: Make some API's take String instead of StringViewAndreas Kling
2021-04-13Everywhere: It's now "Foobar", not "FooBar", and not "foo bar"Andreas Kling
I hereby declare these to be full nouns that we don't split, neither by space, nor by underscore: - Breadcrumbbar - Coolbar - Menubar - Progressbar - Scrollbar - Statusbar - Taskbar - Toolbar This patch makes everything consistent by replacing every other variant of these with the proper one. :^)
2021-04-05WindowServer+LibGUI: Notify clients when menus become visible/hiddenAndreas Kling
This will allow clients to react to these events.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling