summaryrefslogtreecommitdiffstats
path: root/Project/BusForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-18 09:22:27 -0300
committerGitHub <noreply@github.com>2019-07-18 09:22:27 -0300
commit8357c081eb75147bb8f94d8b6e367d88ea3898ed (patch)
tree9d9726fdcefb917475d6b33344d2b832d4e78ef8 /Project/BusForm.cpp
parent295b775ad53eb1e128b705e6028f9690dc6fa640 (diff)
parent7f46d390b8cc1d5f37560f52b222198dbc5e1225 (diff)
downloadPSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.tar.gz
PSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.tar.xz
PSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.zip
Merge pull request #50 from Thales1330/wip/induction-motor
Wip/induction motor
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);