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
29}
static wxString StringFromDouble(double value, int minDecimal=1, int maxDecimals=13)
Convert a double value to string.
◆ ~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;
41 _("Value entered incorrectly in the field \"Gain value\".")))
42 return false;
43
44 m_gain->SetValue(value);
45 return true;
46}
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.
◆ m_gain
◆ m_parent
| wxWindow* GainForm::m_parent |
|
protected |
The documentation for this class was generated from the following files: