From cef97eefeab9864274a92862dbea568b2079eb8e Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Sun, 12 Jul 2020 11:36:14 -0700 Subject: [PATCH] Simplify tooltip for perspective control lines Only show how to draw new lines and delete a single line. Move the tooltip activation area to the label. --- rtdata/languages/default | 2 +- rtgui/perspective.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtdata/languages/default b/rtdata/languages/default index 9fd301eba..399d8f041 100644 --- a/rtdata/languages/default +++ b/rtdata/languages/default @@ -2880,7 +2880,7 @@ TP_PERSPECTIVE_CAMERA_SHIFT_HORIZONTAL;Horizontal shift TP_PERSPECTIVE_CAMERA_SHIFT_VERTICAL;Vertical shift TP_PERSPECTIVE_CAMERA_YAW;Horizontal TP_PERSPECTIVE_CONTROL_LINES;Control lines -TP_PERSPECTIVE_CONTROL_LINES_TOOLTIP;Correct perspective distortion by drawing control lines.\n\nTo draw a line, activate either the vertical or horizontal drawing button. Hold down the control key and click-and-drag to draw a line. At least two vertical lines are required for vertical perspective correction. The same is true for horizontal correction. Click the tick mark button to apply perspective correction. +TP_PERSPECTIVE_CONTROL_LINES_TOOLTIP;Ctrl+drag: Draw new line\nRight-click: Delete line TP_PERSPECTIVE_HORIZONTAL;Horizontal TP_PERSPECTIVE_LABEL;Perspective TP_PERSPECTIVE_METHOD;Method diff --git a/rtgui/perspective.cc b/rtgui/perspective.cc index a113a13f9..a8a1f73d3 100644 --- a/rtgui/perspective.cc +++ b/rtgui/perspective.cc @@ -204,8 +204,8 @@ PerspCorrection::PerspCorrection () : FoldableToolPanel(this, "perspective", M(" lines->callbacks = std::make_shared(this); Gtk::HBox* control_lines_box = Gtk::manage (new Gtk::HBox()); - control_lines_box->set_tooltip_text( M("TP_PERSPECTIVE_CONTROL_LINES_TOOLTIP") ); Gtk::Label* control_lines_label = Gtk::manage (new Gtk::Label (M("TP_PERSPECTIVE_CONTROL_LINES") + ": ")); + control_lines_label->set_tooltip_markup( M("TP_PERSPECTIVE_CONTROL_LINES_TOOLTIP") ); control_lines_box->pack_start(*control_lines_label, Gtk::PACK_SHRINK); control_lines_box->pack_start(*lines_button_edit); control_lines_box->pack_start(*lines_button_apply);