Audacity
3.2.0
src
effects
DynamicRangeProcessorTransferFunctionPanel.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
/*!********************************************************************
3
4
Audacity: A Digital Audio Editor
5
6
DynamicRangeProcessorTransferFunctionPanel.h
7
8
Matthieu Hodgkinson
9
10
**********************************************************************/
11
#pragma once
12
13
#include "
DynamicRangeProcessorHistory.h
"
14
#include "
wxPanelWrapper.h
"
15
16
class
wxPaintEvent;
17
class
wxEraseEvent;
18
19
class
DynamicRangeProcessorTransferFunctionPanel
final :
public
wxPanelWrapper
20
{
21
public
:
22
static
constexpr
auto
minHeight
= 100;
23
static
constexpr
auto
rangeDb
= 60;
24
25
DynamicRangeProcessorTransferFunctionPanel
(
26
wxWindow* parent, wxWindowID winid,
27
const
CompressorSettings
& compressorSettings);
28
29
DECLARE_EVENT_TABLE
();
30
31
private
:
32
bool
AcceptsFocus
()
const override
;
33
// So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
34
bool
AcceptsFocusFromKeyboard
()
const override
;
35
36
const
CompressorSettings
&
mCompressorSettings
;
37
void
OnPaint
(wxPaintEvent& evt);
38
void
OnSize
(wxSizeEvent& evt);
39
};
DynamicRangeProcessorHistory.h
DynamicRangeProcessorTransferFunctionPanel
Definition:
DynamicRangeProcessorTransferFunctionPanel.h:20
DynamicRangeProcessorTransferFunctionPanel::rangeDb
static constexpr auto rangeDb
Definition:
DynamicRangeProcessorTransferFunctionPanel.h:23
DynamicRangeProcessorTransferFunctionPanel::minHeight
static constexpr auto minHeight
Definition:
DynamicRangeProcessorTransferFunctionPanel.h:22
DynamicRangeProcessorTransferFunctionPanel::mCompressorSettings
const CompressorSettings & mCompressorSettings
Definition:
DynamicRangeProcessorTransferFunctionPanel.h:36
DynamicRangeProcessorTransferFunctionPanel::DynamicRangeProcessorTransferFunctionPanel
DynamicRangeProcessorTransferFunctionPanel(wxWindow *parent, wxWindowID winid, const CompressorSettings &compressorSettings)
Definition:
DynamicRangeProcessorTransferFunctionPanel.cpp:30
DynamicRangeProcessorTransferFunctionPanel::DECLARE_EVENT_TABLE
DECLARE_EVENT_TABLE()
DynamicRangeProcessorTransferFunctionPanel::AcceptsFocus
bool AcceptsFocus() const override
Definition:
DynamicRangeProcessorTransferFunctionPanel.cpp:144
DynamicRangeProcessorTransferFunctionPanel::OnSize
void OnSize(wxSizeEvent &evt)
Definition:
DynamicRangeProcessorTransferFunctionPanel.cpp:139
DynamicRangeProcessorTransferFunctionPanel::OnPaint
void OnPaint(wxPaintEvent &evt)
Definition:
DynamicRangeProcessorTransferFunctionPanel.cpp:129
DynamicRangeProcessorTransferFunctionPanel::AcceptsFocusFromKeyboard
bool AcceptsFocusFromKeyboard() const override
Definition:
DynamicRangeProcessorTransferFunctionPanel.cpp:149
wxPanelWrapper
Definition:
wxPanelWrapper.h:40
CompressorSettings
Definition:
DynamicRangeProcessorTypes.h:77
wxPanelWrapper.h
Generated by
1.9.3