summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-08 23:00:00 -0500
committerDavid Robillard <d@drobilla.net>2014-12-18 20:21:01 -0500
commit5fef65538040fbac1b9edd1847a269aa925a49c9 (patch)
tree398d11d0f563c74ba15fbee3463378b4456d1d94 /gtk2_ardour/editor_actions.cc
parent1b89055526df4d995530c0f3debebc480c33fc41 (diff)
Remove internal edit mode and add "content" tool.
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc20
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index befd2fa1ae..7c3365f91b 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -476,6 +476,11 @@ Editor::register_actions ()
mouse_timefx_button.set_image (::get_icon("tool_stretch"));
mouse_timefx_button.set_name ("mouse mode button");
+ act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-content", _("Content Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseContent));
+ mouse_content_button.set_related_action (act);
+ mouse_content_button.set_image (::get_icon("tool_content"));
+ mouse_content_button.set_name ("mouse mode button");
+
if(!Profile->get_mixbus()) {
act = ActionManager::register_radio_action (mouse_mode_actions, mouse_mode_group, "set-mouse-mode-cut", _("Cut Tool"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_mode_toggled), Editing::MouseCut));
mouse_cut_button.set_related_action (act);
@@ -485,11 +490,6 @@ Editor::register_actions ()
ActionManager::register_action (editor_actions, "step-mouse-mode", _("Step Mouse Mode"), sigc::bind (sigc::mem_fun(*this, &Editor::step_mouse_mode), true));
- act = ActionManager::register_toggle_action (mouse_mode_actions, "toggle-internal-edit", _("Edit MIDI"), sigc::mem_fun(*this, &Editor::toggle_internal_editing));
- internal_edit_button.set_related_action (act);
- internal_edit_button.set_image (::get_icon("tool_note"));
- internal_edit_button.set_name ("mouse mode button");
-
RadioAction::Group edit_point_group;
ActionManager::register_radio_action (editor_actions, edit_point_group, X_("edit-at-playhead"), _("Playhead"), (sigc::bind (sigc::mem_fun(*this, &Editor::edit_point_chosen), Editing::EditAtPlayhead)));
ActionManager::register_radio_action (editor_actions, edit_point_group, X_("edit-at-mouse"), _("Mouse"), (sigc::bind (sigc::mem_fun(*this, &Editor::edit_point_chosen), Editing::EditAtMouse)));
@@ -1759,16 +1759,6 @@ Editor::reset_canvas_action_sensitivity (bool onoff)
}
void
-Editor::toggle_internal_editing ()
-{
- Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("MouseMode"), X_("toggle-internal-edit"));
- if (act) {
- Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
- set_internal_edit (tact->get_active());
- }
-}
-
-void
Editor::register_region_actions ()
{
_region_actions = ActionGroup::create (X_("Region"));