1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00
audacity/src/effects/Contrast.h
Steve Daulton ff6a82ae8c Goodbye to magic number in Contrast.cpp
Also added several TODO and FIXME comments for ongoing fixes.
2016-03-24 13:05:03 +00:00

102 lines
2.4 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
Contrast.h
**********************************************************************/
#ifndef __AUDACITY_CONTRAST_DIALOG__
#define __AUDACITY_CONTRAST_DIALOG__
#include <wx/dialog.h>
#include <wx/slider.h>
class wxButton;
class wxSizer;
class wxString;
class wxTextCtrl;
class Envelope;
class NumericTextCtrl;
class WaveTrack;
//----------------------------------------------------------------------------
// ContrastDialog
//----------------------------------------------------------------------------
// Declare window functions
class ContrastDialog final : public wxDialog
{
public:
// constructors and destructors
ContrastDialog(wxWindow * parent, wxWindowID id,
const wxString & title, const wxPoint & pos);
~ContrastDialog();
void OnGetForegroundDB( wxCommandEvent &event );
void OnGetBackgroundDB( wxCommandEvent &event );
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;
bool bFGset;
bool bBGset;
double mT0;
double mT1;
double mProjectRate;
double mStartTimeF;
double mEndTimeF;
double mStartTimeB;
double mEndTimeB;
private:
// handlers
void OnGetURL(wxCommandEvent &event);
void OnExport(wxCommandEvent &event);
void OnForegroundStartT(wxCommandEvent & event);
void OnForegroundEndT(wxCommandEvent & event);
void OnUseSelectionF(wxCommandEvent & event);
void OnUseSelectionB(wxCommandEvent & event);
void results();
void OnReset(wxCommandEvent & event);
void OnClose(wxCommandEvent & event);
void OnChar(wxKeyEvent &event);
wxTextCtrl *mForegroundRMSText;
wxTextCtrl *mBackgroundRMSText;
wxTextCtrl *mPassFailText;
wxTextCtrl *mDiffText;
float foregrounddB;
float backgrounddB;
bool mForegroundIsDefined;
bool mBackgroundIsDefined;
double mT0orig;
double mT1orig;
bool mDoBackground;
bool GetDB(float & dB);
double GetStartTime();
void SetStartTime(double);
double GetEndTime();
void SetEndTime(double);
double length;
DECLARE_EVENT_TABLE()
};
#endif