Audacity  2.2.0
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);
36 
39  wxButton * m_pButton_GetURL;
40  wxButton * m_pButton_Export;
41  wxButton * m_pButton_Reset;
42  wxButton * m_pButton_Close;
43 
48 
49  double mT0;
50  double mT1;
51  double mProjectRate;
52  double mStartTimeF;
53  double mEndTimeF;
54  double mStartTimeB;
55  double mEndTimeB;
56 
57 private:
58  // handlers
59  void OnGetURL(wxCommandEvent &event);
60  void OnExport(wxCommandEvent &event);
61  void OnGetForeground(wxCommandEvent & event);
62  void OnGetBackground(wxCommandEvent & event);
63  void results();
64  void OnReset(wxCommandEvent & event);
65  void OnClose(wxCommandEvent & event);
66  void OnChar(wxKeyEvent &event);
67 
68  wxTextCtrl *mForegroundRMSText;
69  wxTextCtrl *mBackgroundRMSText;
70  wxTextCtrl *mPassFailText;
71  wxTextCtrl *mDiffText;
72 
73  float foregrounddB;
74  float backgrounddB;
77  double mT0orig;
78  double mT1orig;
79 
81  bool GetDB(float & dB);
82  void SetStartAndEndTime();
83 
84  double length;
85 
86  DECLARE_EVENT_TABLE()
87 
88 };
89 
90 #endif
void OnClose(wxCommandEvent &event)
Definition: Contrast.cpp:329
double mProjectRate
Definition: Contrast.h:51
Definition: Contrast.h:29
double mT1orig
Definition: Contrast.h:78
void OnChar(wxKeyEvent &event)
Definition: Contrast.cpp:603
bool mForegroundIsDefined
Definition: Contrast.h:75
double mT1
Definition: Contrast.h:50
void OnGetURL(wxCommandEvent &event)
Definition: Contrast.cpp:322
double mT0orig
Definition: Contrast.h:77
wxTextCtrl * mDiffText
Definition: Contrast.h:71
wxButton * m_pButton_Export
Definition: Contrast.h:40
void results()
Definition: Contrast.cpp:430
Draggable curve used in TrackPanel for varying amplification.
Definition: Envelope.h:78
double mEndTimeF
Definition: Contrast.h:53
double mEndTimeB
Definition: Contrast.h:55
void OnExport(wxCommandEvent &event)
Definition: Contrast.cpp:489
wxButton * m_pButton_UseCurrentF
Definition: Contrast.h:37
Definition: wxPanelWrapper.h:19
wxButton * m_pButton_GetURL
Definition: Contrast.h:39
double mStartTimeF
Definition: Contrast.h:52
wxTextCtrl * mForegroundRMSText
Definition: Contrast.h:68
wxTextCtrl * mPassFailText
Definition: Contrast.h:70
void OnGetForeground(wxCommandEvent &event)
Definition: Contrast.cpp:337
void SetStartAndEndTime()
Definition: Contrast.cpp:106
void OnReset(wxCommandEvent &event)
Definition: Contrast.cpp:586
NumericTextCtrl * mForegroundStartT
Definition: Contrast.h:44
wxTextCtrl * mBackgroundRMSText
Definition: Contrast.h:69
wxButton * m_pButton_UseCurrentB
Definition: Contrast.h:38
A Track that contains audio waveform data.
Definition: WaveTrack.h:76
wxButton * m_pButton_Close
Definition: Contrast.h:42
bool GetDB(float &dB)
Definition: Contrast.cpp:41
wxButton * m_pButton_Reset
Definition: Contrast.h:41
bool mDoBackground
Definition: Contrast.h:80
void OnGetBackground(wxCommandEvent &event)
Definition: Contrast.cpp:353
Definition: NumericTextCtrl.h:141
ContrastDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos)
Definition: Contrast.cpp:149
double mT0
Definition: Contrast.h:49
double length
Definition: Contrast.h:84
float foregrounddB
Definition: Contrast.h:73
double mStartTimeB
Definition: Contrast.h:54
NumericTextCtrl * mBackgroundStartT
Definition: Contrast.h:46
float backgrounddB
Definition: Contrast.h:74
NumericTextCtrl * mForegroundEndT
Definition: Contrast.h:45
~ContrastDialog()
Definition: Contrast.cpp:314
bool mBackgroundIsDefined
Definition: Contrast.h:76
NumericTextCtrl * mBackgroundEndT
Definition: Contrast.h:47