1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

Tooltips for Wave & Note track vertical rulers

This commit is contained in:
Paul Licameli 2017-07-16 22:54:24 -04:00
parent 77d5a4cfa8
commit bb970364c8
2 changed files with 10 additions and 4 deletions

View File

@ -55,9 +55,12 @@ HitTestPreview NoteTrackVZoomHandle::HitPreview(const wxMouseState &state)
::MakeCursor(wxCURSOR_MAGNIFIER, ZoomInCursorXpm, 19, 15); ::MakeCursor(wxCURSOR_MAGNIFIER, ZoomInCursorXpm, 19, 15);
static auto zoomOutCursor = static auto zoomOutCursor =
::MakeCursor(wxCURSOR_MAGNIFIER, ZoomOutCursorXpm, 19, 15); ::MakeCursor(wxCURSOR_MAGNIFIER, ZoomOutCursorXpm, 19, 15);
const auto message =
_("Click to verticaly zoom in, Shift-click to zoom out, Drag to create a particular zoom region.");
return { return {
_("Click to verticaly zoom in, Shift-click to zoom out, Drag to create a particular zoom region."), message,
(state.ShiftDown() ? &*zoomOutCursor : &*zoomInCursor) (state.ShiftDown() ? &*zoomOutCursor : &*zoomInCursor),
message
}; };
} }

View File

@ -501,9 +501,12 @@ HitTestPreview WaveTrackVZoomHandle::HitPreview(const wxMouseState &state)
::MakeCursor(wxCURSOR_MAGNIFIER, ZoomInCursorXpm, 19, 15); ::MakeCursor(wxCURSOR_MAGNIFIER, ZoomInCursorXpm, 19, 15);
static auto zoomOutCursor = static auto zoomOutCursor =
::MakeCursor(wxCURSOR_MAGNIFIER, ZoomOutCursorXpm, 19, 15); ::MakeCursor(wxCURSOR_MAGNIFIER, ZoomOutCursorXpm, 19, 15);
const auto message =
_("Click to vertically zoom in. Shift-click to zoom out. Drag to specify a zoom region.");
return { return {
_("Click to vertically zoom in. Shift-click to zoom out. Drag to specify a zoom region."), message,
(state.ShiftDown() ? &*zoomOutCursor : &*zoomInCursor) (state.ShiftDown() ? &*zoomOutCursor : &*zoomInCursor),
message
}; };
} }