mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
prefs editing widgets for region-edit-disposition
This commit is contained in:
parent
368189c4f6
commit
4826a90796
2 changed files with 22 additions and 1 deletions
|
|
@ -1921,7 +1921,11 @@ Editor::edit_region (RegionView* rv)
|
||||||
break;
|
break;
|
||||||
case Editing::OpenBottomPane:
|
case Editing::OpenBottomPane:
|
||||||
if (!att_bottom_visible()) {
|
if (!att_bottom_visible()) {
|
||||||
/* XXX do something */
|
Glib::RefPtr<Gtk::Action> act = bottom_attachment_button.get_related_action();
|
||||||
|
Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
|
||||||
|
if (tact) {
|
||||||
|
tact->set_active (true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
maybe_edit_region_in_bottom_pane (*rv);
|
maybe_edit_region_in_bottom_pane (*rv);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -3421,6 +3421,23 @@ These settings will only take effect after %1 is restarted.\n\
|
||||||
1, 10
|
1, 10
|
||||||
));
|
));
|
||||||
|
|
||||||
|
add_option (_("Editor"), new OptionEditorHeading (_("Region Editing")));
|
||||||
|
ComboOption<Editing::RegionEditDisposition>* red = new ComboOption<Editing::RegionEditDisposition> (
|
||||||
|
"region-edit-disposition",
|
||||||
|
_("Region Editing Preference"),
|
||||||
|
sigc::mem_fun (UIConfiguration::instance(),
|
||||||
|
&UIConfiguration::get_region_edit_disposition),
|
||||||
|
sigc::mem_fun (UIConfiguration::instance(),
|
||||||
|
&UIConfiguration::set_region_edit_disposition)
|
||||||
|
);
|
||||||
|
|
||||||
|
red->add (Editing::BottomPaneOnly, _("Only ever use the bottom pane"));
|
||||||
|
red->add (Editing::OpenBottomPane, _("Open bottom pane, if necessary"));
|
||||||
|
red->add (Editing::PreferBottomPane, _("Use bottom pane if visible, or own window"));
|
||||||
|
red->add (Editing::BottomPaneOnly, _("Always use a separate window"));
|
||||||
|
|
||||||
|
add_option (_("Editor"), red);
|
||||||
|
|
||||||
add_option (_("Editor/Snap"),
|
add_option (_("Editor/Snap"),
|
||||||
new BoolOption (
|
new BoolOption (
|
||||||
"show-snapped-cursor",
|
"show-snapped-cursor",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue