From 0526b8c98ad057d62785c4ec80c7b0a10f1a4dc2 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Sat, 26 Feb 2011 23:17:26 +0000 Subject: [PATCH] Adjust some comments. --- src/AboutDialog.cpp | 10 +++++----- src/AboutDialog.h | 2 +- src/Lyrics.cpp | 2 +- src/Lyrics.h | 2 +- src/SplashDialog.cpp | 8 ++++---- src/blockfile/LegacyAliasBlockFile.cpp | 2 +- src/blockfile/LegacyBlockFile.cpp | 2 +- src/widgets/ASlider.cpp | 10 +++++----- src/widgets/Meter.cpp | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp index 3141856f8..df9de0d7b 100644 --- a/src/AboutDialog.cpp +++ b/src/AboutDialog.cpp @@ -280,8 +280,8 @@ void AboutDialog::PopulateAudacityPage( ShuttleGui & S ) S.StartNotebookPage( _("Audacity") ); S.StartVerticalLay(1); - //vvv For now, change to AudacityLogoWithName via old-fashioned way, not Theme. - logo = new wxBitmap((const char **) AudacityLogoWithName_xpm); //vvv + //v For now, change to AudacityLogoWithName via old-fashioned way, not Theme. + logo = new wxBitmap((const char **) AudacityLogoWithName_xpm); //v // JKC: Resize to 50% of size. Later we may use a smaller xpm as // our source, but this allows us to tweak the size - if we want to. @@ -294,9 +294,9 @@ void AboutDialog::PopulateAudacityPage( ShuttleGui & S ) icon = new wxStaticBitmap(S.GetParent(), -1, - //*logo, //vvv - //vvv theTheme.Bitmap(bmpAudacityLogo), wxPoint(93, 10), wxSize(215, 190)); - //vvv theTheme.Bitmap(bmpAudacityLogoWithName), + //*logo, //v + //v theTheme.Bitmap(bmpAudacityLogo), wxPoint(93, 10), wxSize(215, 190)); + //v theTheme.Bitmap(bmpAudacityLogoWithName), RescaledBitmap, wxDefaultPosition, wxSize(int(LOGOWITHNAME_WIDTH*fScale), int(LOGOWITHNAME_HEIGHT*fScale))); diff --git a/src/AboutDialog.h b/src/AboutDialog.h index 0a55e814e..144a51550 100644 --- a/src/AboutDialog.h +++ b/src/AboutDialog.h @@ -36,7 +36,7 @@ class AboutDialog:public wxDialog { wxBoxSizer *topsizer; wxStaticBitmap *icon; - wxBitmap *logo; //vvv + wxBitmap *logo; //v DECLARE_EVENT_TABLE() diff --git a/src/Lyrics.cpp b/src/Lyrics.cpp index 6b72a6599..7b33a4948 100644 --- a/src/Lyrics.cpp +++ b/src/Lyrics.cpp @@ -56,7 +56,7 @@ void HighlightTextCtrl::OnMouseEvent(wxMouseEvent& event) AudacityProject* pProj = GetActiveProject(); pProj->SetSel0(pCurSyl->t); - //vvv Should probably select to end as in AudacityProject::OnSelectCursorEnd, + //v Should probably select to end as in AudacityProject::OnSelectCursorEnd, // but better to generalize that in AudacityProject methods. pProj->mViewInfo.sel1 = pCurSyl->t; } diff --git a/src/Lyrics.h b/src/Lyrics.h index c511c7397..a6cab1d55 100644 --- a/src/Lyrics.h +++ b/src/Lyrics.h @@ -116,7 +116,7 @@ private: int mWidth; // client width int mHeight; // client height - int mKaraokeHeight; //vvv mHeight - mBrandingHeight (so just mHeight now that Branding is removed). + int mKaraokeHeight; //v mHeight - mBrandingHeight (so just mHeight now that Branding is removed). unsigned int mKaraokeFontSize; LyricsStyle mLyricsStyle; // default kHighlightLyrics diff --git a/src/SplashDialog.cpp b/src/SplashDialog.cpp index 771f99e50..3a93242bb 100644 --- a/src/SplashDialog.cpp +++ b/src/SplashDialog.cpp @@ -65,7 +65,7 @@ SplashDialog::SplashDialog(wxWindow * parent) { this->SetBackgroundColour(theTheme.Colour( clrAboutBoxBackground )); m_pIcon = NULL; - m_pLogo = NULL; //vvv + m_pLogo = NULL; //v ShuttleGui S( this, eIsCreating ); Populate( S ); Fit(); @@ -82,8 +82,8 @@ void SplashDialog::Populate( ShuttleGui & S ) gPrefs->Read(wxT("/GUI/ShowSplashScreen"), &bShow, true ); S.StartVerticalLay(1); - //vvv For now, change to AudacityLogoWithName via old-fashioned ways, not Theme. - m_pLogo = new wxBitmap((const char **) AudacityLogoWithName_xpm); //vvv + //v For now, change to AudacityLogoWithName via old-fashioned ways, not Theme. + m_pLogo = new wxBitmap((const char **) AudacityLogoWithName_xpm); //v // JKC: Resize to 50% of size. Later we may use a smaller xpm as // our source, but this allows us to tweak the size - if we want to. @@ -95,7 +95,7 @@ void SplashDialog::Populate( ShuttleGui & S ) wxBitmap RescaledBitmap( RescaledImage ); m_pIcon = new wxStaticBitmap(S.GetParent(), -1, - //*m_pLogo, //vvv theTheme.Bitmap(bmpAudacityLogoWithName), + //*m_pLogo, //v theTheme.Bitmap(bmpAudacityLogoWithName), RescaledBitmap, wxDefaultPosition, wxSize(int(LOGOWITHNAME_WIDTH*fScale), int(LOGOWITHNAME_HEIGHT*fScale))); diff --git a/src/blockfile/LegacyAliasBlockFile.cpp b/src/blockfile/LegacyAliasBlockFile.cpp index 6808b37c5..b4e4e52d9 100644 --- a/src/blockfile/LegacyAliasBlockFile.cpp +++ b/src/blockfile/LegacyAliasBlockFile.cpp @@ -99,7 +99,7 @@ BlockFile *LegacyAliasBlockFile::BuildFromXML(wxString projDir, const wxChar **a const wxString strValue = value; if (!wxStricmp(attr, wxT("name")) && XMLValueChecker::IsGoodFileName(strValue, projDir)) - //vvv Should this be + //v Should this be // dm.AssignFile(summaryFileName, strValue, false); // as in PCMAliasBlockFile::BuildFromXML? Test with an old project. summaryFileName.Assign(projDir, strValue, wxT("")); diff --git a/src/blockfile/LegacyBlockFile.cpp b/src/blockfile/LegacyBlockFile.cpp index 79b755bf8..2b3cae18e 100644 --- a/src/blockfile/LegacyBlockFile.cpp +++ b/src/blockfile/LegacyBlockFile.cpp @@ -304,7 +304,7 @@ BlockFile *LegacyBlockFile::BuildFromXML(wxString projDir, const wxChar **attrs, const wxString strValue = value; if (!wxStricmp(attr, wxT("name")) && XMLValueChecker::IsGoodFileName(strValue, projDir)) - //vvv Should this be + //v Should this be // dm.AssignFile(fileName, strValue, false); // as in PCMAliasBlockFile::BuildFromXML? Test with an old project. fileName.Assign(projDir, strValue); diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index b4acd24e2..0efd20b5f 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -349,7 +349,7 @@ void LWSlider::SetStyle(int style) if (mOrientation == wxHORIZONTAL) mMaxValue = DB_MAX; else - mMaxValue = DB_MAX; // for MixerBoard //vvv Previously was 6dB for MixerBoard, but identical for now. + mMaxValue = DB_MAX; // for MixerBoard //v Previously was 6dB for MixerBoard, but identical for now. mStepValue = 1.0f; mSpeed = 0.5; mName = _("Gain"); @@ -609,7 +609,7 @@ void LWSlider::Draw() mThumbBitmap = &theTheme.Bitmap( bmpSliderThumb ); mThumbBitmapAllocated = false; } - //vvv \todo Convert this to an image in AllThemeResources, as bmpSliderThumb. Make an alpha also, as for horizontal slider thumb? + //v \todo Convert this to an image in AllThemeResources, as bmpSliderThumb. Make an alpha also, as for horizontal slider thumb? else if (mOrientation == wxHORIZONTAL) { wxImage thumbImage(wxBitmap(SliderThumbDisabled).ConvertToImage()); @@ -701,7 +701,7 @@ void LWSlider::Draw() if (mOrientation == wxHORIZONTAL) AColor::Line(*dc, mLeftX, mCenterY+1, mRightX+2, mCenterY+1); - else //vvv if (mStyle != DB_SLIDER) // Let the ruler do it for vertical DB_SLIDER. + else //v if (mStyle != DB_SLIDER) // Let the ruler do it for vertical DB_SLIDER. AColor::Line(*dc, mCenterX+1, mTopY, mCenterX+1, mBottomY+2); @@ -773,7 +773,7 @@ void LWSlider::Draw() } } - //vvv 20090820: Ruler doesn't align with slider correctly -- yet. + //v 20090820: Ruler doesn't align with slider correctly -- yet. //if ((mOrientation == wxVERTICAL) && (mStyle == DB_SLIDER)) //{ // if (!mpRuler) @@ -797,7 +797,7 @@ void LWSlider::Draw() // mpRuler->SetRange(mMaxValue, mMinValue); // mpRuler->SetFormat(Ruler::LinearDBFormat); // } - // mpRuler->SetBounds(mLeft, mTop, mWidth, mHeightY); //vvv Why the magic number reqd on height to get it to line up? + 9); + // mpRuler->SetBounds(mLeft, mTop, mWidth, mHeightY); //v Why the magic number reqd on height to get it to line up? + 9); // mpRuler->Draw(*dc); //} //else diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp index 0154956a5..e32e5fb9e 100644 --- a/src/widgets/Meter.cpp +++ b/src/widgets/Meter.cpp @@ -814,7 +814,7 @@ void Meter::HandleLayout() left += mLeftSize.x+4; } mRightTextPos = wxPoint(width-mLeftSize.x, height-2-mLeftSize.y); - width -= mLeftSize.x + mRightSize.x + 8; //vvv ...but then -8 in UmixIt? -- for vertical only? + width -= mLeftSize.x + mRightSize.x + 8; //v ...but then -8 in UmixIt? -- for vertical only? } barw = (width-2)/2; barh = height - 4;