Playlist UI tweaks: add Actions and menu items for global plist functions
This commit is contained in:
parent
a8395718bc
commit
1665d0e1bc
@ -411,6 +411,15 @@
|
|||||||
<menuitem action='track-record-enable-toggle'/>
|
<menuitem action='track-record-enable-toggle'/>
|
||||||
<menuitem action='track-solo-toggle'/>
|
<menuitem action='track-solo-toggle'/>
|
||||||
<menuitem action='track-mute-toggle'/>
|
<menuitem action='track-mute-toggle'/>
|
||||||
|
<menu action='TrackPlaylistMenu'>
|
||||||
|
<menuitem action='new-playlists-for-all-tracks'/>
|
||||||
|
<menuitem action='new-playlists-for-armed-tracks'/>
|
||||||
|
<menuitem action='new-playlists-for-selected-tracks'/>
|
||||||
|
<separator/>
|
||||||
|
<menuitem action='copy-playlists-for-all-tracks'/>
|
||||||
|
<menuitem action='copy-playlists-for-armed-tracks'/>
|
||||||
|
<menuitem action='copy-playlists-for-selected-tracks'/>
|
||||||
|
</menu>
|
||||||
<separator/>
|
<separator/>
|
||||||
<menuitem action='insert-time'/>
|
<menuitem action='insert-time'/>
|
||||||
<menuitem action='remove-time'/>
|
<menuitem action='remove-time'/>
|
||||||
|
@ -180,6 +180,7 @@ Editor::register_actions ()
|
|||||||
ActionManager::stripable_selection_sensitive_actions.push_back (act);
|
ActionManager::stripable_selection_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
ActionManager::register_action (editor_menu_actions, X_("TrackMenu"), _("Track"));
|
ActionManager::register_action (editor_menu_actions, X_("TrackMenu"), _("Track"));
|
||||||
|
ActionManager::register_action (editor_menu_actions, X_("TrackPlaylistMenu"), _("Playlists"));
|
||||||
ActionManager::register_action (editor_menu_actions, X_("Tools"), _("Tools"));
|
ActionManager::register_action (editor_menu_actions, X_("Tools"), _("Tools"));
|
||||||
ActionManager::register_action (editor_menu_actions, X_("View"), _("View"));
|
ActionManager::register_action (editor_menu_actions, X_("View"), _("View"));
|
||||||
ActionManager::register_action (editor_menu_actions, X_("ZoomFocus"), _("Zoom Focus"));
|
ActionManager::register_action (editor_menu_actions, X_("ZoomFocus"), _("Zoom Focus"));
|
||||||
@ -459,6 +460,16 @@ Editor::register_actions ()
|
|||||||
ActionManager::track_selection_sensitive_actions.push_back (act);
|
ActionManager::track_selection_sensitive_actions.push_back (act);
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
|
/*global playlist actions */
|
||||||
|
ActionManager::register_action (editor_actions, "new-playlists-for-armed-tracks", _("New Playlist For Rec-Armed Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_armed_tracks), false));
|
||||||
|
ActionManager::register_action (editor_actions, "new-playlists-for-all-tracks", _("New Playlist For All Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_all_tracks), false));
|
||||||
|
act = ActionManager::register_action (editor_actions, "new-playlists-for-selected-tracks", _("New Playlist For Selected Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_selected_tracks), false));
|
||||||
|
ActionManager::stripable_selection_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
|
ActionManager::register_action (editor_actions, "copy-playlists-for-armed-tracks", _("Copy Playlist For Rec-Armed Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_armed_tracks), true));
|
||||||
|
ActionManager::register_action (editor_actions, "copy-playlists-for-all-tracks", _("Copy Playlist For All Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_all_tracks), true));
|
||||||
|
act = ActionManager::register_action (editor_actions, "copy-playlists-for-selected-tracks", _("Copy Playlist For Selected Tracks"), sigc::bind (sigc::mem_fun (*this, &Editor::new_playlists_for_selected_tracks), true));
|
||||||
|
ActionManager::stripable_selection_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
act = reg_sens (editor_actions, "toggle-track-active", _("Toggle Active"), (sigc::mem_fun(*this, &Editor::toggle_tracks_active)));
|
act = reg_sens (editor_actions, "toggle-track-active", _("Toggle Active"), (sigc::mem_fun(*this, &Editor::toggle_tracks_active)));
|
||||||
ActionManager::route_selection_sensitive_actions.push_back (act);
|
ActionManager::route_selection_sensitive_actions.push_back (act);
|
||||||
|
Loading…
Reference in New Issue
Block a user