mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 07:28:17 +01:00
pianoroll: connect to UI config param changes
This commit is contained in:
parent
f4da0ff76d
commit
35ee5a54d5
2 changed files with 12 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ Pianoroll::Pianoroll (std::string const & name, bool with_transport)
|
|||
|
||||
set_action_defaults ();
|
||||
set_mouse_mode (Editing::MouseContent, true);
|
||||
|
||||
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &Pianoroll::parameter_changed));
|
||||
}
|
||||
|
||||
Pianoroll::~Pianoroll ()
|
||||
|
|
@ -1935,3 +1937,12 @@ Pianoroll::instant_save ()
|
|||
CueEditor::instant_save ();
|
||||
}
|
||||
|
||||
void
|
||||
Pianoroll::parameter_changed (std::string param)
|
||||
{
|
||||
if (param == X_("note-name-display")) {
|
||||
if (prh) {
|
||||
prh->instrument_info_change ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,4 +250,5 @@ class Pianoroll : public CueEditor
|
|||
void hide_count_in ();
|
||||
|
||||
void instant_save ();
|
||||
void parameter_changed (std::string param);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue