Audacity  2.2.2
Contrast.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Contrast.h
6 
7 **********************************************************************/
8 
9 #ifndef __AUDACITY_CONTRAST_DIALOG__
10 #define __AUDACITY_CONTRAST_DIALOG__
11 
12 #include "../widgets/wxPanelWrapper.h"
13 
14 class wxButton;
15 class wxSizer;
16 class wxString;
17 class wxTextCtrl;
18 
19 class Envelope;
20 class NumericTextCtrl;
21 class WaveTrack;
22 
23 //----------------------------------------------------------------------------
24 // ContrastDialog
25 //----------------------------------------------------------------------------
26 
27 // Declare window functions
28 
29 class ContrastDialog final : public wxDialogWrapper
30 {
31 public:
32  // constructors and destructors
33  ContrastDialog(wxWindow * parent, wxWindowID id,
34  const wxString & title, const wxPoint & pos);
35 
38  wxButton * m_pButton_GetURL;
39  wxButton * m_pButton_Export;
40  wxButton * m_pButton_Reset;
41  wxButton * m_pButton_Close;
42 
47 
48  double mT0;
49  double mT1;
50  double mProjectRate;
51  double mStartTimeF;
52  double mEndTimeF;
53  double mStartTimeB;
54  double mEndTimeB;
55 
56 private:
57  // handlers
58  void OnGetURL(wxCommandEvent &event);
59  void OnExport(wxCommandEvent &event);
60  void OnGetForeground(wxCommandEvent & event);
61  void OnGetBackground(wxCommandEvent & event);
62  void results();
63  void OnReset(wxCommandEvent & event);
64  void OnClose(wxCommandEvent & event);
65 
66  wxTextCtrl *mForegroundRMSText;
67  wxTextCtrl *mBackgroundRMSText;
68  wxTextCtrl *mPassFailText;
69  wxTextCtrl *mDiffText;
70 
71  float foregrounddB;
72  float backgrounddB;
75  double mT0orig;
76  double mT1orig;
77 
79  bool GetDB(float & dB);
80  void SetStartAndEndTime();
81 
82  double length;
83 
84  DECLARE_EVENT_TABLE()
85 
86 };
87 
88 #endif
void OnClose(wxCommandEvent &event)
Definition: Contrast.cpp:336
double mProjectRate
Definition: Contrast.h:50
double mT1orig
Definition: Contrast.h:76
bool mForegroundIsDefined
Definition: Contrast.h:73
double mT1
Definition: Contrast.h:49
void OnGetURL(wxCommandEvent &event)
Definition: Contrast.cpp:329
double mT0orig
Definition: Contrast.h:75
wxTextCtrl * mDiffText
Definition: Contrast.h:69
wxButton * m_pButton_Export
Definition: Contrast.h:39
void results()
Definition: Contrast.cpp:437
Draggable curve used in TrackPanel for varying amplification.
Definition: Envelope.h:77
double mEndTimeF
Definition: Contrast.h:52
double mEndTimeB
Definition: Contrast.h:54
void OnExport(wxCommandEvent &event)
Definition: Contrast.cpp:496
wxButton * m_pButton_UseCurrentF
Definition: Contrast.h:36
wxButton * m_pButton_GetURL
Definition: Contrast.h:38
double mStartTimeF
Definition: Contrast.h:51
wxTextCtrl * mForegroundRMSText
Definition: Contrast.h:66
wxTextCtrl * mPassFailText
Definition: Contrast.h:68
void OnGetForeground(wxCommandEvent &event)
Definition: Contrast.cpp:344
void SetStartAndEndTime()
Definition: Contrast.cpp:113
void OnReset(wxCommandEvent &event)
Definition: Contrast.cpp:594
NumericTextCtrl * mForegroundStartT
Definition: Contrast.h:43
wxTextCtrl * mBackgroundRMSText
Definition: Contrast.h:67
wxButton * m_pButton_UseCurrentB
Definition: Contrast.h:37
A Track that contains audio waveform data.
Definition: WaveTrack.h:60
wxButton * m_pButton_Close
Definition: Contrast.h:41
bool GetDB(float &dB)
Definition: Contrast.cpp:43
wxButton * m_pButton_Reset
Definition: Contrast.h:40
bool mDoBackground
Definition: Contrast.h:78
void OnGetBackground(wxCommandEvent &event)
Definition: Contrast.cpp:360
ContrastDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos)
Definition: Contrast.cpp:170
double mT0
Definition: Contrast.h:48
double length
Definition: Contrast.h:82
float foregrounddB
Definition: Contrast.h:71
double mStartTimeB
Definition: Contrast.h:53
NumericTextCtrl * mBackgroundStartT
Definition: Contrast.h:45
float backgrounddB
Definition: Contrast.h:72
NumericTextCtrl * mForegroundEndT
Definition: Contrast.h:44
bool mBackgroundIsDefined
Definition: Contrast.h:74
NumericTextCtrl * mBackgroundEndT
Definition: Contrast.h:46