summaryrefslogtreecommitdiff
path: root/Applications/Piano/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /Applications/Piano/main.cpp
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'Applications/Piano/main.cpp')
-rw-r--r--Applications/Piano/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp
index d33c0f70b8..b2880aef0e 100644
--- a/Applications/Piano/main.cpp
+++ b/Applications/Piano/main.cpp
@@ -39,14 +39,14 @@
int main(int argc, char** argv)
{
- GApplication app(argc, argv);
+ GUI::Application app(argc, argv);
auto audio_client = AClientConnection::construct();
audio_client->handshake();
AudioEngine audio_engine;
- auto window = GWindow::construct();
+ auto window = GUI::Window::construct();
auto main_widget = MainWidget::construct(audio_engine);
window->set_main_widget(main_widget);
window->set_title("Piano");
@@ -71,18 +71,18 @@ int main(int argc, char** argv)
});
audio_thread.start();
- auto menubar = make<GMenuBar>();
+ auto menubar = make<GUI::MenuBar>();
- auto app_menu = GMenu::construct("Piano");
- app_menu->add_action(GCommonActions::make_quit_action([](auto&) {
- GApplication::the().quit(0);
+ auto app_menu = GUI::Menu::construct("Piano");
+ app_menu->add_action(GUI::CommonActions::make_quit_action([](auto&) {
+ GUI::Application::the().quit(0);
return;
}));
menubar->add_menu(move(app_menu));
- auto help_menu = GMenu::construct("Help");
- help_menu->add_action(GAction::create("About", [&](const GAction&) {
- GAboutDialog::show("Piano", load_png("/res/icons/32x32/app-piano.png"), window);
+ auto help_menu = GUI::Menu::construct("Help");
+ help_menu->add_action(GUI::Action::create("About", [&](const GUI::Action&) {
+ GUI::AboutDialog::show("Piano", load_png("/res/icons/32x32/app-piano.png"), window);
}));
menubar->add_menu(move(help_menu));