summaryrefslogtreecommitdiff
path: root/Applications/Piano/main.cpp
diff options
context:
space:
mode:
authorWilliam McPherson <willmcpherson2@gmail.com>2020-06-17 19:34:25 +1000
committerAndreas Kling <kling@serenityos.org>2020-06-18 16:42:37 +0200
commit34ee76984cb1f0dfb2977ac53a23cf640531aa68 (patch)
tree25443e41608f61f41327aad4ed46f3180b31c94f /Applications/Piano/main.cpp
parentee52572ca1bc382e6ccaf8e59e02db2b15157ac8 (diff)
downloadserenity-34ee76984cb1f0dfb2977ac53a23cf640531aa68.zip
Piano: Expose multi-track functionality
This commit adds some actions for creating and cycling through tracks. set_octave_and_ensure_note_change() was refactored to allow switching tracks to implement the same behaviour. KnobsWidget is getting pretty bad.
Diffstat (limited to 'Applications/Piano/main.cpp')
-rw-r--r--Applications/Piano/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp
index 0310a29de3..b48afdcc50 100644
--- a/Applications/Piano/main.cpp
+++ b/Applications/Piano/main.cpp
@@ -117,6 +117,9 @@ int main(int argc, char** argv)
GUI::AboutDialog::show("Piano", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-piano.png"), window);
}));
+ auto& edit_menu = menubar->add_menu("Edit");
+ main_widget.add_actions(edit_menu);
+
app.set_menubar(move(menubar));
return app.exec();