mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
RecorderUI: add some key-bindings
This commit is contained in:
parent
ece37d9ca0
commit
16cbec311a
2 changed files with 12 additions and 5 deletions
|
|
@ -99,6 +99,8 @@ This mode provides many different operations on both regions and control points,
|
||||||
|
|
||||||
%notes MIDI Note Editing
|
%notes MIDI Note Editing
|
||||||
|
|
||||||
|
%rec Recorder Recorder Page
|
||||||
|
|
||||||
;; END GROUP DEFINITIONS
|
;; END GROUP DEFINITIONS
|
||||||
|
|
||||||
;; punctuation
|
;; punctuation
|
||||||
|
|
@ -463,3 +465,5 @@ This mode provides many different operations on both regions and control points,
|
||||||
@notes|Notes/alt-add-select-previous|<@PRIMARY@><@TERTIARY@>ISO_Left_Tab|Select previous note
|
@notes|Notes/alt-add-select-previous|<@PRIMARY@><@TERTIARY@>ISO_Left_Tab|Select previous note
|
||||||
|
|
||||||
|
|
||||||
|
@rec|Recorder/arm-all|<@PRIMARY@>r|record arm all tracks
|
||||||
|
@rec|Recorder/arm-none|<@PRIMARY@><@TERTIARY@>r|disable record arm of all tracks
|
||||||
|
|
|
||||||
|
|
@ -107,16 +107,16 @@ RecorderUI::RecorderUI ()
|
||||||
/* rec all/none */
|
/* rec all/none */
|
||||||
_recs_label.set_text(_("Arm Tracks:"));
|
_recs_label.set_text(_("Arm Tracks:"));
|
||||||
_btn_rec_all.set_name ("generic button");
|
_btn_rec_all.set_name ("generic button");
|
||||||
_btn_rec_all.signal_clicked.connect (sigc::mem_fun (*this, &RecorderUI::arm_all));
|
_btn_rec_all.set_related_action (ActionManager::get_action (X_("Recorder"), X_("arm-all")));
|
||||||
|
|
||||||
_btn_rec_none.set_name ("generic button");
|
_btn_rec_none.set_name ("generic button");
|
||||||
_btn_rec_none.signal_clicked.connect (sigc::mem_fun (*this, &RecorderUI::arm_none));
|
_btn_rec_none.set_related_action (ActionManager::get_action (X_("Recorder"), X_("arm-none")));
|
||||||
|
|
||||||
_btn_rec_forget.set_name ("generic button");
|
_btn_rec_forget.set_name ("generic button");
|
||||||
_btn_rec_forget.set_related_action (ActionManager::get_action (X_("Editor"), X_("remove-last-capture")));
|
_btn_rec_forget.set_related_action (ActionManager::get_action (X_("Editor"), X_("remove-last-capture")));
|
||||||
|
|
||||||
_btn_peak_reset.set_name ("generic button");
|
_btn_peak_reset.set_name ("generic button");
|
||||||
_btn_peak_reset.signal_clicked.connect (sigc::mem_fun (*this, &RecorderUI::peak_reset));
|
_btn_peak_reset.set_related_action (ActionManager::get_action (X_("Recorder"), X_("reset-input-peak-hold")));
|
||||||
|
|
||||||
/* standardize some button width. */
|
/* standardize some button width. */
|
||||||
_toolbar_recarm_width->add_widget (_btn_rec_none);
|
_toolbar_recarm_width->add_widget (_btn_rec_none);
|
||||||
|
|
@ -349,6 +349,9 @@ void
|
||||||
RecorderUI::register_actions ()
|
RecorderUI::register_actions ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (bindings, X_("Recorder"));
|
Glib::RefPtr<ActionGroup> group = ActionManager::create_action_group (bindings, X_("Recorder"));
|
||||||
|
ActionManager::register_action (group, "reset-input-peak-hold", _("Reset Input Peak Hold"), sigc::mem_fun (*this, &RecorderUI::peak_reset));
|
||||||
|
ActionManager::register_action (group, "arm-all", _("Record Arm All Tracks"), sigc::mem_fun (*this, &RecorderUI::arm_all));
|
||||||
|
ActionManager::register_action (group, "arm-none", _("Disable Record Arm of All Tracks"), sigc::mem_fun (*this, &RecorderUI::arm_none));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -443,8 +446,8 @@ RecorderUI::update_sensitivity ()
|
||||||
const bool en = _session ? true : false;
|
const bool en = _session ? true : false;
|
||||||
const bool have_ms = Config->get_use_monitor_bus();
|
const bool have_ms = Config->get_use_monitor_bus();
|
||||||
|
|
||||||
_btn_rec_all.set_sensitive (en);
|
ActionManager::get_action (X_("Recorder"), X_("arm-all"))->set_sensitive (en);
|
||||||
_btn_rec_none.set_sensitive (en);
|
ActionManager::get_action (X_("Recorder"), X_("arm-none"))->set_sensitive (en);
|
||||||
|
|
||||||
for (InputPortMap::const_iterator i = _input_ports.begin (); i != _input_ports.end (); ++i) {
|
for (InputPortMap::const_iterator i = _input_ports.begin (); i != _input_ports.end (); ++i) {
|
||||||
i->second->allow_monitoring (have_ms && en);
|
i->second->allow_monitoring (have_ms && en);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue