diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-14 22:27:30 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-25 10:21:18 +0100 |
commit | 34acae90c77036897a3e2726ed145e6b7524bb49 (patch) | |
tree | c43ce5cf222812a02cbbf10dec6d1bab8b03a091 /Userland/DevTools | |
parent | eb8c2bde90729b98a0f2cb8cc322baf44f6e6085 (diff) | |
download | serenity-34acae90c77036897a3e2726ed145e6b7524bb49.zip |
Userland: Let applications make use of make_command_palette_action()
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/GMLPlayground/main.cpp | 1 | ||||
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 1 | ||||
-rw-r--r-- | Userland/DevTools/Inspector/main.cpp | 1 | ||||
-rw-r--r-- | Userland/DevTools/Profiler/main.cpp | 1 | ||||
-rw-r--r-- | Userland/DevTools/SQLStudio/MainWidget.cpp | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/Userland/DevTools/GMLPlayground/main.cpp b/Userland/DevTools/GMLPlayground/main.cpp index f95867fac2..5716fb9e65 100644 --- a/Userland/DevTools/GMLPlayground/main.cpp +++ b/Userland/DevTools/GMLPlayground/main.cpp @@ -260,6 +260,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) }; auto help_menu = TRY(window->try_add_menu("&Help")); + TRY(help_menu->try_add_action(GUI::CommonActions::make_command_palette_action(window))); TRY(help_menu->try_add_action(GUI::CommonActions::make_help_action([](auto&) { Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/GMLPlayground.md"), "/bin/Help"); }))); diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 1a247f53e2..be4b289b73 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -1524,6 +1524,7 @@ void HackStudioWidget::create_view_menu(GUI::Window& window) void HackStudioWidget::create_help_menu(GUI::Window& window) { auto& help_menu = window.add_menu("&Help"); + help_menu.add_action(GUI::CommonActions::make_command_palette_action(&window)); help_menu.add_action(GUI::CommonActions::make_about_action("Hack Studio", GUI::Icon::default_icon("app-hack-studio"sv), &window)); } diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp index 4b45984124..beba68d5b4 100644 --- a/Userland/DevTools/Inspector/main.cpp +++ b/Userland/DevTools/Inspector/main.cpp @@ -93,6 +93,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })); auto& help_menu = window->add_menu("&Help"); + help_menu.add_action(GUI::CommonActions::make_command_palette_action(window)); help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) { Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/Inspector.md"), "/bin/Help"); })); diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp index 37c0d6dc64..2d3ed547d3 100644 --- a/Userland/DevTools/Profiler/main.cpp +++ b/Userland/DevTools/Profiler/main.cpp @@ -300,6 +300,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(view_menu->try_add_action(source_action)); auto help_menu = TRY(window->try_add_menu("&Help")); + TRY(help_menu->try_add_action(GUI::CommonActions::make_command_palette_action(window))); TRY(help_menu->try_add_action(GUI::CommonActions::make_help_action([](auto&) { Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/Profiler.md"), "/bin/Help"); }))); diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index 1c8e8ccc5b..fbfa0d4bad 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -264,6 +264,7 @@ void MainWidget::initialize_menu(GUI::Window* window) edit_menu.add_action(*m_run_script_action); auto& help_menu = window->add_menu("&Help"); + help_menu.add_action(GUI::CommonActions::make_command_palette_action(window)); help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) { Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/SQLStudio.md"), "/bin/Help"); })); |