Index: sources/gui/qml/pages/treatment/TreatmentHome.qml =================================================================== diff -u -r9bd436782039b50ac45eb38f561a36706517271b -ra42e662e05949b63abd4c1e51b814ce476c107d4 --- sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision 9bd436782039b50ac45eb38f561a36706517271b) +++ sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision a42e662e05949b63abd4c1e51b814ce476c107d4) @@ -37,6 +37,7 @@ signal sectionFlowClicked() signal sectionVitalsClicked() signal sectionPressuresClicked() + signal sectionSalineClicked() signal sectionTimeClicked() signal sectionUltrafiltrationClicked() @@ -72,6 +73,7 @@ width: cellWidth + Variables.defaultMargin height: cellHeight + onEditClicked: sectionSalineClicked() } TreatmentVitals { id: _treatmentVitals @@ -124,6 +126,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.adjustment_ReasonText + _notification.source = 0 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateFlowRate + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateFlowRate.adjustment_Accepted) { + if (_notification.source === 1) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateFlowRate.adjustment_ReasonText + _notification.source = 1 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateTemperature + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateTemperature.adjustment_Accepted) { + if (_notification.source === 2) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateTemperature.adjustment_ReasonText + _notification.source = 2 + } + } + } + onVisibleChanged: { if (visible) { _mainMenu.hidden = true