Form to edit the gain control data.
More...
#include <GainForm.h>
Form to edit the gain control data.
- Author
- Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
- Date
- 05/10/2017
Definition at line 31 of file GainForm.h.
◆ GainForm()
| GainForm::GainForm |
( |
wxWindow * | parent, |
|
|
Gain * | gain ) |
Definition at line 21 of file GainForm.cpp.
21 : GainFormBase(parent)
22{
23 SetSize(GetBestSize());
24
25 m_parent = parent;
26 m_gain = gain;
27
28 m_textCtrlValue->SetValue(m_gain->StringFromDouble(m_gain->GetValue()));
29}
◆ ~GainForm()
◆ OnCancelButtonClick()
| virtual void GainForm::OnCancelButtonClick |
( |
wxCommandEvent & | event | ) |
|
|
inlineprotectedvirtual |
Definition at line 40 of file GainForm.h.
40{ EndModal(wxID_CANCEL); }
◆ OnOKButtonClick()
| void GainForm::OnOKButtonClick |
( |
wxCommandEvent & | event | ) |
|
|
protectedvirtual |
Definition at line 32 of file GainForm.cpp.
33{
34 if(ValidateData()) EndModal(wxID_OK);
35}
◆ ValidateData()
| bool GainForm::ValidateData |
( |
| ) |
|
|
virtual |
Definition at line 37 of file GainForm.cpp.
38{
39 double value;
40 if(!m_gain->DoubleFromString(this, m_textCtrlValue->GetValue(), value,
41 _("Value entered incorrectly in the field \"Gain value\".")))
42 return false;
43
44 m_gain->SetValue(value);
45 return true;
46}
◆ m_gain
◆ m_parent
| wxWindow* GainForm::m_parent |
|
protected |
The documentation for this class was generated from the following files: