90,16 → 90,18 |
|
} |
|
void dlg_Config::set_Settings(cSettings *Set) |
void dlg_Config::set_Settings(cSettings *Set, int ID) |
{ |
Settings = Set; |
|
lb_Hardware->setText(HardwareType[ID]); |
|
for (int a = 0; a < MaxAnalog; a++) |
{ |
cb_Plot[a]->setText(Settings->Analog[a].Name); |
cb_Plot[a]->setChecked(Settings->Analog[a].Plot); |
cb_Log[a]->setText(Settings->Analog[a].Name); |
cb_Log[a]->setChecked(Settings->Analog[a].Log); |
cb_Plot[a]->setText(Settings->Analog1.Label[a]); |
cb_Plot[a]->setChecked(Settings->Analog1.PlotView[a]); |
cb_Log[a]->setText(Settings->Analog1.Label[a]); |
cb_Log[a]->setChecked(Settings->Analog1.LogView[a]); |
} |
} |
|
107,12 → 109,12 |
{ |
for (int a = 0; a < MaxAnalog; a++) |
{ |
Settings->Analog[a].Plot = cb_Plot[a]->isChecked(); |
Settings->Analog1.PlotView.setBit(a,cb_Plot[a]->isChecked()); |
} |
|
for (int a = 0; a < MaxAnalog; a++) |
{ |
Settings->Analog[a].Log = cb_Log[a]->isChecked(); |
Settings->Analog1.LogView.setBit(a,cb_Log[a]->isChecked()); |
} |
|
return Settings; |