summaryrefslogtreecommitdiffstats
path: root/Project/IOControlForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-09 22:17:10 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-09 22:17:10 -0300
commiteea796f53f5d9dc1444a620713b3326f04b73339 (patch)
tree2cc6cd35c3dfa718c26b7f5de9dcee913fb93028 /Project/IOControlForm.cpp
parentaa2378020ee0bbfd041681cfdbe62a8d028687f3 (diff)
downloadPSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.tar.gz
PSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.tar.xz
PSP.git-eea796f53f5d9dc1444a620713b3326f04b73339.zip
Divider control element implemented
Abstract class math operations implemented Divider need to be redesigned Expor/import divider functions implemented but supressed
Diffstat (limited to 'Project/IOControlForm.cpp')
-rw-r--r--Project/IOControlForm.cpp8
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);