Audacity 3.2.0
|
#include <Contrast.h>
Public Member Functions | |
ContrastDialog (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos) | |
Public Member Functions inherited from wxDialogWrapper | |
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 () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
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 |
Public Attributes inherited from ContrastBase | |
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) |
AudacityProject & | GetProject () override |
Private Attributes | |
wxTextCtrl * | mForegroundRMSText |
wxTextCtrl * | mBackgroundRMSText |
wxTextCtrl * | mPassFailText |
wxTextCtrl * | mDiffText |
Additional Inherited Members | |
Protected Member Functions inherited from ContrastBase | |
bool | GetDB (float &dB) |
void | SetStartAndEndTime () |
Protected Attributes inherited from ContrastBase | |
float | foregrounddB |
float | backgrounddB |
bool | mForegroundIsDefined |
bool | mBackgroundIsDefined |
double | mT0orig |
double | mT1orig |
bool | mDoBackground |
double | length |
Definition at line 26 of file Contrast.h.
ContrastDialog::ContrastDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const TranslatableString & | title, | ||
const wxPoint & | pos | ||
) |
Definition at line 98 of file Contrast.cpp.
References NumericTextCtrl::Options::AutoPos(), ContrastBase::backgrounddB, eCloseButton, eHelpButton, eIsCreating, FindProjectFromWindow(), ContrastBase::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, ContrastBase::mBackgroundIsDefined, mBackgroundRMSText, mBackgroundStartT, mDiffText, NumericTextCtrl::Options::MenuEnabled(), mForegroundEndT, ContrastBase::mForegroundIsDefined, mForegroundRMSText, mForegroundStartT, mPassFailText, ContrastBase::mProjectRate, ContrastBase::mT0, ContrastBase::mT1, NumericConverterType_TIME(), OnChar(), NumericTextCtrl::Options::ReadOnly(), S, safenew, FormatterContext::SampleRateContext(), wxDialogWrapper::SetName(), wxT(), XO(), and XXO().
|
overrideprivatevirtual |
Implements ContrastBase.
Definition at line 557 of file Contrast.cpp.
References FindProjectFromWindow().
|
private |
Definition at line 84 of file Contrast.cpp.
Referenced by ContrastDialog().
|
private |
Definition at line 272 of file Contrast.cpp.
References OnReset(), and ExportProgressUI::Show().
|
private |
Definition at line 434 of file Contrast.cpp.
References FileNames::AllFiles, AudacityMessageBox(), ContrastBase::backgrounddB, FindProjectFromWindow(), ContrastBase::foregrounddB, anonymous_namespace{Contrast.cpp}::FormatDifferenceForExport(), anonymous_namespace{Contrast.cpp}::FormatRMSMessage(), ProjectFileIO::Get(), ProjectFileIO::GetFileName(), NumericConverter::GetValue(), mBackgroundEndT, ContrastBase::mBackgroundIsDefined, mBackgroundStartT, mForegroundEndT, ContrastBase::mForegroundIsDefined, mForegroundStartT, project, SelectFile(), FileNames::TextFiles, wxT(), and XO().
|
private |
Definition at line 296 of file Contrast.cpp.
References ContrastBase::backgrounddB, FindProjectFromWindow(), ViewInfo::Get(), TrackList::Get(), ContrastBase::GetDB(), m_pButton_UseCurrentB, mBackgroundEndT, ContrastBase::mBackgroundIsDefined, mBackgroundStartT, results(), TrackList::Selected(), ViewInfo::selectedRegion, ContrastBase::SetStartAndEndTime(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 280 of file Contrast.cpp.
References FindProjectFromWindow(), ContrastBase::foregrounddB, ViewInfo::Get(), TrackList::Get(), ContrastBase::GetDB(), m_pButton_UseCurrentF, mForegroundEndT, ContrastBase::mForegroundIsDefined, mForegroundStartT, results(), TrackList::Selected(), ViewInfo::selectedRegion, ContrastBase::SetStartAndEndTime(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 265 of file Contrast.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 540 of file Contrast.cpp.
References _, mBackgroundEndT, ContrastBase::mBackgroundIsDefined, mBackgroundRMSText, mBackgroundStartT, mDiffText, mForegroundEndT, ContrastBase::mForegroundIsDefined, mForegroundRMSText, mForegroundStartT, mPassFailText, NumericTextCtrl::SetValue(), and wxT().
Referenced by OnClose().
|
private |
Definition at line 374 of file Contrast.cpp.
References _, ContrastBase::backgrounddB, DB_MAX_LIMIT, ContrastBase::foregrounddB, anonymous_namespace{Contrast.cpp}::FormatDifference(), ContrastBase::mBackgroundIsDefined, mBackgroundRMSText, mDiffText, ContrastBase::mForegroundIsDefined, mForegroundRMSText, mPassFailText, WCAG2_PASS, and wxT().
Referenced by OnGetBackground(), and OnGetForeground().
wxButton* ContrastDialog::m_pButton_Close |
Definition at line 38 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_Export |
Definition at line 36 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_GetURL |
Definition at line 35 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_Reset |
Definition at line 37 of file Contrast.h.
Referenced by ContrastDialog().
wxButton* ContrastDialog::m_pButton_UseCurrentB |
Definition at line 34 of file Contrast.h.
Referenced by ContrastDialog(), and OnGetBackground().
wxButton* ContrastDialog::m_pButton_UseCurrentF |
Definition at line 33 of file Contrast.h.
Referenced by ContrastDialog(), and OnGetForeground().
NumericTextCtrl* ContrastDialog::mBackgroundEndT |
Definition at line 43 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), and OnReset().
|
private |
Definition at line 57 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
NumericTextCtrl* ContrastDialog::mBackgroundStartT |
Definition at line 42 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetBackground(), and OnReset().
|
private |
Definition at line 59 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
NumericTextCtrl* ContrastDialog::mForegroundEndT |
Definition at line 41 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), and OnReset().
|
private |
Definition at line 56 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().
NumericTextCtrl* ContrastDialog::mForegroundStartT |
Definition at line 40 of file Contrast.h.
Referenced by ContrastDialog(), OnExport(), OnGetForeground(), and OnReset().
|
private |
Definition at line 58 of file Contrast.h.
Referenced by ContrastDialog(), OnReset(), and results().