new keymouse action mute/unmute region (m)
git-svn-id: svn://localhost/trunk/ardour2@287 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b0686e9056
commit
048e756240
|
@ -205,6 +205,7 @@
|
|||
<menuitem action='audition-at-mouse'/>
|
||||
<menuitem action='brush-at-mouse'/>
|
||||
<menuitem action='set-edit-cursor'/>
|
||||
<menuitem action='mute-unmute-region'/>
|
||||
<menuitem action='set-playhead'/>
|
||||
<menuitem action='split-region'/>
|
||||
<menuitem action='set-region-sync-position'/>
|
||||
|
|
|
@ -1186,6 +1186,7 @@ class Editor : public PublicEditor
|
|||
void kbd_driver (sigc::slot<void,GdkEvent*>, bool use_track_canvas = true, bool use_time_canvas = true, bool can_select = true);
|
||||
void kbd_set_playhead_cursor ();
|
||||
void kbd_set_edit_cursor ();
|
||||
void kbd_mute_unmute_region ();
|
||||
void kbd_split ();
|
||||
void kbd_set_sync_position ();
|
||||
void kbd_align (ARDOUR::RegionPoint);
|
||||
|
|
|
@ -144,6 +144,7 @@ Editor::register_actions ()
|
|||
act = ActionManager::register_action (editor_actions, "brush-at-mouse", _("brush at mouse"), mem_fun(*this, &Editor::kbd_brush));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (editor_actions, "set-edit-cursor", _("set edit cursor"), mem_fun(*this, &Editor::kbd_set_edit_cursor));
|
||||
act = ActionManager::register_action (editor_actions, "mute-unmute-region", _("mute/unmute region"), mem_fun(*this, &Editor::kbd_mute_unmute_region));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (editor_actions, "set-playhead", _("set playhead"), mem_fun(*this, &Editor::kbd_set_playhead_cursor));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
|
|
@ -94,6 +94,13 @@ Editor::kbd_split ()
|
|||
kbd_driver (mem_fun(*this, &Editor::kbd_do_split), true, true, false);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::kbd_mute_unmute_region ()
|
||||
{
|
||||
if (entered_regionview) {
|
||||
entered_regionview->region.set_muted (!entered_regionview->region.muted());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::kbd_set_sync_position ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user