Index: sources/gui/qml/pages/treatment/TreatmentHome.qml =================================================================== diff -u -r56b0b13aa9f9e7ae201bce1843015fe5b4b43d2c -rc9764bd0ad823c5c1725d7c7f556290c2c459d4d --- sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision 56b0b13aa9f9e7ae201bce1843015fe5b4b43d2c) +++ sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision c9764bd0ad823c5c1725d7c7f556290c2c459d4d) @@ -37,6 +37,7 @@ signal sectionFlowClicked() signal sectionVitalsClicked() signal sectionPressuresClicked() + signal sectionSalineClicked() signal sectionTimeClicked() signal sectionUltrafiltrationClicked() @@ -71,6 +72,7 @@ objectName : "treatmentSaline" width : cellWidth + Variables.defaultMargin height : cellHeight + onEditClicked: sectionSalineClicked() } TreatmentVitals { id: _treatmentVitals @@ -120,6 +122,76 @@ } } + NotificationBarSmall { id: _notification + objectName : "_notification" + anchors.bottom : parent.bottom + height : 60 + visible : ! _alarmBar.visible && text + + property int source: -1 + + onTextChanged: { + if (text === "") { + source = -1 + } + } + + CloseButton { id: _dismissButton + objectName: "_dismissButton" + anchors { + top: parent.top + bottom: parent.bottom + right: parent.right + margins: 20 + } + width: height + visible: true + onClicked: { _notification.text = "" } + } + } + + Connections { target: vTreatmentAdjustmentBloodFlowRate + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentBloodFlowRate.adjustment_Accepted) { + if (_notification.source === 0) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentBloodFlowRate.text() + _notification.source = 0 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateFlowRate + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateFlowRate.adjustment_Accepted) { + if (_notification.source === 1) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateFlowRate.text() + _notification.source = 1 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateTemperature + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateTemperature.adjustment_Accepted) { + if (_notification.source === 2) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateTemperature.text() + _notification.source = 2 + } + } + } + onVisibleChanged: { if (visible) { _mainMenu.hidden = true