mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibGUI: Add CommonActions::make_about_action()
This creates an "About" menu action given the app name and icon. It takes care of showing the about dialog for you.
This commit is contained in:
parent
6bfcb9c2b0
commit
da536c8d22
2 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
namespace GUI {
|
||||
|
||||
namespace CommonActions {
|
||||
NonnullRefPtr<Action> make_about_action(const String& app_name, const Icon& app_icon, Window* parent = nullptr);
|
||||
NonnullRefPtr<Action> make_open_action(Function<void(Action&)>, Core::Object* parent = nullptr);
|
||||
NonnullRefPtr<Action> make_save_action(Function<void(Action&)>, Core::Object* parent = nullptr);
|
||||
NonnullRefPtr<Action> make_save_as_action(Function<void(Action&)>, Core::Object* parent = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue