Index: sources/gui/qml/main.qml =================================================================== diff -u -r015a7cea7842d589a11325a989436be342b801ef -r6b60df9d8468e2134c7de32bd0f6215cef33269b --- sources/gui/qml/main.qml (.../main.qml) (revision 015a7cea7842d589a11325a989436be342b801ef) +++ sources/gui/qml/main.qml (.../main.qml) (revision 6b60df9d8468e2134c7de32bd0f6215cef33269b) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file main.qml - * \author (last) Behrouz NematiPour - * \date (last) 03-Apr-2023 + * \author (last) Mohammed Suleiman + * \date (last) 21-Jul-2023 * \author (original) Behrouz NematiPour * \date (original) 24-Sep-2019 * @@ -111,6 +111,7 @@ import VPostTreatmentAdjustmentTreatmentLog 0.1 // Disinfection import VDisinfectAdjustDisinfect 0.1 +import VAdjustDGCleaningUsage 0.1 // Confirm import VConfirm 0.1 @@ -148,23 +149,28 @@ VCloudSync { id: vCloudSync } // ---- States - VHDOperationMode { id: vHDOperationMode } + VHDOperationMode { id: vHDOperationMode + onStandbyChanged: { + if(vHDOperationMode.standby) { + vTreatmentVitals.doReset() + } + } + } VPreTreatmentStates { id: vPreTreatmentStates } VHDTreatmentStates { id: vHDTreatmentStates } VPostTreatmentStates { id: vPostTreatmentStates } VTreatmentBloodFlow { id: vTreatmentBloodFlow } VTreatmentVitals { id: vTreatmentVitals interval : vTreatmentCreate.bloodPressureMeasureInterval - enableDialog: vHDOperationMode.inTreatment && vHDTreatmentStates.txDialysis + enableDialog: vHDOperationMode.inTreatment && vHDTreatmentStates.txTreatment // As long as UI is in In-Tx BP/HR is updated and the dialog will pop up on interval. onEnableDialogChanged : { if ( vTreatmentVitals.enableDialog ) { vTreatmentVitals.doTimerStart() } else { vTreatmentVitals.doTimerStop() - vTreatmentVitals.doReset() } } } @@ -234,6 +240,7 @@ // --- Disinfection VDisinfectAdjustDisinfect { id: vDisinfectAdjustDisinfect } + VAdjustDGCleaningUsage { id: vAdjustDGCleaningUsage } Background {} @@ -252,15 +259,18 @@ function isManager () { _mainMenu.itemPressed(1) } function isSettings () { _mainMenu.itemPressed(2) } - hidden: true // it should be hidden by default since the landing screen changed to init and it does not have the main menu untill the POST passes. - titles: [ qsTr("Treatment") , qsTr("Manager") , qsTr("Settings") ] - Component.onCompleted: { + disable : _GuiView.manufactSetup + hidden : true // it should be hidden by default since the landing screen changed to init and it does not have the main menu until the POST passes. + titles : [ qsTr("Treatment") , qsTr("Manager") , qsTr("Settings") ] + visibleItems : [ true , false , true ] + Component.onCompleted : { _settingsStack.visible = false _managerStack .visible = false _mainStack .visible = true } onItemPressed: { + if ( disable ) return _mainStack .visible = vIndex == 0 _managerStack .visible = vIndex == 1 _settingsStack.visible = vIndex == 2 @@ -328,14 +338,25 @@ verticalAlignment : Text.AlignBottom height : 15 - text : Variables.notSetVariable(vTreatmentVitals.systolic__rt, 2) + "/" + - Variables.notSetVariable(vTreatmentVitals.diastolic_rt, 2) + "/" + - Variables.notSetVariable(vTreatmentVitals.heartRate_rt, 2) + ":" + - vBluetooth.pairedAddr + " " + - (vBluetooth.notification || vDevice.status) + text : "B:" + vBluetooth.pairedAddr font.pixelSize: 14 } + Text { // TEST : The treatment vital dialog countdown time + color : Colors.textMain + anchors { + top : parent.top + left : parent.left + leftMargin : 900 + } + horizontalAlignment : Text.Alignleft + verticalAlignment : Text.AlignBottom + + height : 15 + //DEBUG text : "Vital Timer: " + vTreatmentVitals.min_left + " : " + vTreatmentVitals.sec_left + font.pixelSize: 14 + } + Text { // TEST : Current Date/Time color : Colors.textMain anchors { @@ -400,6 +421,7 @@ anchors.bottom : _mainMenu.top backgroundColor : _alarmItem.backgroundColor textColor : _alarmItem.textColor + alarmID : _alarmItem.alarm_AlarmID text : _alarmItem.title textPixelSize : Fonts.fontPixelAlarmBarTitle isSilenced : _alarmItem.isSilenced