summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-12 18:09:42 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-12 18:09:42 +0100
commit91eda222087048fef131a1bc39bcda947bce2288 (patch)
tree0607a7dd78ae8e36600ef397bff639040161ee2b /Userland/Applications
parentf2154bca179e5242390e8b3230607360bdaa2949 (diff)
downloadserenity-91eda222087048fef131a1bc39bcda947bce2288.zip
Everywhere: Add Alt shortcuts to remaining top-level menus
Not sure why some menus did have one and others didn't, even in the same application - now they all do. :^) I added character shortcuts to some menu actions as well.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/DisplaySettings/main.cpp4
-rw-r--r--Userland/Applications/Help/main.cpp2
-rw-r--r--Userland/Applications/IRCClient/IRCAppWindow.cpp2
-rw-r--r--Userland/Applications/KeyboardMapper/main.cpp2
-rw-r--r--Userland/Applications/KeyboardSettings/main.cpp4
-rw-r--r--Userland/Applications/MouseSettings/main.cpp5
-rw-r--r--Userland/Applications/Piano/main.cpp6
-rw-r--r--Userland/Applications/SoundPlayer/main.cpp8
-rw-r--r--Userland/Applications/SpaceAnalyzer/main.cpp6
-rw-r--r--Userland/Applications/Spreadsheet/main.cpp4
10 files changed, 23 insertions, 20 deletions
diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp
index 9ac238066b..66e0df7554 100644
--- a/Userland/Applications/DisplaySettings/main.cpp
+++ b/Userland/Applications/DisplaySettings/main.cpp
@@ -48,12 +48,12 @@ int main(int argc, char** argv)
auto menubar = GUI::Menubar::construct();
- auto& file_menu = menubar->add_menu("File");
+ auto& file_menu = menubar->add_menu("&File");
file_menu.add_action(GUI::CommonActions::make_quit_action([&](const GUI::Action&) {
app->quit();
}));
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Display Settings", app_icon, window));
window->set_menubar(move(menubar));
diff --git a/Userland/Applications/Help/main.cpp b/Userland/Applications/Help/main.cpp
index 9c046061fd..a3d01ba6bf 100644
--- a/Userland/Applications/Help/main.cpp
+++ b/Userland/Applications/Help/main.cpp
@@ -261,7 +261,7 @@ int main(int argc, char* argv[])
GUI::Application::the()->quit();
}));
- auto& go_menu = menubar->add_menu("Go");
+ auto& go_menu = menubar->add_menu("&Go");
go_menu.add_action(*go_back_action);
go_menu.add_action(*go_forward_action);
go_menu.add_action(*go_home_action);
diff --git a/Userland/Applications/IRCClient/IRCAppWindow.cpp b/Userland/Applications/IRCClient/IRCAppWindow.cpp
index 49fa211f2a..5d84b37ab1 100644
--- a/Userland/Applications/IRCClient/IRCAppWindow.cpp
+++ b/Userland/Applications/IRCClient/IRCAppWindow.cpp
@@ -243,7 +243,7 @@ void IRCAppWindow::setup_menus()
GUI::Application::the()->quit();
}));
- auto& server_menu = menubar->add_menu("Server");
+ auto& server_menu = menubar->add_menu("&Server");
server_menu.add_action(*m_change_nick_action);
server_menu.add_separator();
server_menu.add_action(*m_join_action);
diff --git a/Userland/Applications/KeyboardMapper/main.cpp b/Userland/Applications/KeyboardMapper/main.cpp
index 086a5408b5..e5480a12df 100644
--- a/Userland/Applications/KeyboardMapper/main.cpp
+++ b/Userland/Applications/KeyboardMapper/main.cpp
@@ -93,7 +93,7 @@ int main(int argc, char** argv)
file_menu.add_separator();
file_menu.add_action(quit_action);
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Keyboard Mapper", app_icon, window));
window->set_menubar(move(menubar));
diff --git a/Userland/Applications/KeyboardSettings/main.cpp b/Userland/Applications/KeyboardSettings/main.cpp
index 41f74df61b..83a6ce297d 100644
--- a/Userland/Applications/KeyboardSettings/main.cpp
+++ b/Userland/Applications/KeyboardSettings/main.cpp
@@ -168,10 +168,10 @@ int main(int argc, char** argv)
auto menubar = GUI::Menubar::construct();
- auto& file_menu = menubar->add_menu("File");
+ auto& file_menu = menubar->add_menu("&File");
file_menu.add_action(quit_action);
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Keyboard Settings", app_icon, window));
window->set_menubar(move(menubar));
diff --git a/Userland/Applications/MouseSettings/main.cpp b/Userland/Applications/MouseSettings/main.cpp
index 9af79afc6a..ffea258b4d 100644
--- a/Userland/Applications/MouseSettings/main.cpp
+++ b/Userland/Applications/MouseSettings/main.cpp
@@ -37,13 +37,14 @@ int main(int argc, char** argv)
window->set_icon(app_icon.bitmap_for_size(16));
auto menubar = GUI::Menubar::construct();
- auto& file_menu = menubar->add_menu("File");
+ auto& file_menu = menubar->add_menu("&File");
file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) {
app->quit();
}));
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Mouse Settings", app_icon, window));
+
window->set_menubar(move(menubar));
window->show();
diff --git a/Userland/Applications/Piano/main.cpp b/Userland/Applications/Piano/main.cpp
index b29a038765..a584d2331f 100644
--- a/Userland/Applications/Piano/main.cpp
+++ b/Userland/Applications/Piano/main.cpp
@@ -91,7 +91,7 @@ int main(int argc, char** argv)
auto menubar = GUI::Menubar::construct();
- auto& file_menu = menubar->add_menu("File");
+ auto& file_menu = menubar->add_menu("&File");
file_menu.add_action(GUI::Action::create("Export", { Mod_Ctrl, Key_E }, [&](const GUI::Action&) {
save_path = GUI::FilePicker::get_save_filepath(window, "Untitled", "wav");
if (!save_path.has_value())
@@ -110,10 +110,10 @@ int main(int argc, char** argv)
return;
}));
- auto& edit_menu = menubar->add_menu("Edit");
+ auto& edit_menu = menubar->add_menu("&Edit");
main_widget.add_actions(edit_menu);
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Piano", app_icon, window));
window->set_menubar(move(menubar));
diff --git a/Userland/Applications/SoundPlayer/main.cpp b/Userland/Applications/SoundPlayer/main.cpp
index ce95f7c125..e4f56f133d 100644
--- a/Userland/Applications/SoundPlayer/main.cpp
+++ b/Userland/Applications/SoundPlayer/main.cpp
@@ -62,7 +62,7 @@ int main(int argc, char** argv)
auto& file_menu = menubar->add_menu("&File");
- auto& playlist_menu = menubar->add_menu("Playlist");
+ auto& playlist_menu = menubar->add_menu("Play&list");
String path = argv[1];
// start in advanced view by default
@@ -101,7 +101,7 @@ int main(int argc, char** argv)
app->quit();
}));
- auto& playback_menu = menubar->add_menu("Playback");
+ auto& playback_menu = menubar->add_menu("&Playback");
auto loop = GUI::Action::create_checkable("Loop", { Mod_Ctrl, Key_R }, [&](auto& action) {
player->set_looping_file(action.is_checked());
@@ -109,7 +109,7 @@ int main(int argc, char** argv)
playback_menu.add_action(move(loop));
- auto& visualization_menu = menubar->add_menu("Visualization");
+ auto& visualization_menu = menubar->add_menu("&Visualization");
Vector<NonnullRefPtr<GUI::Action>> visualization_checkmarks;
GUI::Action* checked_vis = nullptr;
auto uncheck_all_but = [&](GUI::Action& one) {for (auto& a : visualization_checkmarks) if (a != &one) a->set_checked(false); };
@@ -154,7 +154,7 @@ int main(int argc, char** argv)
visualization_menu.add_action(none);
visualization_checkmarks.append(none);
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Sound Player", app_icon, window));
window->set_menubar(move(menubar));
diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp
index c5d052f477..899bc07a08 100644
--- a/Userland/Applications/SpaceAnalyzer/main.cpp
+++ b/Userland/Applications/SpaceAnalyzer/main.cpp
@@ -269,8 +269,8 @@ int main(int argc, char* argv[])
auto& treemapwidget = *mainwidget.find_descendant_of_type_named<SpaceAnalyzer::TreeMapWidget>("tree_map");
auto& statusbar = *mainwidget.find_descendant_of_type_named<GUI::Statusbar>("statusbar");
- // Configure the menubar.
auto menubar = GUI::Menubar::construct();
+
auto& file_menu = menubar->add_menu("&File");
file_menu.add_action(GUI::Action::create("&Analyze", [&](auto&) {
analyze(tree, treemapwidget, statusbar);
@@ -278,8 +278,10 @@ int main(int argc, char* argv[])
file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) {
app->quit();
}));
- auto& help_menu = menubar->add_menu("Help");
+
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action(APP_NAME, app_icon, window));
+
window->set_menubar(move(menubar));
// Configure the nodes context menu.
diff --git a/Userland/Applications/Spreadsheet/main.cpp b/Userland/Applications/Spreadsheet/main.cpp
index 00a546b5a0..b92e05241b 100644
--- a/Userland/Applications/Spreadsheet/main.cpp
+++ b/Userland/Applications/Spreadsheet/main.cpp
@@ -143,7 +143,7 @@ int main(int argc, char* argv[])
return GUI::Window::CloseRequestDecision::StayOpen;
};
- auto& edit_menu = menubar->add_menu("Edit");
+ auto& edit_menu = menubar->add_menu("&Edit");
auto clipboard_action = [&](bool is_cut) {
/// text/x-spreadsheet-data:
@@ -233,7 +233,7 @@ int main(int argc, char* argv[])
},
window));
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::Action::create(
"Functions Help", [&](auto&) {