13
0

Clarify Control point edit dialog messages, add tooltip

This commit is contained in:
Robin Gareus 2023-07-11 01:09:42 +02:00
parent 4c8b414fb6
commit 8145e92b43
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -19,6 +19,8 @@
#include <string> #include <string>
#include <gtkmm/stock.h> #include <gtkmm/stock.h>
#include "gtkmm2ext/gtk_ui.h"
#include "automation_line.h" #include "automation_line.h"
#include "control_point.h" #include "control_point.h"
#include "control_point_dialog.h" #include "control_point_dialog.h"
@ -34,7 +36,7 @@
ControlPointDialog::ControlPointDialog (ControlPoint* p, bool multi) ControlPointDialog::ControlPointDialog (ControlPoint* p, bool multi)
: ArdourDialog (_("Control point")) : ArdourDialog (_("Control point"))
, point_ (p) , point_ (p)
, toggle_all_ (_("Change all selected points")) , toggle_all_ (_("Apply to selected points"))
, all_selected_points_ (true) , all_selected_points_ (true)
{ {
assert (point_); assert (point_);
@ -66,10 +68,13 @@ ControlPointDialog::ControlPointDialog (ControlPoint* p, bool multi)
b->pack_start (*Gtk::manage (new Gtk::Label (val.substr (sep + 1)))); b->pack_start (*Gtk::manage (new Gtk::Label (val.substr (sep + 1))));
} }
get_vbox ()->pack_start (*b); get_vbox ()->pack_start (*b);
if (multi) {
toggle_all_.set_active (true); toggle_all_.set_active (true);
get_vbox ()->pack_start (toggle_all_); get_vbox ()->pack_start (toggle_all_);
} Gtkmm2ext::UI::instance()->set_tip (toggle_all_,
_("<b>When enabled</b> the given value is applied to all selected automation points on the same line as the point being edited.\n\n"
"<b>When disabled</b> only the current automation point is modified."));
toggle_all_.set_sensitive (multi);
get_vbox ()->set_spacing (4); get_vbox ()->set_spacing (4);
show_all (); show_all ();