#include "Reverb.h"
#include "EffectEditor.h"
#include "LoadEffects.h"
#include <wx/arrstr.h>
#include <wx/checkbox.h>
#include <wx/slider.h>
#include <wx/spinctrl.h>
#include "Prefs.h"
#include "ShuttleGui.h"
#include "../widgets/valnum.h"
Go to the source code of this file.
|
| SpinSliderHandlers (RoomSize) SpinSliderHandlers(PreDelay) SpinSliderHandlers(Reverberance) SpinSliderHandlers(HfDamping) SpinSliderHandlers(ToneLow) SpinSliderHandlers(ToneHigh) SpinSliderHandlers(WetGain) SpinSliderHandlers(DryGain) SpinSliderHandlers(StereoWidth) void EffectReverb |
|
◆ SetSpinSlider
#define SetSpinSlider |
( |
|
n | ) |
|
Value: m ## n ##
S->SetValue((
int) rs.m ## n); \
m ## n ## T->SetValue(wxString::Format(
wxT(
"%d"), (
int) rs.m ## n));
◆ SpinSlider [1/2]
Value: wxSpinCtrl *m ## n ## T; \
Definition at line 51 of file Reverb.cpp.
◆ SpinSlider [2/2]
#define SpinSlider |
( |
|
n, |
|
|
|
p |
|
) |
| |
Value: m ## n ## T =
S.AddSpinCtrl( p, n.def, n.max, n.min); \
BindTo(*m ## n ## T, wxEVT_SPINCTRL, &Editor::On ## n ## Text);\
\
m ## n ##
S =
S.Style(wxSL_HORIZONTAL).AddSlider( {}, n.def, n.max, n.min); \
BindTo(*m ## n ##
S, wxEVT_SLIDER, &Editor::On ## n ## Slider);
Definition at line 51 of file Reverb.cpp.
◆ SpinSliderHandlers [1/2]
#define SpinSliderHandlers |
( |
|
n | ) |
|
Value: void On ## n ## Slider(wxCommandEvent & evt); \
void On ## n ## Text(wxCommandEvent & evt);
Definition at line 209 of file Reverb.cpp.
◆ SpinSliderHandlers [2/2]
#define SpinSliderHandlers |
( |
|
n | ) |
|
Value: void EffectReverb::Editor::On ## n ## Slider(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## T->SetValue(wxString::Format(
wxT(
"%d"), evt.GetInt())); \
mProcessingEvent = false; \
ValidateUI(); \
} \
void EffectReverb::Editor::On ## n ## Text(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ##
S->SetValue(std::clamp<long>(evt.GetInt(), n.min, n.max)); \
mProcessingEvent = false; \
ValidateUI(); \
}
Message sent by EffectEditor when a setting is changed by the user.
Definition at line 209 of file Reverb.cpp.
◆ SpinSliderHandlers()
SpinSliderHandlers |
( |
RoomSize |
| ) |
|