diff --git a/gtk2_ardour/mixer_snapshot_substitution_dialog.cc b/gtk2_ardour/mixer_snapshot_substitution_dialog.cc index 8cd57cc76c..b638458db0 100644 --- a/gtk2_ardour/mixer_snapshot_substitution_dialog.cc +++ b/gtk2_ardour/mixer_snapshot_substitution_dialog.cc @@ -23,11 +23,14 @@ #include #include "mixer_snapshot_substitution_dialog.h" +#include "mixer_strip.h" +#include "mixer_ui.h" #include "ardour/mixer_snapshot.h" #include "ardour/utils.h" #include "pbd/i18n.h" +#include "pbd/stateful.h" using namespace ARDOUR; using namespace Gtk; @@ -78,12 +81,26 @@ MixerSnapshotSubstitutionDialog::MixerSnapshotSubstitutionDialog(MixerSnapshot* table->attach(*selection_combo, 1, 2, n, n+1); n++; + vector routes = _snapshot->get_routes(); + for(vector::iterator i = routes.begin(); i != routes.end(); i++) { + string name = (*i).name; + + boost::shared_ptr new_route (new Route (*_snapshot->get_session(), name)); + new_route->init(); + + //this is too volatile right now but will need to be resolved + // new_route->set_state((*i).node, Stateful::loading_state_version); + + MixerStrip* strip = new MixerStrip(*Mixer_UI::instance(), _snapshot->get_session(), new_route, false); + route_packer.pack_start(*strip); + } add_button (Stock::CANCEL, RESPONSE_CANCEL); add_button (Stock::APPLY, RESPONSE_ACCEPT); set_default_response(RESPONSE_ACCEPT); get_vbox()->pack_start(*table, true, true); + get_vbox()->pack_start(route_packer, false, true); } void MixerSnapshotSubstitutionDialog::fill_combo_box(ComboBoxText* box, const string route_name) diff --git a/gtk2_ardour/mixer_snapshot_substitution_dialog.h b/gtk2_ardour/mixer_snapshot_substitution_dialog.h index 3e7050973c..639b990d15 100644 --- a/gtk2_ardour/mixer_snapshot_substitution_dialog.h +++ b/gtk2_ardour/mixer_snapshot_substitution_dialog.h @@ -50,6 +50,7 @@ private: std::vector substitutions; ARDOUR::MixerSnapshot* _snapshot; + Gtk::HBox route_packer; }; #endif /* __ardour_mixer_snapshot_substitution_dialog_h__ */ \ No newline at end of file