Audacity 3.2.0
EqualizationPanel.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 EqualizationPanel.h
6
7 Mitch Golden
8 Vaughan Johnson (Preview)
9
10 Paul Licameli split from Equalization.h
11
12***********************************************************************/
13
14#ifndef __AUDACITY_EQUALIZATION_PANEL__
15#define __AUDACITY_EQUALIZATION_PANEL__
16
17#define PANELBORDER 1 // only increase from '1' for testing purposes - MJS
18
19#include "SampleFormat.h"
20#include "wxPanelWrapper.h"
21class EnvelopeEditor;
22
24class RulerPanel;
25
27{
28public:
30 wxWindow *parent, wxWindowID winid,
31 EqualizationCurvesList &curvesList,
32 RulerPanel &freqRuler, RulerPanel &dbRuler);
34
35 // We don't need or want to accept focus.
36 bool AcceptsFocus() const { return false; }
37 // So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
38 bool AcceptsFocusFromKeyboard() const { return false; }
39
40 void Recalc();
41
42private:
43 void OnIdle( wxIdleEvent &event );
44 void OnMouseEvent(wxMouseEvent & event);
45 void OnCaptureLost(wxMouseCaptureLostEvent & event);
46 void OnPaint(wxPaintEvent & event);
47 void OnSize (wxSizeEvent & event);
48
49public:
50// int & mM;
51// float & mdBMax;
52// float & mdBMin;
53// Envelope & mEnvelope;
54
55private:
56 wxWindow *mParent;
60 std::unique_ptr<EnvelopeEditor> mLinEditor, mLogEditor;
61
62 std::unique_ptr<wxBitmap> mBitmap;
63 wxRect mEnvRect;
64 int mWidth;
66// size_t mWindowSize;
67// float *mFilterFuncR;
68// float *mFilterFuncI;
70
71// double mLoFreq;
72// double mHiFreq;
73
74 DECLARE_EVENT_TABLE()
75};
76
77#endif
EqualizationPanel is used with EqualizationDialog and controls a graph for EffectEqualization....
void OnSize(wxSizeEvent &event)
bool AcceptsFocusFromKeyboard() const
bool AcceptsFocus() const
RulerPanel & mdBRuler
EqualizationCurvesList & mCurvesList
void OnCaptureLost(wxMouseCaptureLostEvent &event)
void OnIdle(wxIdleEvent &event)
std::unique_ptr< wxBitmap > mBitmap
std::unique_ptr< EnvelopeEditor > mLinEditor
void OnMouseEvent(wxMouseEvent &event)
void OnPaint(wxPaintEvent &event)
RulerPanel & mFreqRuler
std::unique_ptr< EnvelopeEditor > mLogEditor
EqualizationPanel(wxWindow *parent, wxWindowID winid, EqualizationCurvesList &curvesList, RulerPanel &freqRuler, RulerPanel &dbRuler)
RulerPanel class allows you to work with a Ruler like any other wxWindow.
Definition: RulerPanel.h:19
Maintains a list of preset curves for Equalization effects.