From 7598520fa6d3635449637c3377de3eb0f72278db Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 14 Nov 2015 10:35:07 -0500 Subject: [PATCH] expose count widgets for duplicate track dialog --- gtk2_ardour/duplicate_routes_dialog.cc | 9 ++++++++- gtk2_ardour/duplicate_routes_dialog.h | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/duplicate_routes_dialog.cc b/gtk2_ardour/duplicate_routes_dialog.cc index 4c0e26b454..17d2acd62f 100644 --- a/gtk2_ardour/duplicate_routes_dialog.cc +++ b/gtk2_ardour/duplicate_routes_dialog.cc @@ -30,12 +30,19 @@ DuplicateRouteDialog::DuplicateRouteDialog () , share_playlists_button (playlist_button_group, _("Share playlists")) , count_adjustment (1.0, 1.0, 999, 1.0, 10.0) , count_spinner (count_adjustment) + , count_label (_("Duplicate each track/bus this number of times")) { playlist_button_box.pack_start (copy_playlists_button, false, false); playlist_button_box.pack_start (new_playlists_button, false, false); playlist_button_box.pack_start (share_playlists_button, false, false); get_vbox()->pack_start (playlist_button_box, false, false); + + count_box.pack_start (count_label, false, false); + count_box.pack_start (count_spinner, false, false); + + get_vbox()->pack_start (count_box, false, false, 20); + get_vbox()->show_all (); add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); @@ -59,7 +66,7 @@ DuplicateRouteDialog::playlist_disposition() const return ARDOUR::NewPlaylist; } else if (copy_playlists_button.get_active()) { return ARDOUR::CopyPlaylist; - } + } return ARDOUR::SharePlaylist; } diff --git a/gtk2_ardour/duplicate_routes_dialog.h b/gtk2_ardour/duplicate_routes_dialog.h index 8182c8826a..4ba0313465 100644 --- a/gtk2_ardour/duplicate_routes_dialog.h +++ b/gtk2_ardour/duplicate_routes_dialog.h @@ -50,6 +50,8 @@ class DuplicateRouteDialog : public ArdourDialog Gtk::RadioButton share_playlists_button; Gtk::Adjustment count_adjustment; Gtk::SpinButton count_spinner; + Gtk::HBox count_box; + Gtk::Label count_label; }; #endif /* __gtk_ardour_duplicate_route_dialog_h__ */