Audacity 3.2.0
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
DynamicRangeProcessorTransferFunctionPanel Class Referencefinal

#include <DynamicRangeProcessorTransferFunctionPanel.h>

Inheritance diagram for DynamicRangeProcessorTransferFunctionPanel:
[legend]
Collaboration diagram for DynamicRangeProcessorTransferFunctionPanel:
[legend]

Public Member Functions

 DynamicRangeProcessorTransferFunctionPanel (wxWindow *parent, wxWindowID winid, const CompressorSettings &compressorSettings)
 
 DECLARE_EVENT_TABLE ()
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Static Public Attributes

static constexpr auto minHeight = 100
 
static constexpr auto rangeDb = 60
 

Private Member Functions

bool AcceptsFocus () const override
 
bool AcceptsFocusFromKeyboard () const override
 
void OnPaint (wxPaintEvent &evt)
 
void OnSize (wxSizeEvent &evt)
 

Private Attributes

const CompressorSettingsmCompressorSettings
 

Detailed Description

Definition at line 19 of file DynamicRangeProcessorTransferFunctionPanel.h.

Constructor & Destructor Documentation

◆ DynamicRangeProcessorTransferFunctionPanel()

DynamicRangeProcessorTransferFunctionPanel::DynamicRangeProcessorTransferFunctionPanel ( wxWindow *  parent,
wxWindowID  winid,
const CompressorSettings compressorSettings 
)

Audacity: A Digital Audio Editor

DynamicRangeProcessorTransferFunctionPanel.cpp

Matthieu Hodgkinson

Definition at line 29 of file DynamicRangeProcessorTransferFunctionPanel.cpp.

33 : wxPanelWrapper { parent, winid }
34 , mCompressorSettings { compressorSettings }
35{
36 SetDoubleBuffered(true);
37}

Member Function Documentation

◆ AcceptsFocus()

bool DynamicRangeProcessorTransferFunctionPanel::AcceptsFocus ( ) const
overrideprivate

Definition at line 144 of file DynamicRangeProcessorTransferFunctionPanel.cpp.

145{
146 return false;
147}

◆ AcceptsFocusFromKeyboard()

bool DynamicRangeProcessorTransferFunctionPanel::AcceptsFocusFromKeyboard ( ) const
overrideprivate

Definition at line 149 of file DynamicRangeProcessorTransferFunctionPanel.cpp.

151{
152 return false;
153}

◆ DECLARE_EVENT_TABLE()

DynamicRangeProcessorTransferFunctionPanel::DECLARE_EVENT_TABLE ( )

◆ OnPaint()

void DynamicRangeProcessorTransferFunctionPanel::OnPaint ( wxPaintEvent &  evt)
private

Definition at line 129 of file DynamicRangeProcessorTransferFunctionPanel.cpp.

130{
131 wxPaintDC dc(this);
132 const auto rect = DynamicRangeProcessorPanel::GetPanelRect(*this);
135 dc.SetBrush(*wxTRANSPARENT_BRUSH);
136 dc.DrawRectangle(rect);
137}
wxRect GetPanelRect(const wxPanelWrapper &panel)
void DrawTransferFunction(wxPaintDC &dc, const wxRect &rect, const CompressorSettings &settings)

References anonymous_namespace{DynamicRangeProcessorTransferFunctionPanel.cpp}::DrawTransferFunction(), DynamicRangeProcessorPanel::GetPanelRect(), DynamicRangeProcessorPanel::lineColor, and mCompressorSettings.

Here is the call graph for this function:

◆ OnSize()

void DynamicRangeProcessorTransferFunctionPanel::OnSize ( wxSizeEvent &  evt)
private

Definition at line 139 of file DynamicRangeProcessorTransferFunctionPanel.cpp.

140{
141 Refresh();
142}

Member Data Documentation

◆ mCompressorSettings

const CompressorSettings& DynamicRangeProcessorTransferFunctionPanel::mCompressorSettings
private

Definition at line 36 of file DynamicRangeProcessorTransferFunctionPanel.h.

Referenced by OnPaint().

◆ minHeight

constexpr auto DynamicRangeProcessorTransferFunctionPanel::minHeight = 100
staticconstexpr

Definition at line 22 of file DynamicRangeProcessorTransferFunctionPanel.h.

◆ rangeDb

constexpr auto DynamicRangeProcessorTransferFunctionPanel::rangeDb = 60
staticconstexpr

The documentation for this class was generated from the following files: