mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 08:30:06 +02:00
Update a couple of variable names.
This commit is contained in:
parent
35c2e5d227
commit
1ad878771f
@ -1847,7 +1847,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
|
|
||||||
bool isWithinStart = IsWithinMarker(mousePosX, mPlayRegionStart);
|
bool isWithinStart = IsWithinMarker(mousePosX, mPlayRegionStart);
|
||||||
bool isWithinEnd = IsWithinMarker(mousePosX, mPlayRegionEnd);
|
bool isWithinEnd = IsWithinMarker(mousePosX, mPlayRegionEnd);
|
||||||
bool canDragLoopSel = !mPlayRegionLock && mPlayRegionDragsSelection;
|
bool canDragSel = !mPlayRegionLock && mPlayRegionDragsSelection;
|
||||||
|
|
||||||
mLastMouseX = mousePosX;
|
mLastMouseX = mousePosX;
|
||||||
|
|
||||||
@ -1949,15 +1949,15 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
break;
|
break;
|
||||||
case mesDraggingPlayRegionStart:
|
case mesDraggingPlayRegionStart:
|
||||||
mPlayRegionStart = mQuickPlayPos;
|
mPlayRegionStart = mQuickPlayPos;
|
||||||
if (canDragLoopSel) {
|
if (canDragSel) {
|
||||||
DragLoopSelection();
|
DragSelection();
|
||||||
}
|
}
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
case mesDraggingPlayRegionEnd:
|
case mesDraggingPlayRegionEnd:
|
||||||
mPlayRegionEnd = mQuickPlayPos;
|
mPlayRegionEnd = mQuickPlayPos;
|
||||||
if (canDragLoopSel) {
|
if (canDragSel) {
|
||||||
DragLoopSelection();
|
DragSelection();
|
||||||
}
|
}
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
@ -2152,7 +2152,7 @@ void AdornedRulerPanel::OnSyncSelToQuickPlay(wxCommandEvent& evt)
|
|||||||
gPrefs->Flush();
|
gPrefs->Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdornedRulerPanel::DragLoopSelection()
|
void AdornedRulerPanel::DragSelection()
|
||||||
{
|
{
|
||||||
if (mPlayRegionStart < mPlayRegionEnd) {
|
if (mPlayRegionStart < mPlayRegionEnd) {
|
||||||
mProject->SetSel0(mPlayRegionStart);
|
mProject->SetSel0(mPlayRegionStart);
|
||||||
|
@ -326,7 +326,7 @@ private:
|
|||||||
// Pop-up menu
|
// Pop-up menu
|
||||||
//
|
//
|
||||||
void ShowMenu(const wxPoint & pos);
|
void ShowMenu(const wxPoint & pos);
|
||||||
void DragLoopSelection();
|
void DragSelection();
|
||||||
void OnToggleQuickPlay(wxCommandEvent &evt);
|
void OnToggleQuickPlay(wxCommandEvent &evt);
|
||||||
void OnSyncSelToQuickPlay(wxCommandEvent &evt);
|
void OnSyncSelToQuickPlay(wxCommandEvent &evt);
|
||||||
void OnTimelineToolTips(wxCommandEvent &evt);
|
void OnTimelineToolTips(wxCommandEvent &evt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user