summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-03-12 03:46:11 +1100
committernick_m <mainsbridge@gmail.com>2015-03-12 03:46:11 +1100
commit73d2d44652c5a39e1f213bdda7872b78d61648d3 (patch)
tree1bea009f06459a1bf7f62b1ba2b16772acb56302 /gtk2_ardour/add_route_dialog.h
parent1644fc1068a5c28b78ba70078de3b9b5c7570f72 (diff)
Add route dialog is never a transient window.
Fixes a hack where it's transient parent was used to give an order hint (for the order key of any new tracks). This commit adds a new combobox "insert_at" to let the user tell us where they want new tracks to go.
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r--gtk2_ardour/add_route_dialog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h
index 3a5501e15f..9f11528e58 100644
--- a/gtk2_ardour/add_route_dialog.h
+++ b/gtk2_ardour/add_route_dialog.h
@@ -67,6 +67,12 @@ class AddRouteDialog : public ArdourDialog
ARDOUR::TrackMode mode();
ARDOUR::RouteGroup* route_group ();
+ enum InsertAt {
+ EditorSelection,
+ MixerSelection,
+ End
+ };
+ InsertAt insert_at();
private:
Gtk::Entry name_template_entry;
@@ -80,6 +86,8 @@ class AddRouteDialog : public ArdourDialog
Gtk::ComboBoxText mode_combo;
Gtk::ComboBoxText route_group_combo;
InstrumentSelector instrument_combo;
+ Gtk::Label insert_at_label;
+ Gtk::ComboBoxText insert_at_combo;
std::vector<ARDOUR::TemplateInfo> route_templates;