expose count widgets for duplicate track dialog
This commit is contained in:
parent
aeb7246977
commit
7598520fa6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue