From afb0e6e08d3911b7387799f5c465fd59ca26a484 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 1 Apr 2017 17:43:54 -0300 Subject: Constant implemented Missing: gain and io --- Project/TransferFunctionForm.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Project/TransferFunctionForm.cpp') 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); } -- cgit