Audacity  3.0.3
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
EffectAutoDuckPanel Class Referencefinal

#include <AutoDuck.h>

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

Public Member Functions

 EffectAutoDuckPanel (wxWindow *parent, wxWindowID winid, EffectAutoDuck *effect)
 
virtual ~EffectAutoDuckPanel ()
 
- 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
 

Private Types

enum  EControlPoint {
  innerFadeDown = 0, outerFadeDown, innerFadeUp, outerFadeUp,
  duckAmount, none = 99
}
 

Private Member Functions

bool AcceptsFocus () const override
 
bool AcceptsFocusFromKeyboard () const override
 
void OnPaint (wxPaintEvent &evt)
 
void OnMouseCaptureChanged (wxMouseCaptureChangedEvent &evt)
 
void OnMouseCaptureLost (wxMouseCaptureLostEvent &evt)
 
void OnLeftDown (wxMouseEvent &evt)
 
void OnLeftUp (wxMouseEvent &evt)
 
void OnMotion (wxMouseEvent &evt)
 
void ResetControlPoints ()
 
EControlPoint GetNearestControlPoint (const wxPoint &pt)
 

Private Attributes

wxWindow * mParent
 
EffectAutoDuckmEffect
 
std::unique_ptr< wxBitmap > mBackgroundBitmap
 
EControlPoint mCurrentControlPoint
 
wxPoint mControlPoints [AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
 
wxPoint mMoveStartControlPoints [AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
 
wxPoint mMouseDownPoint
 
bool mControlPointMoveActivated
 

Detailed Description

Definition at line 89 of file AutoDuck.h.

Member Enumeration Documentation

◆ EControlPoint

Enumerator
innerFadeDown 
outerFadeDown 
innerFadeUp 
outerFadeUp 
duckAmount 
none 

Definition at line 97 of file AutoDuck.h.

98  {
99  innerFadeDown = 0,
101  innerFadeUp,
102  outerFadeUp,
103  duckAmount,
104  none = 99,
105  };

Constructor & Destructor Documentation

◆ EffectAutoDuckPanel()

EffectAutoDuckPanel::EffectAutoDuckPanel ( wxWindow *  parent,
wxWindowID  winid,
EffectAutoDuck effect 
)

Definition at line 638 of file AutoDuck.cpp.

640 : wxPanelWrapper(parent, winid, wxDefaultPosition, wxSize(600, 300))
641 {
642  mParent = parent;
643  mEffect = effect;
645  mBackgroundBitmap = NULL;
646 
648 }

References none.

◆ ~EffectAutoDuckPanel()

EffectAutoDuckPanel::~EffectAutoDuckPanel ( )
virtual

Definition at line 650 of file AutoDuck.cpp.

651 {
652  if(HasCapture())
653  ReleaseMouse();
654 }

Member Function Documentation

◆ AcceptsFocus()

bool EffectAutoDuckPanel::AcceptsFocus ( ) const
inlineoverrideprivate

Definition at line 107 of file AutoDuck.h.

107 { return false; }

◆ AcceptsFocusFromKeyboard()

bool EffectAutoDuckPanel::AcceptsFocusFromKeyboard ( ) const
inlineoverrideprivate

Definition at line 109 of file AutoDuck.h.

109 { return false; }

◆ GetNearestControlPoint()

EffectAutoDuckPanel::EControlPoint EffectAutoDuckPanel::GetNearestControlPoint ( const wxPoint &  pt)
private

Definition at line 847 of file AutoDuck.cpp.

848 {
850  int i;
851 
852  for (i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
853  dist[i] = GetDistance(pt, mControlPoints[i]);
854 
855  int curMinimum = 0;
856  for (i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
857  if (dist[i] < dist[curMinimum])
858  curMinimum = i;
859 
860  if (dist[curMinimum] <= CONTROL_POINT_REGION)
861  return (EControlPoint)curMinimum;
862  else
863  return none;
864 }

References AUTO_DUCK_PANEL_NUM_CONTROL_POINTS, CONTROL_POINT_REGION, GetDistance(), mControlPoints, and none.

Referenced by OnLeftDown(), and OnMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLeftDown()

void EffectAutoDuckPanel::OnLeftDown ( wxMouseEvent &  evt)
private

Definition at line 866 of file AutoDuck.cpp.

867 {
868  EControlPoint nearest = GetNearestControlPoint(evt.GetPosition());
869 
870  if (nearest != none)
871  {
872  // this control point has been clicked
873  mMouseDownPoint = evt.GetPosition();
874 
875  mCurrentControlPoint = nearest;
877 
878  for (int i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
880 
881  if( !HasCapture() )
882  CaptureMouse();
883  }
884 }

References AUTO_DUCK_PANEL_NUM_CONTROL_POINTS, GetNearestControlPoint(), mControlPointMoveActivated, mControlPoints, mCurrentControlPoint, mMouseDownPoint, mMoveStartControlPoints, and none.

Here is the call graph for this function:

◆ OnLeftUp()

void EffectAutoDuckPanel::OnLeftUp ( wxMouseEvent &  evt)
private

Definition at line 886 of file AutoDuck.cpp.

887 {
888  if (mCurrentControlPoint != none)
889  {
891  ReleaseMouse();
892  }
893 }

References mCurrentControlPoint, and none.

◆ OnMotion()

void EffectAutoDuckPanel::OnMotion ( wxMouseEvent &  evt)
private

Definition at line 895 of file AutoDuck.cpp.

896 {
897  switch (GetNearestControlPoint(evt.GetPosition()))
898  {
899  case none:
900  SetCursor(wxNullCursor);
901  break;
902  case innerFadeDown:
903  case innerFadeUp:
904  case outerFadeDown:
905  case outerFadeUp:
906  SetCursor(wxCursor(wxCURSOR_SIZEWE));
907  break;
908  case duckAmount:
909  SetCursor(wxCursor(wxCURSOR_SIZENS));
910  break;
911  }
912 
913  if (mCurrentControlPoint != none)
914  {
916  {
917  int dist;
918 
920  dist = abs(evt.GetY() - mMouseDownPoint.y);
921  else
922  dist = abs(evt.GetX() - mMouseDownPoint.x);
923 
924  if (dist >= CONTROL_POINT_MIN_MOVE)
926  }
927 
929  {
930  float newValue;
931 
932  switch (mCurrentControlPoint)
933  {
934  case outerFadeDown:
935  newValue = ((double)(FADE_DOWN_START - evt.GetX())) / FADE_SCALE;
936  mEffect->mOuterFadeDownLen = TrapDouble(newValue, MIN_OuterFadeDownLen, MAX_OuterFadeDownLen);
937  break;
938  case outerFadeUp:
939  newValue = ((double)(evt.GetX() - FADE_UP_START)) / FADE_SCALE;
940  mEffect->mOuterFadeUpLen = TrapDouble(newValue, MIN_OuterFadeUpLen, MAX_OuterFadeUpLen);
941  break;
942  case innerFadeDown:
943  newValue = ((double)(evt.GetX() - FADE_DOWN_START)) / FADE_SCALE;
944  mEffect->mInnerFadeDownLen = TrapDouble(newValue, MIN_InnerFadeDownLen, MAX_InnerFadeDownLen);
945  break;
946  case innerFadeUp:
947  newValue = ((double)(FADE_UP_START - evt.GetX())) / FADE_SCALE;
948  mEffect->mInnerFadeUpLen = TrapDouble(newValue, MIN_InnerFadeUpLen, MAX_InnerFadeUpLen);
949  break;
950  case duckAmount:
951  newValue = ((double)(DUCK_AMOUNT_START - evt.GetY())) / DUCK_AMOUNT_SCALE;
952  mEffect->mDuckAmountDb = TrapDouble(newValue, MIN_DuckAmountDb, MAX_DuckAmountDb);
953  break;
954  case none:
955  wxASSERT(false); // should not happen
956  }
958  Refresh(false);
959  }
960  }
961 }

References CONTROL_POINT_MIN_MOVE, DUCK_AMOUNT_SCALE, DUCK_AMOUNT_START, duckAmount, FADE_DOWN_START, FADE_SCALE, FADE_UP_START, GetNearestControlPoint(), innerFadeDown, innerFadeUp, mControlPointMoveActivated, mCurrentControlPoint, EffectAutoDuck::mDuckAmountDb, mEffect, EffectAutoDuck::mInnerFadeDownLen, EffectAutoDuck::mInnerFadeUpLen, mMouseDownPoint, EffectAutoDuck::mOuterFadeDownLen, EffectAutoDuck::mOuterFadeUpLen, none, outerFadeDown, outerFadeUp, EffectAutoDuck::TransferDataToWindow(), and TrapDouble().

Here is the call graph for this function:

◆ OnMouseCaptureChanged()

void EffectAutoDuckPanel::OnMouseCaptureChanged ( wxMouseCaptureChangedEvent &  evt)
private

Definition at line 828 of file AutoDuck.cpp.

830 {
831  SetCursor(wxNullCursor);
833 }

References mCurrentControlPoint, and none.

◆ OnMouseCaptureLost()

void EffectAutoDuckPanel::OnMouseCaptureLost ( wxMouseCaptureLostEvent &  evt)
private

Definition at line 835 of file AutoDuck.cpp.

837 {
839 
840  if (HasCapture())
841  {
842  ReleaseMouse();
843  }
844 }

References mCurrentControlPoint, and none.

◆ OnPaint()

void EffectAutoDuckPanel::OnPaint ( wxPaintEvent &  evt)
private

Definition at line 665 of file AutoDuck.cpp.

666 {
667  int clientWidth, clientHeight;
668  GetSize(&clientWidth, &clientHeight);
669 
670  if (!mBackgroundBitmap || mBackgroundBitmap->GetWidth() != clientWidth ||
671  mBackgroundBitmap->GetHeight() != clientHeight)
672  {
673  mBackgroundBitmap = std::make_unique<wxBitmap>(clientWidth, clientHeight,24);
674  }
675 
676  wxMemoryDC dc;
677  dc.SelectObject(*mBackgroundBitmap);
678 
679  dc.SetBrush(*wxWHITE_BRUSH);
680  dc.SetPen(*wxBLACK_PEN);
681  dc.DrawRectangle(0, 0, clientWidth, clientHeight);
682 
683  dc.SetFont(wxFont(10, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL,
684  wxFONTWEIGHT_NORMAL));
685  dc.SetTextForeground(*wxBLACK);
686  dc.SetTextBackground(*wxWHITE);
687 
688  double duckAmountDb = 0;
689  double innerFadeDownLen = 0;
690  double innerFadeUpLen = 0;
691  double outerFadeDownLen = 0;
692  double outerFadeUpLen = 0;
693  mEffect->mDuckAmountDbBox->GetValue().ToDouble(&duckAmountDb);
694  mEffect->mInnerFadeDownLenBox->GetValue().ToDouble(&innerFadeDownLen);
695  mEffect->mInnerFadeUpLenBox->GetValue().ToDouble(&innerFadeUpLen);
696  mEffect->mOuterFadeDownLenBox->GetValue().ToDouble(&outerFadeDownLen);
697  mEffect->mOuterFadeUpLenBox->GetValue().ToDouble(&outerFadeUpLen);
698 
699  if (innerFadeDownLen < MIN_InnerFadeDownLen || innerFadeDownLen > MAX_InnerFadeDownLen ||
700  innerFadeUpLen < MIN_InnerFadeUpLen || innerFadeUpLen > MAX_InnerFadeUpLen ||
701  outerFadeDownLen < MIN_OuterFadeDownLen || outerFadeDownLen > MAX_OuterFadeDownLen ||
702  outerFadeUpLen < MIN_OuterFadeUpLen || outerFadeUpLen > MAX_OuterFadeUpLen ||
703  duckAmountDb < MIN_DuckAmountDb || duckAmountDb > MAX_DuckAmountDb)
704  {
705  // values are out of range, no preview available
706  wxString message = _("Preview not available");
707  int textWidth = 0, textHeight = 0;
708  dc.GetTextExtent(message, &textWidth, &textHeight);
709  dc.DrawText(message, (clientWidth - textWidth) / 2,
710  (clientHeight - textHeight) / 2);
711 
713  } else
714  {
715  // draw preview
716  dc.SetBrush(*wxTRANSPARENT_BRUSH);
717  dc.SetPen(wxPen(theTheme.Colour(clrGraphLines), 3, wxPENSTYLE_SOLID));
718 
719  wxPoint points[6];
720 
721  points[0].x = 10;
722  points[0].y = DUCK_AMOUNT_START;
723 
724  points[1].x = FADE_DOWN_START - (int)(outerFadeDownLen * FADE_SCALE);
725  points[1].y = DUCK_AMOUNT_START;
726 
727  points[2].x = FADE_DOWN_START + (int)(innerFadeDownLen * FADE_SCALE);
728  points[2].y = DUCK_AMOUNT_START -
729  (int)(duckAmountDb * DUCK_AMOUNT_SCALE);
730 
731  points[3].x = FADE_UP_START - (int)(innerFadeUpLen * FADE_SCALE);
732  points[3].y = DUCK_AMOUNT_START -
733  (int)(duckAmountDb * DUCK_AMOUNT_SCALE);
734 
735  points[4].x = FADE_UP_START + (int)(outerFadeUpLen * FADE_SCALE);
736  points[4].y = DUCK_AMOUNT_START;
737 
738  points[5].x = clientWidth - 10;
739  points[5].y = DUCK_AMOUNT_START;
740 
741  AColor::Lines(dc, 6, points);
742 
743  dc.SetPen(wxPen(*wxBLACK, 1, wxPENSTYLE_DOT));
744 
745  AColor::Line(dc, FADE_DOWN_START, 10, FADE_DOWN_START, clientHeight - 10);
746  AColor::Line(dc, FADE_UP_START, 10, FADE_UP_START, clientHeight - 10);
747 
748  dc.SetPen(AColor::envelopePen);
749  dc.SetBrush(*wxWHITE_BRUSH);
750 
751  mControlPoints[outerFadeDown] = points[1];
752  mControlPoints[innerFadeDown] = points[2];
753  mControlPoints[innerFadeUp] = points[3];
754  mControlPoints[outerFadeUp] = points[4];
755  mControlPoints[duckAmount] = wxPoint(
756  (points[2].x + points[3].x) / 2, points[2].y);
757 
758  for (int i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
759  {
761  int digits;
762  float value;
763 
764  if (cp == innerFadeDown)
765  {
766  value = innerFadeDownLen;
767  digits = 2;
768  }
769  else if (cp == innerFadeUp)
770  {
771  value = innerFadeUpLen;
772  digits = 2;
773  }
774  else if (cp == outerFadeDown)
775  {
776  value = outerFadeDownLen;
777  digits = 2;
778  } else if (cp == outerFadeUp)
779  {
780  value = outerFadeUpLen;
781  digits = 2;
782  }
783  else
784  {
785  value = duckAmountDb;
786  digits = 1;
787  }
788 
789  wxString valueStr = Internat::ToDisplayString(value, digits);
790  valueStr += wxT(" ");
791 
792  if (cp == duckAmount)
793  /* i18n-hint: short form of 'decibels'.*/
794  valueStr += _("dB");
795  else
796  /* i18n-hint: short form of 'seconds'.*/
797  valueStr += _("s");
798 
799  int textWidth = 0, textHeight = 0;
800  GetTextExtent(valueStr, &textWidth, &textHeight);
801 
802  int textPosX = mControlPoints[i].x - textWidth / 2;
803  int textPosY = mControlPoints[i].y;
804 
805  if (cp == duckAmount || cp == outerFadeDown || cp == outerFadeUp)
806  textPosY -= TEXT_DISTANCE + textHeight;
807  else
808  textPosY += TEXT_DISTANCE;
809 
810  dc.DrawText(valueStr, textPosX, textPosY);
811 
812  dc.DrawEllipse(mControlPoints[i].x - 3,
813  mControlPoints[i].y - 3, 6, 6);
814  }
815  }
816 
817  // copy background buffer to paint dc
818  wxPaintDC paintDC(this);
819  paintDC.Blit(0, 0, clientWidth, clientHeight, &dc, 0, 0);
820 
821  // clean up: necessary to free resources on Windows
822  dc.SetPen(wxNullPen);
823  dc.SetBrush(wxNullBrush);
824  dc.SetFont(wxNullFont);
825  dc.SelectObject(wxNullBitmap);
826 }

References _, AUTO_DUCK_PANEL_NUM_CONTROL_POINTS, ThemeBase::Colour(), DUCK_AMOUNT_SCALE, DUCK_AMOUNT_START, duckAmount, AColor::envelopePen, FADE_DOWN_START, FADE_SCALE, FADE_UP_START, innerFadeDown, innerFadeUp, AColor::Line(), AColor::Lines(), mBackgroundBitmap, mControlPoints, EffectAutoDuck::mDuckAmountDbBox, mEffect, EffectAutoDuck::mInnerFadeDownLenBox, EffectAutoDuck::mInnerFadeUpLenBox, EffectAutoDuck::mOuterFadeDownLenBox, EffectAutoDuck::mOuterFadeUpLenBox, outerFadeDown, outerFadeUp, ResetControlPoints(), TEXT_DISTANCE, theTheme, and Internat::ToDisplayString().

Here is the call graph for this function:

◆ ResetControlPoints()

void EffectAutoDuckPanel::ResetControlPoints ( )
private

Definition at line 656 of file AutoDuck.cpp.

657 {
658  mControlPoints[innerFadeDown] = wxPoint(-100,-100);
659  mControlPoints[innerFadeUp] = wxPoint(-100,-100);
660  mControlPoints[outerFadeDown] = wxPoint(-100,-100);
661  mControlPoints[outerFadeUp] = wxPoint(-100,-100);
662  mControlPoints[duckAmount] = wxPoint(-100,-100);
663 }

References duckAmount, innerFadeDown, innerFadeUp, mControlPoints, outerFadeDown, and outerFadeUp.

Referenced by OnPaint().

Here is the caller graph for this function:

Member Data Documentation

◆ mBackgroundBitmap

std::unique_ptr<wxBitmap> EffectAutoDuckPanel::mBackgroundBitmap
private

Definition at line 125 of file AutoDuck.h.

Referenced by OnPaint().

◆ mControlPointMoveActivated

bool EffectAutoDuckPanel::mControlPointMoveActivated
private

Definition at line 130 of file AutoDuck.h.

Referenced by OnLeftDown(), and OnMotion().

◆ mControlPoints

wxPoint EffectAutoDuckPanel::mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private

Definition at line 127 of file AutoDuck.h.

Referenced by GetNearestControlPoint(), OnLeftDown(), OnPaint(), and ResetControlPoints().

◆ mCurrentControlPoint

EControlPoint EffectAutoDuckPanel::mCurrentControlPoint
private

Definition at line 126 of file AutoDuck.h.

Referenced by OnLeftDown(), OnLeftUp(), OnMotion(), OnMouseCaptureChanged(), and OnMouseCaptureLost().

◆ mEffect

EffectAutoDuck* EffectAutoDuckPanel::mEffect
private

Definition at line 124 of file AutoDuck.h.

Referenced by OnMotion(), and OnPaint().

◆ mMouseDownPoint

wxPoint EffectAutoDuckPanel::mMouseDownPoint
private

Definition at line 129 of file AutoDuck.h.

Referenced by OnLeftDown(), and OnMotion().

◆ mMoveStartControlPoints

wxPoint EffectAutoDuckPanel::mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private

Definition at line 128 of file AutoDuck.h.

Referenced by OnLeftDown().

◆ mParent

wxWindow* EffectAutoDuckPanel::mParent
private

Definition at line 123 of file AutoDuck.h.


The documentation for this class was generated from the following files:
EffectAutoDuckPanel::innerFadeDown
@ innerFadeDown
Definition: AutoDuck.h:99
GetDistance
static int GetDistance(const wxPoint &first, const wxPoint &second)
Definition: AutoDuck.cpp:619
EffectAutoDuckPanel::mEffect
EffectAutoDuck * mEffect
Definition: AutoDuck.h:124
EffectAutoDuck::mInnerFadeUpLen
double mInnerFadeUpLen
Definition: AutoDuck.h:67
EffectAutoDuckPanel::outerFadeUp
@ outerFadeUp
Definition: AutoDuck.h:102
EffectAutoDuck::mOuterFadeDownLen
double mOuterFadeDownLen
Definition: AutoDuck.h:68
AColor::Line
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
Definition: AColor.cpp:109
EffectAutoDuck::mOuterFadeUpLen
double mOuterFadeUpLen
Definition: AutoDuck.h:69
EffectAutoDuckPanel::mBackgroundBitmap
std::unique_ptr< wxBitmap > mBackgroundBitmap
Definition: AutoDuck.h:125
TEXT_DISTANCE
#define TEXT_DISTANCE
Definition: AutoDuck.cpp:610
EffectAutoDuckPanel::duckAmount
@ duckAmount
Definition: AutoDuck.h:103
EffectAutoDuckPanel::GetNearestControlPoint
EControlPoint GetNearestControlPoint(const wxPoint &pt)
Definition: AutoDuck.cpp:847
AColor::Lines
static void Lines(wxDC &dc, size_t nPoints, const wxPoint points[])
Definition: AColor.cpp:116
EffectAutoDuck::mInnerFadeDownLenBox
wxTextCtrl * mInnerFadeDownLenBox
Definition: AutoDuck.h:76
FADE_UP_START
#define FADE_UP_START
Definition: AutoDuck.cpp:613
EffectAutoDuck::mOuterFadeUpLenBox
wxTextCtrl * mOuterFadeUpLenBox
Definition: AutoDuck.h:79
EffectAutoDuckPanel::mMouseDownPoint
wxPoint mMouseDownPoint
Definition: AutoDuck.h:129
EffectAutoDuckPanel::EControlPoint
EControlPoint
Definition: AutoDuck.h:98
EffectAutoDuck::mInnerFadeDownLen
double mInnerFadeDownLen
Definition: AutoDuck.h:66
AColor::envelopePen
static wxPen envelopePen
Definition: AColor.h:104
AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
Definition: AutoDuck.h:21
CONTROL_POINT_REGION
#define CONTROL_POINT_REGION
Definition: AutoDuck.cpp:607
EffectAutoDuck::mInnerFadeUpLenBox
wxTextCtrl * mInnerFadeUpLenBox
Definition: AutoDuck.h:77
EffectAutoDuck::mDuckAmountDbBox
wxTextCtrl * mDuckAmountDbBox
Definition: AutoDuck.h:75
EffectAutoDuckPanel::mCurrentControlPoint
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:126
EffectAutoDuck::mDuckAmountDb
double mDuckAmountDb
Definition: AutoDuck.h:65
EffectAutoDuckPanel::mControlPointMoveActivated
bool mControlPointMoveActivated
Definition: AutoDuck.h:130
EffectAutoDuckPanel::outerFadeDown
@ outerFadeDown
Definition: AutoDuck.h:100
theTheme
THEME_API Theme theTheme
Definition: Theme.cpp:79
EffectAutoDuckPanel::ResetControlPoints
void ResetControlPoints()
Definition: AutoDuck.cpp:656
CONTROL_POINT_MIN_MOVE
#define CONTROL_POINT_MIN_MOVE
Definition: AutoDuck.cpp:608
DUCK_AMOUNT_SCALE
#define DUCK_AMOUNT_SCALE
Definition: AutoDuck.cpp:617
FADE_SCALE
#define FADE_SCALE
Definition: AutoDuck.cpp:616
_
#define _(s)
Definition: Internat.h:75
DUCK_AMOUNT_START
#define DUCK_AMOUNT_START
Definition: AutoDuck.cpp:614
EffectAutoDuckPanel::innerFadeUp
@ innerFadeUp
Definition: AutoDuck.h:101
wxPanelWrapper::wxPanelWrapper
wxPanelWrapper()
Definition: wxPanelWrapper.h:44
ThemeBase::Colour
wxColour & Colour(int iIndex)
Definition: Theme.cpp:1057
FADE_DOWN_START
#define FADE_DOWN_START
Definition: AutoDuck.cpp:612
EffectAutoDuckPanel::mMoveStartControlPoints
wxPoint mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:128
TrapDouble
double TrapDouble(double x, double min, double max)
Definition: Effect.h:564
Internat::ToDisplayString
static wxString ToDisplayString(double numberToConvert, int digitsAfterDecimalPoint=-1)
Convert a number to a string, uses the user's locale's decimal separator.
Definition: Internat.cpp:162
EffectAutoDuckPanel::none
@ none
Definition: AutoDuck.h:104
EffectAutoDuckPanel::mParent
wxWindow * mParent
Definition: AutoDuck.h:123
EffectAutoDuckPanel::mControlPoints
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:127
EffectAutoDuck::TransferDataToWindow
bool TransferDataToWindow() override
Definition: AutoDuck.cpp:509
EffectAutoDuck::mOuterFadeDownLenBox
wxTextCtrl * mOuterFadeDownLenBox
Definition: AutoDuck.h:78