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()
40 if(!m_gain->DoubleFromString(
this, m_textCtrlValue->GetValue(), value,
41 _(
"Value entered incorrectly in the field \"Gain value\".")))
44 m_gain->SetValue(value);
Provide an output multiplying the input by a constant.