, clicked_control_point (0)
, button_release_can_deselect (true)
, _mouse_changed_selection (false)
- , track_region_edit_playlist_menu (0)
- , track_edit_playlist_submenu (0)
- , track_selection_edit_playlist_submenu (0)
, _popup_region_menu_item (0)
, _track_canvas (0)
, _track_canvas_viewport (0)
, meter_marker_menu (0)
, marker_menu (0)
, range_marker_menu (0)
- , transport_marker_menu (0)
, new_transport_marker_menu (0)
- , cd_marker_menu (0)
, marker_menu_item (0)
, bbt_beat_subdivision (4)
, _visible_track_count (-1)
_ignore_region_action = false;
_last_region_menu_was_main = false;
- _popup_region_menu_item = 0;
_show_marker_lines = false;
Editor::~Editor()
{
+ delete tempo_marker_menu;
+ delete meter_marker_menu;
+ delete marker_menu;
+ delete range_marker_menu;
+ delete new_transport_marker_menu;
+ delete editor_ruler_menu;
+ delete _popup_region_menu_item;
+
delete button_bindings;
delete _routes;
delete _route_groups;
ENSURE_GUI_THREAD (*this, &Editor::access_action, action_group, action_item)
RefPtr<Action> act;
- act = ActionManager::get_action (action_group.c_str(), action_item.c_str());
-
- if (act) {
- act->activate();
+ try {
+ act = ActionManager::get_action (action_group.c_str(), action_item.c_str());
+ if (act) {
+ act->activate();
+ }
+ } catch ( ActionManager::MissingActionException const& e) {
+ cerr << "MissingActionException:" << e.what () << endl;
}
}
edit_items.push_back (MenuElem (_("Select"), *select_menu));
/* Cut-n-Paste */
-
+#if 0 // unused, why?
Menu *cutnpaste_menu = manage (new Menu);
MenuList& cutnpaste_items = cutnpaste_menu->items();
cutnpaste_menu->set_name ("ArdourContextMenu");
cutnpaste_items.push_back (MenuElem (_("Cut"), sigc::mem_fun(*this, &Editor::cut)));
cutnpaste_items.push_back (MenuElem (_("Copy"), sigc::mem_fun(*this, &Editor::copy)));
cutnpaste_items.push_back (MenuElem (_("Paste"), sigc::bind (sigc::mem_fun(*this, &Editor::paste), 1.0f, true)));
+#endif
Menu *nudge_menu = manage (new Menu());
MenuList& nudge_items = nudge_menu->items();
void
Editor::set_edit_point_preference (EditPoint ep, bool force)
{
+ if (Profile->get_mixbus()) {
+ if (ep == EditAtSelectedMarker) {
+ ep = EditAtPlayhead;
+ }
+ }
+
bool changed = (_edit_point != ep);
_edit_point = ep;
- if (Profile->get_mixbus())
- if (ep == EditAtSelectedMarker)
- ep = EditAtPlayhead;
string str = edit_point_strings[(int)ep];
if (str != edit_point_selector.get_text ()) {
action = "edit-at-playhead";
break;
case EditAtSelectedMarker:
- action = "edit-at-marker";
+ action = "edit-at-selected-marker";
break;
case EditAtMouse:
action = "edit-at-mouse";
Glib::RefPtr<SizeGroup> mouse_mode_size_group = SizeGroup::create (SIZE_GROUP_VERTICAL);
mouse_mode_size_group->add_widget (smart_mode_button);
mouse_mode_size_group->add_widget (mouse_move_button);
- mouse_mode_size_group->add_widget (mouse_cut_button);
+ if (!Profile->get_mixbus()) {
+ mouse_mode_size_group->add_widget (mouse_cut_button);
+ }
mouse_mode_size_group->add_widget (mouse_select_button);
mouse_mode_size_group->add_widget (mouse_timefx_button);
- mouse_mode_size_group->add_widget (mouse_audition_button);
+ if (!Profile->get_mixbus()) {
+ mouse_mode_size_group->add_widget (mouse_audition_button);
+ }
mouse_mode_size_group->add_widget (mouse_draw_button);
mouse_mode_size_group->add_widget (mouse_content_button);
{
begin_reversible_command (_("new playlists"));
vector<boost::shared_ptr<ARDOUR::Playlist> > playlists;
- _session->playlists->get (playlists);
+ _session->playlists()->get (playlists);
mapover_tracks (sigc::bind (sigc::mem_fun (*this, &Editor::mapped_use_new_playlist), playlists), v, ARDOUR::Properties::group_select.property_id);
commit_reversible_command ();
}
{
begin_reversible_command (_("copy playlists"));
vector<boost::shared_ptr<ARDOUR::Playlist> > playlists;
- _session->playlists->get (playlists);
+ _session->playlists()->get (playlists);
mapover_tracks (sigc::bind (sigc::mem_fun (*this, &Editor::mapped_use_copy_playlist), playlists), v, ARDOUR::Properties::group_select.property_id);
commit_reversible_command ();
}
{
begin_reversible_command (_("clear playlists"));
vector<boost::shared_ptr<ARDOUR::Playlist> > playlists;
- _session->playlists->get (playlists);
+ _session->playlists()->get (playlists);
mapover_tracks (sigc::mem_fun (*this, &Editor::mapped_clear_playlist), v, ARDOUR::Properties::group_select.property_id);
commit_reversible_command ();
}
* button to inactive (which also unticks the menu option)
*/
- ActionManager::uncheck_toggleaction ("<Actions>/Editor/show-editor-mixer");
+ ActionManager::uncheck_toggleaction ("Editor/show-editor-mixer");
}
}
}