Add tooltip for edit mode selector. Shorten strings used in the selector to save horizontal space.

git-svn-id: svn://localhost/ardour2/branches/3.0@7564 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-08 02:20:21 +00:00
parent 606a65321d
commit 26605c7d08
2 changed files with 8 additions and 22 deletions

View file

@ -3094,6 +3094,7 @@ Editor::setup_tooltips ()
ARDOUR_UI::instance()->set_tip (edit_point_selector, _("Edit point"));
ARDOUR_UI::instance()->set_tip (midi_sound_notes, _("Sound Notes"));
ARDOUR_UI::instance()->set_tip (midi_panic_button, _("Send note off and reset controller messages on all MIDI channels"));
ARDOUR_UI::instance()->set_tip (edit_mode_selector, _("Edit Mode"));
}
void
@ -3501,22 +3502,7 @@ Editor::cycle_edit_mode ()
void
Editor::edit_mode_selection_done ()
{
if (_session == 0) {
return;
}
string choice = edit_mode_selector.get_active_text();
EditMode mode = Slide;
if (choice == _("Splice Edit")) {
mode = Splice;
} else if (choice == _("Slide Edit")) {
mode = Slide;
} else if (choice == _("Lock Edit")) {
mode = Lock;
}
Config->set_edit_mode (mode);
Config->set_edit_mode (string_to_edit_mode (edit_mode_selector.get_active_text ()));
}
void

View file

@ -309,11 +309,11 @@ compute_equal_power_fades (nframes_t nframes, float* in, float* out)
EditMode
string_to_edit_mode (string str)
{
if (str == _("Splice Edit")) {
if (str == _("Splice")) {
return Splice;
} else if (str == _("Slide Edit")) {
} else if (str == _("Slide")) {
return Slide;
} else if (str == _("Lock Edit")) {
} else if (str == _("Lock")) {
return Lock;
}
fatal << string_compose (_("programming error: unknown edit mode string \"%1\""), str) << endmsg;
@ -326,14 +326,14 @@ edit_mode_to_string (EditMode mode)
{
switch (mode) {
case Slide:
return _("Slide Edit");
return _("Slide");
case Lock:
return _("Lock Edit");
return _("Lock");
default:
case Splice:
return _("Splice Edit");
return _("Splice");
}
}