diff options
author | Robin Gareus <robin@gareus.org> | 2013-04-04 00:51:03 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-04-04 01:05:49 +0200 |
commit | 1040801ffe7a4d51ebd1593b7552d5d2a71be7c7 (patch) | |
tree | 077f249ee8941d600a4047307572a0af96219f52 /gtk2_ardour/editor_actions.cc | |
parent | ddfc047f0e1578277f8e70c454df7b4f85904ff1 (diff) |
vtl: video-monitor letterbox & orig-zoom to menu
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r-- | gtk2_ardour/editor_actions.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 8c81a6122e..fb6cd7df81 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -555,6 +555,8 @@ Editor::register_actions () xjadeo_frame_action = Glib::RefPtr<ToggleAction>::cast_static (ActionManager::register_toggle_action (editor_actions, X_("toggle-vmon-frame"), _("Framenumber"), sigc::bind (sigc::mem_fun (*this, &Editor::set_xjadeo_viewoption), (int) 3))); xjadeo_osdbg_action = Glib::RefPtr<ToggleAction>::cast_static (ActionManager::register_toggle_action (editor_actions, X_("toggle-vmon-osdbg"), _("Timecode Background"), sigc::bind (sigc::mem_fun (*this, &Editor::set_xjadeo_viewoption), (int) 4))); xjadeo_fullscreen_action = Glib::RefPtr<ToggleAction>::cast_static (ActionManager::register_toggle_action (editor_actions, X_("toggle-vmon-fullscreen"), _("Fullscreen"), sigc::bind (sigc::mem_fun (*this, &Editor::set_xjadeo_viewoption), (int) 5))); + xjadeo_letterbox_action = Glib::RefPtr<ToggleAction>::cast_static (ActionManager::register_toggle_action (editor_actions, X_("toggle-vmon-letterbox"), _("Letterbox"), sigc::bind (sigc::mem_fun (*this, &Editor::set_xjadeo_viewoption), (int) 6))); + xjadeo_zoom_100 = reg_sens (editor_actions, "zoom-vmon-100", _("Original Size"), sigc::bind (sigc::mem_fun (*this, &Editor::set_xjadeo_viewoption), (int) 7)); #endif @@ -581,6 +583,9 @@ Editor::register_actions () xjadeo_osdbg_action->set_sensitive (false); xjadeo_fullscreen_action->set_active (false); xjadeo_fullscreen_action->set_sensitive (false); + xjadeo_letterbox_action->set_active (false); + xjadeo_letterbox_action->set_sensitive (false); + xjadeo_zoom_100->set_sensitive (false); #endif if (Profile->get_sae()) { ruler_bbt_action->set_active (true); @@ -800,6 +805,8 @@ Editor::toggle_xjadeo_proc (int state) xjadeo_frame_action->set_sensitive(onoff); xjadeo_osdbg_action->set_sensitive(onoff); xjadeo_fullscreen_action->set_sensitive(onoff); + xjadeo_letterbox_action->set_sensitive(onoff); + xjadeo_zoom_100->set_sensitive(onoff); } void @@ -832,6 +839,11 @@ Editor::toggle_xjadeo_viewoption (int what, int state) case 5: action = xjadeo_fullscreen_action; break; + case 6: + action = xjadeo_letterbox_action; + break; + case 7: + return; default: return; } @@ -869,6 +881,12 @@ Editor::set_xjadeo_viewoption (int what) case 5: action = xjadeo_fullscreen_action; break; + case 6: + action = xjadeo_letterbox_action; + break; + case 7: + ARDOUR_UI::instance()->video_timeline->control_video_monitor(what, 0); + return; default: return; } |