summaryrefslogtreecommitdiffstats
path: root/Project/IOControlForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-06 22:23:09 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-06 22:23:09 -0300
commitae9530685962e8d4d88c871ec7f5f896dd0b4a93 (patch)
tree21de2874efead27294cf39f603ff4dd858d94831 /Project/IOControlForm.cpp
parenta32372968abb2f4b3bf0472f59c18f5028d20206 (diff)
downloadPSP.git-ae9530685962e8d4d88c871ec7f5f896dd0b4a93.tar.gz
PSP.git-ae9530685962e8d4d88c871ec7f5f896dd0b4a93.tar.xz
PSP.git-ae9530685962e8d4d88c871ec7f5f896dd0b4a93.zip
Several new implementation, not working
Diffstat (limited to 'Project/IOControlForm.cpp')
-rw-r--r--Project/IOControlForm.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Project/IOControlForm.cpp b/Project/IOControlForm.cpp
index 583e534..592c5be 100644
--- a/Project/IOControlForm.cpp
+++ b/Project/IOControlForm.cpp
@@ -59,6 +59,25 @@ IOControlForm::IOControlForm(wxWindow* parent, IOControl* ioControl) : IOControl
if(m_ioControl->GetValue() == IOControl::OUT_MEC_POWER) outChoiceNumber = (int)m_outputFlags.size() - 1;
}
+ if(ioFlags & IOControl::IN_INITIAL_MEC_POWER) {
+ m_choiceOutput->Append(_("Initial mechanical power"));
+ m_outputFlags.push_back(IOControl::IN_INITIAL_MEC_POWER);
+ if(m_ioControl->GetValue() == IOControl::IN_INITIAL_MEC_POWER) outChoiceNumber = (int)m_outputFlags.size() - 1;
+ }
+
+ if(ioFlags & IOControl::IN_INITIAL_TERMINAL_VOLTAGE) {
+ m_choiceOutput->Append(_("Initial terminal voltage"));
+ m_outputFlags.push_back(IOControl::IN_INITIAL_TERMINAL_VOLTAGE);
+ if(m_ioControl->GetValue() == IOControl::IN_INITIAL_TERMINAL_VOLTAGE)
+ outChoiceNumber = (int)m_outputFlags.size() - 1;
+ }
+
+ if(ioFlags & IOControl::IN_INITIAL_VELOCITY) {
+ m_choiceOutput->Append(_("Initial velocity"));
+ m_outputFlags.push_back(IOControl::IN_INITIAL_VELOCITY);
+ if(m_ioControl->GetValue() == IOControl::IN_INITIAL_VELOCITY) outChoiceNumber = (int)m_outputFlags.size() - 1;
+ }
+
if(inChoiceNumber != -1) {
m_choiceInput->SetSelection(inChoiceNumber);
m_checkBoxInput->SetValue(true);