19#include "../elements/controlElement/Gain.h"
21GainForm::GainForm(wxWindow* parent,
Gain* gain) : GainFormBase(parent)
23 SetSize(GetBestSize());
28 m_textCtrlValue->SetValue(m_gain->StringFromDouble(m_gain->GetValue()));
31GainForm::~GainForm() {}
32void GainForm::OnOKButtonClick(wxCommandEvent& event)
34 if(ValidateData()) EndModal(wxID_OK);
37bool GainForm::ValidateData()
41 _(
"Value entered incorrectly in the field \"Gain value\".")))
44 m_gain->SetValue(value);
static bool DoubleFromString(wxWindow *parent, wxString strValue, double &value, wxString errorMsg)
Get a double value from a string. Show a error message if the conversion fail.
Provide an output multiplying the input by a constant.