Index: sources/gui/qml/components/HeaderBar.qml =================================================================== diff -u -re1ecb77ba0ff9619b7363f14e1ed3c3e110c4057 -r785e8b1148fb690e3610557a0f6a976284e36f46 --- sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision e1ecb77ba0ff9619b7363f14e1ed3c3e110c4057) +++ sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 785e8b1148fb690e3610557a0f6a976284e36f46) @@ -17,6 +17,8 @@ GradientStop { position: 0.8; color: Qt.darker (Colors.backgroundMain, 1.2) } } + function vitalsRecorded() { _vitalsButton.pulseAnimation.start() } + MouseArea { id: _mouseArea anchors.fill : parent // TODO: disable this later. this is only for diagnostic purpose. @@ -103,13 +105,23 @@ Row { id: _headerButtonRow height : parent.height - spacing : 30 + spacing : 25 anchors { verticalCenter: parent.verticalCenter right : parent.right rightMargin : _headerButtonRow.spacing } + VitalsButton { id : _vitalsButton + extraSpace : _headerButtonRow.spacing + visible : vTDOpMode.preTreatment || + vTDOpMode.inTreatment || + vTDOpMode.postTreatment || + vTDOpMode.validateParameters + + onPressed : _treatmentAdjustmentVitals.open() + } + IconButton { id : _prescriptionButton iconSize : Variables.headerIconDiameter iconImageSource : "qrc:/images/iPrescription" @@ -122,18 +134,10 @@ iconSize : Variables.headerIconDiameter iconImageSource : "qrc:/images/iWifi" extraSpace : _headerButtonRow.spacing + onPressed : _headerbarWifi.openDialog(_wifiButton) } - IconButton { id : _bluetoothButton - iconSize : Variables.headerIconDiameter - iconImageSource : "qrc:/images/iBluetooth" - extraSpace : _headerButtonRow.spacing - enabled : false - - onPressed : print("Bluetooth button pressed!") - } - IconButton { id : _cloudSyncButton iconSize : Variables.headerIconDiameter iconImageSource : "qrc:/images/iCloudSync"