diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-01 17:43:54 -0300 |
commit | afb0e6e08d3911b7387799f5c465fd59ca26a484 (patch) | |
tree | 7b9b24d512813837c64d6cc9b2e005cd9791b5e6 /Project/TransferFunctionForm.cpp | |
parent | a684d5c9c9dd131060b5a36d7c7844ae197fcfd1 (diff) | |
download | PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.gz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.tar.xz PSP.git-afb0e6e08d3911b7387799f5c465fd59ca26a484.zip |
Constant implemented
Missing: gain and io
Diffstat (limited to 'Project/TransferFunctionForm.cpp')
-rw-r--r-- | Project/TransferFunctionForm.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Project/TransferFunctionForm.cpp b/Project/TransferFunctionForm.cpp index 5814339..d71b28b 100644 --- a/Project/TransferFunctionForm.cpp +++ b/Project/TransferFunctionForm.cpp @@ -10,9 +10,7 @@ TransferFunctionForm::TransferFunctionForm(wxWindow* parent, TransferFunction* t } TransferFunctionForm::~TransferFunctionForm() {} - void TransferFunctionForm::OnCancelClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); } - void TransferFunctionForm::OnOKClick(wxCommandEvent& event) { if(ValidateData()) EndModal(wxID_OK); @@ -51,10 +49,10 @@ bool TransferFunctionForm::ValidateData() while(num != "") { wxString rest; wxString strValue = num.BeforeFirst(' ', &rest); - num = rest; + num = rest; double value = 0; - if(!m_tf->DoubleFromString( - this, strValue, value, _("Value entered incorrectly in the field \"Numerator parameters\"."))) + if(!m_tf->DoubleFromString(this, strValue, value, + _("Value entered incorrectly in the field \"Numerator parameters\"."))) return false; numerator.push_back(value); } @@ -66,8 +64,8 @@ bool TransferFunctionForm::ValidateData() wxString strValue = den.BeforeFirst(' ', &rest); den = rest; double value = 0; - if(!m_tf->DoubleFromString( - this, strValue, value, _("Value entered incorrectly in the field \"Denominator parameters\"."))) + if(!m_tf->DoubleFromString(this, strValue, value, + _("Value entered incorrectly in the field \"Denominator parameters\"."))) return false; denominator.push_back(value); } |