1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

"new"->"NEW" in comments, easier to find remaining naked operator new

This commit is contained in:
Paul Licameli
2016-02-13 10:43:16 -05:00
parent 56e7653343
commit 7c4c45a0d5
143 changed files with 451 additions and 451 deletions

View File

@@ -107,7 +107,7 @@ LabelTrack::LabelTrack(DirManager * projDirManager):
SetName(GetDefaultName());
// Label tracks are narrow
// Default is to allow two rows so that new users get the
// Default is to allow two rows so that NEW users get the
// idea that labels can 'stack' when they would overlap.
SetHeight(73);
@@ -770,7 +770,7 @@ void LabelTrack::Draw(wxDC & dc, const wxRect & r,
// We need to set mTextHeight to something sensible,
// guarding against the case where there are no
// labels or all are empty strings, which for example
// happens with a new label track.
// happens with a NEW label track.
dc.GetTextExtent(wxT("Demo Text x^y"), &textWidth, &textHeight);
mTextHeight = (int)textHeight;
ComputeLayout( r, zoomInfo );
@@ -1159,7 +1159,7 @@ void LabelTrack::SetSelected(bool s)
/// rather than a linear one.
int LabelTrack::OverGlyph(int x, int y)
{
//Determine the new selection.
//Determine the NEW selection.
LabelStruct * pLabel;
int result=0;
const int d1=10; //distance in pixels, used for have we hit drag handle.
@@ -1334,7 +1334,7 @@ LabelStruct::TimeRelations LabelStruct::RegionRelation(
/// @iLabel - index of label, -1 for none.
/// @iEdge - which edge is requested to move, -1 for left +1 for right.
/// @bAllowSwapping - if we can switch which edge is being dragged.
/// fNewTime - the new time for this edge of the label.
/// fNewTime - the NEW time for this edge of the label.
void LabelTrack::MayAdjustLabel( int iLabel, int iEdge, bool bAllowSwapping, double fNewTime)
{
if( iLabel < 0 )
@@ -1435,7 +1435,7 @@ bool LabelTrack::HandleGlyphDragRelease(const wxMouseEvent & evt,
if( mSelIndex >=0 )
{
//Set the selection region to be equal to
//the new size of the label.
//the NEW size of the label.
*newSel = mLabels[mSelIndex]->selectedRegion;
}
SortLabels();
@@ -1610,7 +1610,7 @@ void LabelTrack::HandleClick(const wxMouseEvent & evt,
#if defined(__WXGTK__) && (HAVE_GTK)
if (evt.MiddleDown()) {
// Check for a click outside of the selected label's text box; in this
// case PasteSelectedText() will start a new label at the click
// case PasteSelectedText() will start a NEW label at the click
// location
if (mSelIndex != -1) {
if (!OverTextBox(mLabels[mSelIndex], evt.m_x, evt.m_y))
@@ -1961,9 +1961,9 @@ bool LabelTrack::OnChar(SelectedRegion &WXUNUSED(newSel), wxKeyEvent & event)
return false;
}
// If we've reached this point and aren't currently editing, add new label
// If we've reached this point and aren't currently editing, add NEW label
if (mSelIndex < 0) {
// Don't create a new label for a space
// Don't create a NEW label for a space
if (wxIsspace(charCode)) {
event.Skip();
return false;
@@ -2367,7 +2367,7 @@ bool LabelTrack::Load(wxTextFile * in, DirManager * dirManager)
l->selectedRegion.setT0(t0, false);
// Legacy file format does not include label end-times.
l->selectedRegion.collapseToT0();
// PRL: nothing new to do, legacy file support
// PRL: nothing NEW to do, legacy file support
l->title = in->GetNextLine();
mLabels.Add(l);
}
@@ -2697,7 +2697,7 @@ void LabelTrack::DeleteLabel(int index)
mCurrentCursorPos = 1;
}
// IF we removed a label before the selected label
// THEN the new selected label number is one less.
// THEN the NEW selected label number is one less.
else if( index < mSelIndex )
{
mSelIndex--;