1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 20:52:09 +01:00
This commit is contained in:
Leland Lucius
2015-05-24 06:24:27 -05:00
parent c749ffc471
commit cd11ddea43
6 changed files with 38 additions and 47 deletions

41
src/effects/Contrast.cpp Normal file → Executable file
View File

@@ -53,47 +53,6 @@
#include "../PlatformCompatibility.h"
static ContrastDialog *gContrastDialog = NULL;
void InitContrastDialog(wxWindow * parent)
{
if(!gContrastDialog)
{
wxPoint where;
where.x = 150;
where.y = 150;
gContrastDialog = new ContrastDialog(parent, -1, _("Contrast Analysis (WCAG 2 compliance)"), where);
gContrastDialog->bFGset = false;
gContrastDialog->bBGset = false;
}
// Zero dialog boxes. Do we need to do this here?
if( !gContrastDialog->bFGset )
{
gContrastDialog->mForegroundStartT->SetValue(0.0);
gContrastDialog->mForegroundEndT->SetValue(0.0);
}
if( !gContrastDialog->bBGset )
{
gContrastDialog->mBackgroundStartT->SetValue(0.0);
gContrastDialog->mBackgroundEndT->SetValue(0.0);
}
gContrastDialog->CentreOnParent();
gContrastDialog->Show();
}
void CloseContrastDialog()
{
if (gContrastDialog) {
delete gContrastDialog;
gContrastDialog = NULL;
}
}
float ContrastDialog::GetDB()
{
// FIXME: what if more than one track?