![]() |
Audacity 3.2.0
|
#include <Contrast.h>
Public Member Functions | |
ContrastDialog (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos) | |
![]() | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Attributes | |
wxButton * | m_pButton_UseCurrentF |
wxButton * | m_pButton_UseCurrentB |
wxButton * | m_pButton_GetURL |
wxButton * | m_pButton_Export |
wxButton * | m_pButton_Reset |
wxButton * | m_pButton_Close |
NumericTextCtrl * | mForegroundStartT |
NumericTextCtrl * | mForegroundEndT |
NumericTextCtrl * | mBackgroundStartT |
NumericTextCtrl * | mBackgroundEndT |
double | mT0 |
double | mT1 |
double | mProjectRate |
double | mStartTimeF |
double | mEndTimeF |
double | mStartTimeB |
double | mEndTimeB |
Private Member Functions | |
void | OnChar (wxKeyEvent &event) |
void | OnGetURL (wxCommandEvent &event) |
void | OnExport (wxCommandEvent &event) |
void | OnGetForeground (wxCommandEvent &event) |
void | OnGetBackground (wxCommandEvent &event) |
void | results () |
void | OnReset (wxCommandEvent &event) |
void | OnClose (wxCommandEvent &event) |
bool | GetDB (float &dB) |
void | SetStartAndEndTime () |
Private Attributes | |
wxTextCtrl * | mForegroundRMSText |
wxTextCtrl * | mBackgroundRMSText |
wxTextCtrl * | mPassFailText |
wxTextCtrl * | mDiffText |
float | foregrounddB |
float | backgrounddB |
bool | mForegroundIsDefined |
bool | mBackgroundIsDefined |
double | mT0orig |
double | mT1orig |
bool | mDoBackground |
double | length |
Definition at line 27 of file Contrast.h.
ContrastDialog::ContrastDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const TranslatableString & | title, | ||
const wxPoint & | pos | ||
) |
Definition at line 193 of file Contrast.cpp.
References NumericTextCtrl::Options::AutoPos(), backgrounddB, eCloseButton, eHelpButton, eIsCreating, FindProjectFromWindow(), foregrounddB, ProjectRate::Get(), ProjectRate::GetRate(), NumericConverterFormats::HundredthsFormat(), ID_BACKGROUNDDB_TEXT, ID_BACKGROUNDEND_T, ID_BACKGROUNDSTART_T, ID_BUTTON_EXPORT, ID_BUTTON_RESET, ID_BUTTON_USECURRENTB, ID_BUTTON_USECURRENTF, ID_FOREGROUNDDB_TEXT, ID_FOREGROUNDEND_T, ID_FOREGROUNDSTART_T, ID_RESULTS_TEXT, ID_RESULTSDB_TEXT, Internal, label, m_pButton_Close, m_pButton_Export, m_pButton_GetURL, m_pButton_Reset, m_pButton_UseCurrentB, m_pButton_UseCurrentF, mBackgroundEndT, mBackgroundIsDefined, mBackgroundRMSText, mBackgroundStartT, mDiffText, NumericTextCtrl::Options::MenuEnabled(), mForegroundEndT, mForegroundIsDefined, mForegroundRMSText, mForegroundStartT, mPassFailText, mProjectRate, mT0, mT1, NumericConverterType_TIME(), OnChar(), NumericTextCtrl::Options::ReadOnly(), S, safenew, FormatterContext::SampleRateContext(), wxDialogWrapper::SetName(), wxT(), XO(), and XXO().
|
private |
Definition at line 53 of file Contrast.cpp.
References FindProjectFromWindow(), TrackList::Get(), INFINITY, LINEAR_TO_DB, min(), mT0, mT1, TrackList::Selected(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::size(), staffpad::audio::simd::sqrt(), and XO().
Referenced by OnGetBackground(), and OnGetForeground().
|
private |
Definition at line 179 of file Contrast.cpp.
Referenced by ContrastDialog().
|
private |
Definition at line 367 of file Contrast.cpp.
References OnReset(), and ExportProgressUI::Show().
|
private |
Definition at line 529 of file Contrast.cpp.
References FileNames::AllFiles, AudacityMessageBox(), backgrounddB, FindProjectFromWindow(), foregrounddB, anonymous_namespace{Contrast.cpp}::FormatDifferenceForExport(), anonymous_namespace{Contrast.cpp}::FormatRMSMessage(), ProjectFileIO::Get(), ProjectFileIO::GetFileName(), NumericConverter::GetValue(), mBackgroundEndT, mBackgroundIsDefined, mBackgroundStartT, mForegroundEndT, mForegroundIsDefined, mForegroundStartT, project, SelectFile(), FileNames::TextFiles, wxT(), and XO().
|
private |
Definition at line 391 of file Contrast.cpp.
References backgrounddB, FindProjectFromWindow(), ViewInfo::Get(), TrackList::Get(), GetDB(), m_pButton_UseCurrentB, mBackgroundEndT, mBackgroundIsDefined, mBackgroundStartT, results(), TrackList::Selected(), ViewInfo::selectedRegion, SetStartAndEndTime(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 375 of file Contrast.cpp.
References FindProjectFromWindow(), foregrounddB, ViewInfo::Get(), TrackList::Get(), GetDB(), m_pButton_UseCurrentF, mForegroundEndT, mForegroundIsDefined, mForegroundStartT, results(), TrackList::Selected(), ViewInfo::selectedRegion, SetStartAndEndTime(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 360 of file Contrast.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 635 of file Contrast.cpp.
References _, mBackgroundEndT, mBackgroundIsDefined, mBackgroundRMSText, mBackgroundStartT, mDiffText, mForegroundEndT, mForegroundIsDefined, mForegroundRMSText, mForegroundStartT, mPassFailText, NumericTextCtrl::SetValue(), and wxT().
Referenced by OnClose().
|
private |
Definition at line 469 of file Contrast.cpp.
References _, backgrounddB, DB_MAX_LIMIT, foregrounddB, anonymous_namespace{Contrast.cpp}::FormatDifference(), mBackgroundIsDefined, mBackgroundRMSText, mDiffText, mForegroundIsDefined, mForegroundRMSText, mPassFailText, WCAG2_PASS, and wxT().
Referenced by OnGetBackground(), and OnGetForeground().
|
private |
Definition at line 136 of file Contrast.cpp.
References FindProjectFromWindow(), ViewInfo::Get(), mT0, mT1, and ViewInfo::selectedRegion.
Referenced by OnGetBackground(), and OnGetForeground().
|
private |
Definition at line 71 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), and results().
|
private |
Definition at line 70 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), and results().
|
private |
Definition at line 81 of file Contrast.h.
wxButton* ContrastDialog::m_pButton_Close |
Definition at line 39 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_Export |
Definition at line 37 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_GetURL |
Definition at line 36 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_Reset |
Definition at line 38 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_UseCurrentB |
Definition at line 35 of file Contrast.h.
Referenced by ContrastDialog(), and OnGetBackground().
wxButton* ContrastDialog::m_pButton_UseCurrentF |
Definition at line 34 of file Contrast.h.
Referenced by ContrastDialog(), and OnGetForeground().
NumericTextCtrl* ContrastDialog::mBackgroundEndT |
Definition at line 44 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), and OnReset().
|
private |
Definition at line 73 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), OnReset(), and results().
|
private |
Definition at line 66 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
NumericTextCtrl* ContrastDialog::mBackgroundStartT |
Definition at line 43 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), and OnReset().
|
private |
Definition at line 68 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
|
private |
Definition at line 77 of file Contrast.h.
double ContrastDialog::mEndTimeB |
Definition at line 52 of file Contrast.h.
double ContrastDialog::mEndTimeF |
Definition at line 50 of file Contrast.h.
NumericTextCtrl* ContrastDialog::mForegroundEndT |
Definition at line 42 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), and OnReset().
|
private |
Definition at line 72 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), OnReset(), and results().
|
private |
Definition at line 65 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
NumericTextCtrl* ContrastDialog::mForegroundStartT |
Definition at line 41 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), and OnReset().
|
private |
Definition at line 67 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
double ContrastDialog::mProjectRate |
Definition at line 48 of file Contrast.h.
Referenced by ContrastDialog().
double ContrastDialog::mStartTimeB |
Definition at line 51 of file Contrast.h.
double ContrastDialog::mStartTimeF |
Definition at line 49 of file Contrast.h.
double ContrastDialog::mT0 |
Definition at line 46 of file Contrast.h.
Referenced by ContrastDialog(), GetDB(), and SetStartAndEndTime().
|
private |
Definition at line 74 of file Contrast.h.
double ContrastDialog::mT1 |
Definition at line 47 of file Contrast.h.
Referenced by ContrastDialog(), GetDB(), and SetStartAndEndTime().
|
private |
Definition at line 75 of file Contrast.h.