virtual */
| 535 | } |
| 536 | |
| 537 | /* virtual */ bool TextfileWindow::OnTooltip([[maybe_unused]] Point pt, WidgetID widget, TooltipCloseCondition close_cond) |
| 538 | { |
| 539 | if (widget != WID_TF_BACKGROUND) return false; |
| 540 | |
| 541 | const Hyperlink *link = this->GetHyperlink(pt); |
| 542 | if (link == nullptr) return false; |
| 543 | |
| 544 | GuiShowTooltips(this, GetEncodedString(STR_JUST_RAW_STRING, link->destination), close_cond); |
| 545 | |
| 546 | return true; |
| 547 | } |
| 548 | |
| 549 | /* virtual */ void TextfileWindow::DrawWidget(const Rect &r, WidgetID widget) const |
| 550 | { |
no test coverage detected