Audacity 3.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 "wxPanelWrapper.h" // to inherit
13#include "ContrastBase.h"
14
15class wxButton;
16class wxTextCtrl;
17
18class NumericTextCtrl;
19
20//----------------------------------------------------------------------------
21// ContrastDialog
22//----------------------------------------------------------------------------
23
24// Declare window functions
25
26class ContrastDialog final : public ContrastBase, public wxDialogWrapper
27{
28public:
29 // constructors and destructors
30 ContrastDialog(wxWindow * parent, wxWindowID id,
31 const TranslatableString & title, const wxPoint & pos);
32
35 wxButton * m_pButton_GetURL;
36 wxButton * m_pButton_Export;
37 wxButton * m_pButton_Reset;
38 wxButton * m_pButton_Close;
39
44
45private:
46 // handlers
47 void OnChar(wxKeyEvent &event);
48 void OnGetURL(wxCommandEvent &event);
49 void OnExport(wxCommandEvent &event);
50 void OnGetForeground(wxCommandEvent & event);
51 void OnGetBackground(wxCommandEvent & event);
52 void results();
53 void OnReset(wxCommandEvent & event);
54 void OnClose(wxCommandEvent & event);
55
56 wxTextCtrl *mForegroundRMSText;
57 wxTextCtrl *mBackgroundRMSText;
58 wxTextCtrl *mPassFailText;
59 wxTextCtrl *mDiffText;
60
61 AudacityProject& GetProject() override;
62
63 DECLARE_EVENT_TABLE()
64
65};
66
67#endif
static const auto title
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
NumericTextCtrl * mBackgroundStartT
Definition: Contrast.h:42
wxButton * m_pButton_Close
Definition: Contrast.h:38
AudacityProject & GetProject() override
Definition: Contrast.cpp:557
void OnClose(wxCommandEvent &event)
Definition: Contrast.cpp:272
void OnChar(wxKeyEvent &event)
Definition: Contrast.cpp:84
NumericTextCtrl * mBackgroundEndT
Definition: Contrast.h:43
wxTextCtrl * mBackgroundRMSText
Definition: Contrast.h:57
wxButton * m_pButton_UseCurrentB
Definition: Contrast.h:34
void OnExport(wxCommandEvent &event)
Definition: Contrast.cpp:434
void OnGetBackground(wxCommandEvent &event)
Definition: Contrast.cpp:296
ContrastDialog(wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos)
Definition: Contrast.cpp:98
void results()
Definition: Contrast.cpp:374
NumericTextCtrl * mForegroundStartT
Definition: Contrast.h:40
void OnReset(wxCommandEvent &event)
Definition: Contrast.cpp:540
wxButton * m_pButton_Export
Definition: Contrast.h:36
void OnGetURL(wxCommandEvent &event)
Definition: Contrast.cpp:265
wxTextCtrl * mForegroundRMSText
Definition: Contrast.h:56
wxButton * m_pButton_Reset
Definition: Contrast.h:37
wxTextCtrl * mDiffText
Definition: Contrast.h:59
wxButton * m_pButton_UseCurrentF
Definition: Contrast.h:33
NumericTextCtrl * mForegroundEndT
Definition: Contrast.h:41
void OnGetForeground(wxCommandEvent &event)
Definition: Contrast.cpp:280
wxTextCtrl * mPassFailText
Definition: Contrast.h:58
wxButton * m_pButton_GetURL
Definition: Contrast.h:35
Holds a msgid for the translation catalog; may also bind format arguments.