mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 23:51:14 +02:00
No TrackPanel tooltips for now, may later reenable selected ones...
... perhaps for the TCP buttons, to make their behavior consistent with toolbar buttons.
This commit is contained in:
parent
e55393af69
commit
5644bed8bd
@ -21,12 +21,14 @@ struct HitTestPreview
|
|||||||
HitTestPreview()
|
HitTestPreview()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
HitTestPreview(const wxString &message_, wxCursor *cursor_)
|
HitTestPreview(const wxString &message_, wxCursor *cursor_,
|
||||||
: message(message_), cursor(cursor_)
|
const wxString &tooltip_ = {})
|
||||||
|
: message(message_), cursor(cursor_), tooltip(tooltip_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
wxString message {};
|
wxString message {};
|
||||||
wxCursor *cursor {};
|
wxCursor *cursor {};
|
||||||
|
wxString tooltip{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -901,7 +901,7 @@ void TrackPanel::HandleMotion
|
|||||||
newTrack = static_cast<CommonTrackPanelCell*>( newCell.get() )->
|
newTrack = static_cast<CommonTrackPanelCell*>( newCell.get() )->
|
||||||
FindTrack();
|
FindTrack();
|
||||||
|
|
||||||
wxString tip{};
|
wxString status{}, tooltip{};
|
||||||
wxCursor *pCursor{};
|
wxCursor *pCursor{};
|
||||||
unsigned refreshCode = 0;
|
unsigned refreshCode = 0;
|
||||||
|
|
||||||
@ -974,7 +974,8 @@ void TrackPanel::HandleMotion
|
|||||||
// Update status message and cursor, whether dragging or not
|
// Update status message and cursor, whether dragging or not
|
||||||
if (handle) {
|
if (handle) {
|
||||||
auto preview = handle->Preview( tpmState, GetProject() );
|
auto preview = handle->Preview( tpmState, GetProject() );
|
||||||
tip = preview.message;
|
status = preview.message;
|
||||||
|
tooltip = preview.tooltip;
|
||||||
pCursor = preview.cursor;
|
pCursor = preview.cursor;
|
||||||
auto code = handle->GetChangeHighlight();
|
auto code = handle->GetChangeHighlight();
|
||||||
handle->SetChangeHighlight(RefreshCode::RefreshNone);
|
handle->SetChangeHighlight(RefreshCode::RefreshNone);
|
||||||
@ -988,9 +989,10 @@ void TrackPanel::HandleMotion
|
|||||||
|
|
||||||
if (HasEscape())
|
if (HasEscape())
|
||||||
/* i18n-hint TAB is a key on the keyboard */
|
/* i18n-hint TAB is a key on the keyboard */
|
||||||
tip += wxT(" "), tip += _("(Esc to cancel)");
|
status += wxT(" "), status += _("(Esc to cancel)");
|
||||||
this->SetToolTip(tip);
|
mListener->TP_DisplayStatusMessage(status);
|
||||||
mListener->TP_DisplayStatusMessage(tip);
|
if (!tooltip.empty())
|
||||||
|
this->SetToolTip(tooltip);
|
||||||
if (pCursor)
|
if (pCursor)
|
||||||
SetCursor( *pCursor );
|
SetCursor( *pCursor );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user