Add track-rec/mute/solo actions to menu, so users can bind them

Make Fit-Tracks sensitive to track selections
This commit is contained in:
Ben Loftis 2014-07-24 15:47:05 -05:00
parent 6e37afeee5
commit 3876b48879
2 changed files with 9 additions and 3 deletions

View File

@ -311,6 +311,11 @@
<menu action='TrackMenu'>
<menuitem action='AddTrackBus'/>
<separator/>
<menuitem action='track-record-enable-toggle'/>
<menuitem action='track-solo-toggle'/>
<menuitem action='track-mute-toggle'/>
<separator/>
<menuitem action='insert-time'/>
<menuitem action="move-selected-tracks-up"/>
<menuitem action="move-selected-tracks-down"/>
@ -322,8 +327,8 @@
<menuitem action='track-height-normal'/>
<menuitem action='track-height-small'/>
</menu>
<menuitem action='track-record-enable-toggle'/>
<menuitem action='toggle-track-active'/>
<separator/>
<menuitem action='toggle-track-active'/>
<menuitem action='remove-track'/>
</menu>

View File

@ -405,7 +405,8 @@ Editor::register_actions ()
}
ActionManager::track_selection_sensitive_actions.push_back (act);
reg_sens (editor_actions, "fit-tracks", _("Fit Selected Tracks"), sigc::mem_fun(*this, &Editor::fit_selected_tracks));
act = reg_sens (editor_actions, "fit-tracks", _("Fit Selected Tracks"), sigc::mem_fun(*this, &Editor::fit_selected_tracks));
ActionManager::track_selection_sensitive_actions.push_back (act);
act = reg_sens (editor_actions, "track-height-largest", _("Largest"), sigc::bind (
sigc::mem_fun(*this, &Editor::set_track_height), HeightLargest));