summaryrefslogtreecommitdiffstats
path: root/Project/BusForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-04-26 17:52:32 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-04-26 17:52:32 -0300
commit2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6 (patch)
tree4aba955355f4b98138e2f38c58223f51bf4d697b /Project/BusForm.cpp
parenta40d5a405d60b4e429f6f578dcfe3c33ab5ad81a (diff)
downloadPSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.tar.gz
PSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.tar.xz
PSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.zip
Power quality fully implemented
A formal filter element must be implemented in future
Diffstat (limited to 'Project/BusForm.cpp')
-rw-r--r--Project/BusForm.cpp4
1 files changed, 4 insertions, 0 deletions
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);