diff options
Diffstat (limited to 'Project/IOControlForm.cpp')
-rw-r--r-- | Project/IOControlForm.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Project/IOControlForm.cpp b/Project/IOControlForm.cpp index 73ac331..4a25468 100644 --- a/Project/IOControlForm.cpp +++ b/Project/IOControlForm.cpp @@ -77,13 +77,19 @@ IOControlForm::IOControlForm(wxWindow* parent, IOControl* ioControl) : IOControl m_inputFlags.push_back(IOControl::IN_INITIAL_VELOCITY); if(m_ioControl->GetValue() == IOControl::IN_INITIAL_VELOCITY) inChoiceNumber = (int)m_inputFlags.size() - 1; } - + if(ioFlags & IOControl::IN_DELTA_VELOCITY) { m_choiceInput->Append(_("Velocity variation")); m_inputFlags.push_back(IOControl::IN_DELTA_VELOCITY); if(m_ioControl->GetValue() == IOControl::IN_DELTA_VELOCITY) inChoiceNumber = (int)m_inputFlags.size() - 1; } + if(ioFlags & IOControl::IN_DELTA_ACTIVE_POWER) { + m_choiceInput->Append(_("Active power variation")); + m_inputFlags.push_back(IOControl::IN_DELTA_ACTIVE_POWER); + if(m_ioControl->GetValue() == IOControl::IN_DELTA_ACTIVE_POWER) inChoiceNumber = (int)m_inputFlags.size() - 1; + } + if(inChoiceNumber != -1) { m_choiceInput->SetSelection(inChoiceNumber); m_checkBoxInput->SetValue(true); |