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

#include <AutoDuck.h>

Inheritance diagram for EffectAutoDuckPanel:
wxPanelWrapper wxTabTraversalWrapper< wxPanel >

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 wxString &name=_("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=_("Panel"))
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&...args)
 

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 94 of file AutoDuck.h.

Member Enumeration Documentation

Enumerator
innerFadeDown 
outerFadeDown 
innerFadeUp 
outerFadeUp 
duckAmount 
none 

Definition at line 102 of file AutoDuck.h.

Constructor & Destructor Documentation

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

Definition at line 615 of file AutoDuck.cpp.

617 : wxPanelWrapper(parent, winid, wxDefaultPosition, wxSize(600, 300))
618 {
619  mParent = parent;
620  mEffect = effect;
622  mBackgroundBitmap = NULL;
623 
625 }
wxWindow * mParent
Definition: AutoDuck.h:128
EffectAutoDuck * mEffect
Definition: AutoDuck.h:129
void ResetControlPoints()
Definition: AutoDuck.cpp:633
std::unique_ptr< wxBitmap > mBackgroundBitmap
Definition: AutoDuck.h:130
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
EffectAutoDuckPanel::~EffectAutoDuckPanel ( )
virtual

Definition at line 627 of file AutoDuck.cpp.

628 {
629  if(HasCapture())
630  ReleaseMouse();
631 }

Member Function Documentation

bool EffectAutoDuckPanel::AcceptsFocus ( ) const
inlineoverrideprivate

Definition at line 112 of file AutoDuck.h.

112 { return false; }
bool EffectAutoDuckPanel::AcceptsFocusFromKeyboard ( ) const
inlineoverrideprivate

Definition at line 114 of file AutoDuck.h.

114 { return false; }
EffectAutoDuckPanel::EControlPoint EffectAutoDuckPanel::GetNearestControlPoint ( const wxPoint &  pt)
private

Definition at line 824 of file AutoDuck.cpp.

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

Referenced by OnLeftDown(), and OnMotion().

825 {
827  int i;
828 
829  for (i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
830  dist[i] = GetDistance(pt, mControlPoints[i]);
831 
832  int curMinimum = 0;
833  for (i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
834  if (dist[i] < dist[curMinimum])
835  curMinimum = i;
836 
837  if (dist[curMinimum] <= CONTROL_POINT_REGION)
838  return (EControlPoint)curMinimum;
839  else
840  return none;
841 }
static int GetDistance(const wxPoint &first, const wxPoint &second)
Definition: AutoDuck.cpp:596
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
Definition: AutoDuck.h:27
#define CONTROL_POINT_REGION
Definition: AutoDuck.cpp:584
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:132
void EffectAutoDuckPanel::OnLeftDown ( wxMouseEvent &  evt)
private

Definition at line 843 of file AutoDuck.cpp.

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

844 {
845  EControlPoint nearest = GetNearestControlPoint(evt.GetPosition());
846 
847  if (nearest != none)
848  {
849  // this control point has been clicked
850  mMouseDownPoint = evt.GetPosition();
851 
852  mCurrentControlPoint = nearest;
854 
855  for (int i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
857 
858  if( !HasCapture() )
859  CaptureMouse();
860  }
861 }
EControlPoint GetNearestControlPoint(const wxPoint &pt)
Definition: AutoDuck.cpp:824
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
Definition: AutoDuck.h:27
wxPoint mMouseDownPoint
Definition: AutoDuck.h:134
bool mControlPointMoveActivated
Definition: AutoDuck.h:135
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:132
wxPoint mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:133
void EffectAutoDuckPanel::OnLeftUp ( wxMouseEvent &  evt)
private

Definition at line 863 of file AutoDuck.cpp.

References mCurrentControlPoint, and none.

864 {
865  if (mCurrentControlPoint != none)
866  {
868  ReleaseMouse();
869  }
870 }
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
void EffectAutoDuckPanel::OnMotion ( wxMouseEvent &  evt)
private

Definition at line 872 of file AutoDuck.cpp.

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().

873 {
874  switch (GetNearestControlPoint(evt.GetPosition()))
875  {
876  case none:
877  SetCursor(wxNullCursor);
878  break;
879  case innerFadeDown:
880  case innerFadeUp:
881  case outerFadeDown:
882  case outerFadeUp:
883  SetCursor(wxCursor(wxCURSOR_SIZEWE));
884  break;
885  case duckAmount:
886  SetCursor(wxCursor(wxCURSOR_SIZENS));
887  break;
888  }
889 
890  if (mCurrentControlPoint != none)
891  {
893  {
894  int dist;
895 
897  dist = abs(evt.GetY() - mMouseDownPoint.y);
898  else
899  dist = abs(evt.GetX() - mMouseDownPoint.x);
900 
901  if (dist >= CONTROL_POINT_MIN_MOVE)
903  }
904 
906  {
907  float newValue;
908 
909  switch (mCurrentControlPoint)
910  {
911  case outerFadeDown:
912  newValue = ((double)(FADE_DOWN_START - evt.GetX())) / FADE_SCALE;
913  mEffect->mOuterFadeDownLen = TrapDouble(newValue, MIN_OuterFadeDownLen, MAX_OuterFadeDownLen);
914  break;
915  case outerFadeUp:
916  newValue = ((double)(evt.GetX() - FADE_UP_START)) / FADE_SCALE;
917  mEffect->mOuterFadeUpLen = TrapDouble(newValue, MIN_OuterFadeUpLen, MAX_OuterFadeUpLen);
918  break;
919  case innerFadeDown:
920  newValue = ((double)(evt.GetX() - FADE_DOWN_START)) / FADE_SCALE;
921  mEffect->mInnerFadeDownLen = TrapDouble(newValue, MIN_InnerFadeDownLen, MAX_InnerFadeDownLen);
922  break;
923  case innerFadeUp:
924  newValue = ((double)(FADE_UP_START - evt.GetX())) / FADE_SCALE;
925  mEffect->mInnerFadeUpLen = TrapDouble(newValue, MIN_InnerFadeUpLen, MAX_InnerFadeUpLen);
926  break;
927  case duckAmount:
928  newValue = ((double)(DUCK_AMOUNT_START - evt.GetY())) / DUCK_AMOUNT_SCALE;
929  mEffect->mDuckAmountDb = TrapDouble(newValue, MIN_DuckAmountDb, MAX_DuckAmountDb);
930  break;
931  case none:
932  wxASSERT(false); // should not happen
933  }
935  Refresh(false);
936  }
937  }
938 }
EControlPoint GetNearestControlPoint(const wxPoint &pt)
Definition: AutoDuck.cpp:824
wxPoint mMouseDownPoint
Definition: AutoDuck.h:134
double mInnerFadeDownLen
Definition: AutoDuck.h:71
EffectAutoDuck * mEffect
Definition: AutoDuck.h:129
double mOuterFadeUpLen
Definition: AutoDuck.h:74
bool mControlPointMoveActivated
Definition: AutoDuck.h:135
double mDuckAmountDb
Definition: AutoDuck.h:70
#define DUCK_AMOUNT_START
Definition: AutoDuck.cpp:591
#define CONTROL_POINT_MIN_MOVE
Definition: AutoDuck.cpp:585
#define FADE_UP_START
Definition: AutoDuck.cpp:590
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
double TrapDouble(double x, double min, double max)
Definition: Effect.h:728
#define FADE_SCALE
Definition: AutoDuck.cpp:593
#define DUCK_AMOUNT_SCALE
Definition: AutoDuck.cpp:594
bool TransferDataToWindow() override
Definition: AutoDuck.cpp:486
double mOuterFadeDownLen
Definition: AutoDuck.h:73
#define FADE_DOWN_START
Definition: AutoDuck.cpp:589
double mInnerFadeUpLen
Definition: AutoDuck.h:72
void EffectAutoDuckPanel::OnMouseCaptureChanged ( wxMouseCaptureChangedEvent &  evt)
private

Definition at line 805 of file AutoDuck.cpp.

References mCurrentControlPoint, and none.

807 {
808  SetCursor(wxNullCursor);
810 }
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
void EffectAutoDuckPanel::OnMouseCaptureLost ( wxMouseCaptureLostEvent &  evt)
private

Definition at line 812 of file AutoDuck.cpp.

References mCurrentControlPoint, and none.

814 {
816 
817  if (HasCapture())
818  {
819  ReleaseMouse();
820  }
821 }
EControlPoint mCurrentControlPoint
Definition: AutoDuck.h:131
void EffectAutoDuckPanel::OnPaint ( wxPaintEvent &  evt)
private

Definition at line 642 of file AutoDuck.cpp.

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(), mBackgroundBitmap, mControlPoints, EffectAutoDuck::mDuckAmountDbBox, mEffect, EffectAutoDuck::mInnerFadeDownLenBox, EffectAutoDuck::mInnerFadeUpLenBox, EffectAutoDuck::mOuterFadeDownLenBox, EffectAutoDuck::mOuterFadeUpLenBox, outerFadeDown, outerFadeUp, ResetControlPoints(), TEXT_DISTANCE, theTheme, and Internat::ToDisplayString().

643 {
644  int clientWidth, clientHeight;
645  GetSize(&clientWidth, &clientHeight);
646 
647  if (!mBackgroundBitmap || mBackgroundBitmap->GetWidth() != clientWidth ||
648  mBackgroundBitmap->GetHeight() != clientHeight)
649  {
650  mBackgroundBitmap = std::make_unique<wxBitmap>(clientWidth, clientHeight);
651  }
652 
653  wxMemoryDC dc;
654  dc.SelectObject(*mBackgroundBitmap);
655 
656  dc.SetBrush(*wxWHITE_BRUSH);
657  dc.SetPen(*wxBLACK_PEN);
658  dc.DrawRectangle(0, 0, clientWidth, clientHeight);
659 
660  dc.SetFont(wxFont(10, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL,
661  wxFONTWEIGHT_NORMAL));
662  dc.SetTextForeground(*wxBLACK);
663  dc.SetTextBackground(*wxWHITE);
664 
665  double duckAmountDb = 0;
666  double innerFadeDownLen = 0;
667  double innerFadeUpLen = 0;
668  double outerFadeDownLen = 0;
669  double outerFadeUpLen = 0;
670  mEffect->mDuckAmountDbBox->GetValue().ToDouble(&duckAmountDb);
671  mEffect->mInnerFadeDownLenBox->GetValue().ToDouble(&innerFadeDownLen);
672  mEffect->mInnerFadeUpLenBox->GetValue().ToDouble(&innerFadeUpLen);
673  mEffect->mOuterFadeDownLenBox->GetValue().ToDouble(&outerFadeDownLen);
674  mEffect->mOuterFadeUpLenBox->GetValue().ToDouble(&outerFadeUpLen);
675 
676  if (innerFadeDownLen < MIN_InnerFadeDownLen || innerFadeDownLen > MAX_InnerFadeDownLen ||
677  innerFadeUpLen < MIN_InnerFadeUpLen || innerFadeUpLen > MAX_InnerFadeUpLen ||
678  outerFadeDownLen < MIN_OuterFadeDownLen || outerFadeDownLen > MAX_OuterFadeDownLen ||
679  outerFadeUpLen < MIN_OuterFadeUpLen || outerFadeUpLen > MAX_OuterFadeUpLen ||
680  duckAmountDb < MIN_DuckAmountDb || duckAmountDb > MAX_DuckAmountDb)
681  {
682  // values are out of range, no preview available
683  wxString message = _("Preview not available");
684  int textWidth = 0, textHeight = 0;
685  dc.GetTextExtent(message, &textWidth, &textHeight);
686  dc.DrawText(message, (clientWidth - textWidth) / 2,
687  (clientHeight - textHeight) / 2);
688 
690  } else
691  {
692  // draw preview
693  dc.SetBrush(*wxTRANSPARENT_BRUSH);
694  dc.SetPen(wxPen(theTheme.Colour(clrGraphLines), 3, wxSOLID));
695 
696  wxPoint points[6];
697 
698  points[0].x = 10;
699  points[0].y = DUCK_AMOUNT_START;
700 
701  points[1].x = FADE_DOWN_START - (int)(outerFadeDownLen * FADE_SCALE);
702  points[1].y = DUCK_AMOUNT_START;
703 
704  points[2].x = FADE_DOWN_START + (int)(innerFadeDownLen * FADE_SCALE);
705  points[2].y = DUCK_AMOUNT_START -
706  (int)(duckAmountDb * DUCK_AMOUNT_SCALE);
707 
708  points[3].x = FADE_UP_START - (int)(innerFadeUpLen * FADE_SCALE);
709  points[3].y = DUCK_AMOUNT_START -
710  (int)(duckAmountDb * DUCK_AMOUNT_SCALE);
711 
712  points[4].x = FADE_UP_START + (int)(outerFadeUpLen * FADE_SCALE);
713  points[4].y = DUCK_AMOUNT_START;
714 
715  points[5].x = clientWidth - 10;
716  points[5].y = DUCK_AMOUNT_START;
717 
718  dc.DrawLines(6, points);
719 
720  dc.SetPen(wxPen(*wxBLACK, 1, wxDOT));
721 
722  AColor::Line(dc, FADE_DOWN_START, 10, FADE_DOWN_START, clientHeight - 10);
723  AColor::Line(dc, FADE_UP_START, 10, FADE_UP_START, clientHeight - 10);
724 
725  dc.SetPen(AColor::envelopePen);
726  dc.SetBrush(*wxWHITE_BRUSH);
727 
728  mControlPoints[outerFadeDown] = points[1];
729  mControlPoints[innerFadeDown] = points[2];
730  mControlPoints[innerFadeUp] = points[3];
731  mControlPoints[outerFadeUp] = points[4];
732  mControlPoints[duckAmount] = wxPoint(
733  (points[2].x + points[3].x) / 2, points[2].y);
734 
735  for (int i = 0; i < AUTO_DUCK_PANEL_NUM_CONTROL_POINTS; i++)
736  {
738  int digits;
739  float value;
740 
741  if (cp == innerFadeDown)
742  {
743  value = innerFadeDownLen;
744  digits = 2;
745  }
746  else if (cp == innerFadeUp)
747  {
748  value = innerFadeUpLen;
749  digits = 2;
750  }
751  else if (cp == outerFadeDown)
752  {
753  value = outerFadeDownLen;
754  digits = 2;
755  } else if (cp == outerFadeUp)
756  {
757  value = outerFadeUpLen;
758  digits = 2;
759  }
760  else
761  {
762  value = duckAmountDb;
763  digits = 1;
764  }
765 
766  wxString valueStr = Internat::ToDisplayString(value, digits);
767  valueStr += wxT(" ");
768 
769  if (cp == duckAmount)
770  /* i18n-hint: short form of 'decibels'.*/
771  valueStr += _("dB");
772  else
773  /* i18n-hint: short form of 'seconds'.*/
774  valueStr += _("s");
775 
776  int textWidth = 0, textHeight = 0;
777  GetTextExtent(valueStr, &textWidth, &textHeight);
778 
779  int textPosX = mControlPoints[i].x - textWidth / 2;
780  int textPosY = mControlPoints[i].y;
781 
782  if (cp == duckAmount || cp == outerFadeDown || cp == outerFadeUp)
783  textPosY -= TEXT_DISTANCE + textHeight;
784  else
785  textPosY += TEXT_DISTANCE;
786 
787  dc.DrawText(valueStr, textPosX, textPosY);
788 
789  dc.DrawEllipse(mControlPoints[i].x - 3,
790  mControlPoints[i].y - 3, 6, 6);
791  }
792  }
793 
794  // copy background buffer to paint dc
795  wxPaintDC paintDC(this);
796  paintDC.Blit(0, 0, clientWidth, clientHeight, &dc, 0, 0);
797 
798  // clean up: necessary to free resources on Windows
799  dc.SetPen(wxNullPen);
800  dc.SetBrush(wxNullBrush);
801  dc.SetFont(wxNullFont);
802  dc.SelectObject(wxNullBitmap);
803 }
AUDACITY_DLL_API Theme theTheme
Definition: Theme.cpp:209
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
Definition: AutoDuck.h:27
wxTextCtrl * mInnerFadeUpLenBox
Definition: AutoDuck.h:82
EffectAutoDuck * mEffect
Definition: AutoDuck.h:129
void ResetControlPoints()
Definition: AutoDuck.cpp:633
#define TEXT_DISTANCE
Definition: AutoDuck.cpp:587
static wxPen envelopePen
Definition: AColor.h:122
std::unique_ptr< wxBitmap > mBackgroundBitmap
Definition: AutoDuck.h:130
#define DUCK_AMOUNT_START
Definition: AutoDuck.cpp:591
wxTextCtrl * mInnerFadeDownLenBox
Definition: AutoDuck.h:81
wxTextCtrl * mOuterFadeUpLenBox
Definition: AutoDuck.h:84
wxTextCtrl * mDuckAmountDbBox
Definition: AutoDuck.h:80
#define FADE_UP_START
Definition: AutoDuck.cpp:590
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
Definition: AColor.cpp:122
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
#define FADE_SCALE
Definition: AutoDuck.cpp:593
wxTextCtrl * mOuterFadeDownLenBox
Definition: AutoDuck.h:83
#define DUCK_AMOUNT_SCALE
Definition: AutoDuck.cpp:594
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:132
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:148
wxColour & Colour(int iIndex)
Definition: Theme.cpp:1208
#define FADE_DOWN_START
Definition: AutoDuck.cpp:589
void EffectAutoDuckPanel::ResetControlPoints ( )
private

Definition at line 633 of file AutoDuck.cpp.

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

Referenced by OnPaint().

634 {
635  mControlPoints[innerFadeDown] = wxPoint(-100,-100);
636  mControlPoints[innerFadeUp] = wxPoint(-100,-100);
637  mControlPoints[outerFadeDown] = wxPoint(-100,-100);
638  mControlPoints[outerFadeUp] = wxPoint(-100,-100);
639  mControlPoints[duckAmount] = wxPoint(-100,-100);
640 }
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
Definition: AutoDuck.h:132

Member Data Documentation

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

Definition at line 130 of file AutoDuck.h.

Referenced by OnPaint().

bool EffectAutoDuckPanel::mControlPointMoveActivated
private

Definition at line 135 of file AutoDuck.h.

Referenced by OnLeftDown(), and OnMotion().

wxPoint EffectAutoDuckPanel::mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private

Definition at line 132 of file AutoDuck.h.

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

EControlPoint EffectAutoDuckPanel::mCurrentControlPoint
private

Definition at line 131 of file AutoDuck.h.

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

EffectAutoDuck* EffectAutoDuckPanel::mEffect
private

Definition at line 129 of file AutoDuck.h.

Referenced by OnMotion(), and OnPaint().

wxPoint EffectAutoDuckPanel::mMouseDownPoint
private

Definition at line 134 of file AutoDuck.h.

Referenced by OnLeftDown(), and OnMotion().

wxPoint EffectAutoDuckPanel::mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private

Definition at line 133 of file AutoDuck.h.

Referenced by OnLeftDown().

wxWindow* EffectAutoDuckPanel::mParent
private

Definition at line 128 of file AutoDuck.h.


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