diff options
author | Daniel Sheeler <dsheeler@pobox.com> | 2017-06-02 17:23:00 -0500 |
---|---|---|
committer | Daniel Sheeler <dsheeler@pobox.com> | 2017-06-03 21:44:48 -0500 |
commit | 2c41df947488671e78fc3947ed0065103024a09f (patch) | |
tree | 8573161acabaea18e028f29f6c9777cee256c8de /gtk2_ardour/add_route_dialog.h | |
parent | 11ba1854b398c72e93cd42efeec6aa48a4e9a125 (diff) |
add route dialog now has "Add" and "Add and Close" buttons. "Add" keeps dialog open so user can add multiple templates.
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r-- | gtk2_ardour/add_route_dialog.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h index 1a57103926..c79fe477c8 100644 --- a/gtk2_ardour/add_route_dialog.h +++ b/gtk2_ardour/add_route_dialog.h @@ -51,6 +51,11 @@ class AddRouteDialog : public ArdourDialog AddRouteDialog (); ~AddRouteDialog (); + enum ResponseId { + Add, + AddAndClose, + }; + enum TypeWanted { AudioTrack, MidiTrack, @@ -75,6 +80,10 @@ class AddRouteDialog : public ArdourDialog RouteDialogs::InsertAt insert_at(); bool use_strict_io(); + void on_response (int response_id) { + Gtk::Dialog::on_response (response_id); + } + private: Gtk::Entry name_template_entry; Gtk::ComboBoxText track_bus_combo; |