Index: sources/view/VTreatmentCreate.cpp =================================================================== diff -u -r052c794d6a8db55a2fbfdad172275af073ee54c3 -r6b132368f2d26c6d869ed910ee4910282c192d75 --- sources/view/VTreatmentCreate.cpp (.../VTreatmentCreate.cpp) (revision 052c794d6a8db55a2fbfdad172275af073ee54c3) +++ sources/view/VTreatmentCreate.cpp (.../VTreatmentCreate.cpp) (revision 6b132368f2d26c6d869ed910ee4910282c192d75) @@ -16,6 +16,7 @@ // Qt // Project +#include "ApplicationController.h" #include "VTreatmentCreate.h" #include "FileHandler.h" #include "MsgDefs.h" @@ -29,6 +30,10 @@ ADJUST_VIEW_CONNECTION(AdjustParametersValidationRequestData ) ACTION_VIEW_CONNECTION(AdjustParametersValidationResponseData) ADJUST_VIEW_CONNECTION( AdjustParametersConfirmRequestData) + + connect(&_ApplicationController , SIGNAL(didSettingsDone()), + this , SLOT( onSettingsDone())); + } /** @@ -374,3 +379,20 @@ << QString("%0 min").arg(_bloodPressureMeasureInterval) << QString("%0 min").arg(_rinsebackFlowRate); } + +/*! + * \brief VTreatmentCreate::onSettingsDone + * \details fills the items below, read from the settings file, when the reading is notified done by ApplicationController. + * acidConcentrateOptions + * bicarbonateConcentrateOptions + * dialyzerTypeOptions + * heparinTypeOptions + * + */ +void VTreatmentCreate::onSettingsDone() +{ + acidConcentrateOptions ( _Settings.keys("Acid Concentrate" )); + bicarbonateConcentrateOptions ( _Settings.keys("Bicarbonate Concentrate" )); + dialyzerTypeOptions ( _Settings.keys("Dialyzer Type" )); + heparinTypeOptions ( _Settings.keys("Heparin Type" )); +}