From 2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Fri, 26 Apr 2019 17:52:32 -0300 Subject: Power quality fully implemented A formal filter element must be implemented in future --- Project/BusForm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Project/BusForm.cpp') diff --git a/Project/BusForm.cpp b/Project/BusForm.cpp index ca083e7..9f942f3 100644 --- a/Project/BusForm.cpp +++ b/Project/BusForm.cpp @@ -86,6 +86,8 @@ BusForm::BusForm(wxWindow* parent, Bus* bus) : BusFormBase(parent) EnableCtrlVoltageFields(bus->GetElectricalData().isVoltageControlled); EnableFaultFields(bus->GetElectricalData().hasFault); EnableStabFaultFields(bus->GetElectricalData().stabHasFault); + + m_checkBoxPlotPQData->SetValue(bus->GetElectricalData().plotPQData); } BusForm::~BusForm() {} @@ -161,6 +163,8 @@ void BusForm::OnButtonOKClick(wxCommandEvent& event) if(!m_bus->DoubleFromString(m_parent, m_textCtrlStabFaultReactance->GetValue(), data.stabFaultReactance, _("Value entered incorrectly in the field \"Fault reactance (stability)\"."))) return; + + data.plotPQData = m_checkBoxPlotPQData->GetValue(); m_bus->SetElectricalData(data); -- cgit