summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Action.cpp
AgeCommit message (Collapse)Author
2020-07-26LibCore+LibGUI: Switch to using AK::is and AK::downcastAndreas Kling
2020-07-23LibGUI: Make window-parented actions actually scoped to the windowAndreas Kling
We were relying on Core::is<Window>() to tell us whether the parent of an action is a window. This didn't work since we only saw a forward declaration of GUI::Window in Action.cpp. This is an unfortunate flaw in the is<T> pattern and we should solve it somehow but not in this patch.
2020-07-04LibGUI: Turn GUI::Application::the() into a pointerAndreas Kling
During app teardown, the Application object may be destroyed before something else, and so having Application::the() return a reference was obscuring the truth about its lifetime. This patch makes the API more honest by returning a pointer. While this makes call sites look a bit more sketchy, do note that the global Application pointer only becomes null during app teardown.
2020-07-03LibGUI: Add GUI::CommonActions::make_select_all_action() :^)Andreas Kling
2020-06-03LibGUI: Add save action to CommonActions listHüseyin ASLITÜRK
2020-04-24Base: New "cut" action iconAndreas Kling
2020-04-21LibGUI: Make it easier to create checkable GUI::ActionsAndreas Kling
This patch adds GUI::Action::create_checkable() helpers that work just like the existing create() helpers, but the actions become checkable(!) Clients are no longer required to manage the checked state of their actions manually, but instead they will be checked/unchecked as needed by GUI::Action itself before the activation hook is fired.
2020-02-14LibGfx: Add forward declaration headerAndreas Kling
This patch adds <LibGfx/Forward.h> with forward declarations for Gfx.
2020-02-06LibGUI: Remove leading G from filenamesAndreas Kling