Audacity 3.2.0
EqualizationCurvesDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 EqualizationCurvesDialog.h
6
7 Mitch Golden
8 Vaughan Johnson (Preview)
9
10 Paul Licameli split from Equalization.h
11
12***********************************************************************/
13#ifndef __AUDACITY_EQUALIZATION_CURVES_DIALOG__
14#define __AUDACITY_EQUALIZATION_CURVES_DIALOG__
15
16#include "EqualizationCurves.h"
17#include "wxPanelWrapper.h"
18
19class wxListCtrl;
20class wxListEvent;
21class ShuttleGui;
22
25{
26public:
27 EqualizationCurvesDialog(wxWindow * parent, const TranslatableString &name,
28 int options, EQCurveArray &curves, int position);
30 int GetItem() const { return mItem; }
31
32private:
33
35 {
36 CurvesListID = 11000,
45 };
46
48 const int mOptions;
50 wxListCtrl *mList; // List of curves.
51 EQCurveArray mEditCurves; // Copy of curves to muck about with
52 wxWindow *mParent; // the parent EQ Dialog
53 int mPosition; // position of current curve in list
54 int mItem{ -1 };
55 void Populate();
57 void PopulateList(int position);
58 void OnUp(wxCommandEvent &event);
59 void OnDown(wxCommandEvent &event);
60 long GetPreviousItem(long item);
61 void OnRename( wxCommandEvent &event );
62 void OnDelete( wxCommandEvent &event );
63 void OnImport( wxCommandEvent &event );
64 void OnExport( wxCommandEvent &event );
65 void OnLibrary( wxCommandEvent &event );
66 void OnDefaults( wxCommandEvent &event );
67 void OnOK(wxCommandEvent &event);
68
69 void OnListSelectionChange( wxListEvent &event );
70 DECLARE_EVENT_TABLE()
71};
72
73#endif
std::vector< EQCurve > EQCurveArray
wxString name
Definition: TagsEditor.cpp:166
#define S(N)
Definition: ToChars.cpp:64
EqualizationCurvesDialog manages the available preset curves.
EqualizationCurvesDialog(wxWindow *parent, const TranslatableString &name, int options, EQCurveArray &curves, int position)
void OnDown(wxCommandEvent &event)
void PopulateOrExchange(ShuttleGui &S)
Defines the dialog and does data exchange with it.
void OnDelete(wxCommandEvent &event)
void OnOK(wxCommandEvent &event)
const TranslatableString & mName
void OnDefaults(wxCommandEvent &event)
void OnExport(wxCommandEvent &event)
void Populate()
Creates the dialog and its contents.
void OnImport(wxCommandEvent &event)
void OnRename(wxCommandEvent &event)
void OnUp(wxCommandEvent &event)
void OnListSelectionChange(wxListEvent &event)
void OnLibrary(wxCommandEvent &event)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.