holding Primary(ctrl/cmd) allows user to make noncontiguous strip selections

This commit is contained in:
Ben Loftis 2014-07-23 16:13:55 -05:00
parent 870206cf92
commit d46081c275
3 changed files with 13 additions and 1 deletions

View File

@ -307,6 +307,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void show_editor_list (bool yn);
void set_selected_mixer_strip (TimeAxisView&);
void mixer_strip_width_changed ();
bool mixer_strip_enter_event ( GdkEventCrossing * );
void hide_track_in_display (TimeAxisView* tv, bool apply_to_selection = false);
/* nudge is initiated by transport controls owned by ARDOUR_UI */

View File

@ -183,6 +183,16 @@ Editor::create_editor_mixer ()
current_mixer_strip->WidthChanged.connect (sigc::mem_fun(*this, &Editor::ensure_all_elements_drawn));
#endif
current_mixer_strip->set_embedded (true);
current_mixer_strip->signal_enter_notify_event().connect (sigc::mem_fun(*this, &Editor::mixer_strip_enter_event ));
}
bool
Editor::mixer_strip_enter_event (GdkEventCrossing *ev)
{
current_mixer_strip->set_selected(true);
return false;
}
void

View File

@ -130,12 +130,13 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
void toggle_processors ();
void ab_plugins ();
void set_selected(bool yn);
protected:
friend class Mixer_UI;
void set_packed (bool yn);
bool packed () { return _packed; }
void set_selected(bool yn);
void set_stuff_from_route ();
private: