summaryrefslogtreecommitdiffstats
path: root/Project/TransferFunctionForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-01 17:43:54 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-01 17:43:54 -0300
commitafb0e6e08d3911b7387799f5c465fd59ca26a484 (patch)
tree7b9b24d512813837c64d6cc9b2e005cd9791b5e6 /Project/TransferFunctionForm.cpp
parenta684d5c9c9dd131060b5a36d7c7844ae197fcfd1 (diff)
downloadPSP.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.cpp12
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);
}