Index: sources/gui/qml/components/ConfirmTreatmentTable.qml =================================================================== diff -u -rccb91da4becded9a7ad409b758bba96784d9feba -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/ConfirmTreatmentTable.qml (.../ConfirmTreatmentTable.qml) (revision ccb91da4becded9a7ad409b758bba96784d9feba) +++ sources/gui/qml/components/ConfirmTreatmentTable.qml (.../ConfirmTreatmentTable.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,14 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file ConfirmTreatmentTable.qml - * \date 2020/08/25 - * \author Peter Lucia + * \author (last) Behrouz NematiPour + * \date (last) 18-Jul-2023 + * \author (original) Peter Lucia + * \date (original) 22-Sep-2020 * */ @@ -21,19 +22,17 @@ import "qrc:/globals" import "qrc:/components" -Rectangle { - id: _root +Item { id: _root objectName: "ConfirmTreatmentTable" width: Variables.createTreatmentTableWidth height: Variables.createTreatmentTableHeight - color: Colors.backgroundDialog Rectangle { id: _header width: parent.width height: Variables.createTreatmentHeaderHeight - color: "transparent" - radius: 5 + color: Colors.transparent + radius: Variables.dialogRadius Rectangle { id: _treatment_profile_id @@ -45,7 +44,7 @@ anchors.topMargin: Variables.createTreatmentMargin anchors.leftMargin: Variables.createTreatmentMargin color: Colors.createTrProfileID - radius: 5 + radius: Variables.dialogRadius Text { id: _treatment_profile_id_text @@ -65,18 +64,18 @@ anchors.left: _treatment_profile_id.right anchors.topMargin: Variables.createTreatmentMargin anchors.leftMargin: 20 - text: "New Treatment" - color: "white" - font.pixelSize: Fonts.createTreatmentFontSize + text: qsTr("New Treatment") + color: Colors.textMain + font.pixelSize: Fonts.fontPixelCreateTreatment } } Text { id: _prescription objectName: _root.objectName + "_prescription" - text: "PRESCRIPTION" - font.pixelSize: Fonts.crTreatmentTableFontSize - color: "white" + text: qsTr("PRESCRIPTION") + font.pixelSize: Fonts.fontPixelCreateTreatmentTable + color: Colors.textMain anchors.left: parent.left anchors.top: _header.bottom anchors.leftMargin: Variables.createTreatmentMargin @@ -85,9 +84,9 @@ Text { id: _operating_parameters objectName: _root.objectName + "_operating_parameters" - text: "OPERATING PARAMETERS" - font.pixelSize: Fonts.crTreatmentTableFontSize - color: "white" + text: qsTr("OPERATING PARAMETERS") + font.pixelSize: Fonts.fontPixelCreateTreatmentTable + color: Colors.textMain anchors.top: _header.bottom anchors.left: _root.horizontalCenter } @@ -97,20 +96,32 @@ anchors.top: _prescription.bottom anchors.left: _root.left anchors.leftMargin: Variables.createTreatmentMargin - anchors.topMargin: Variables.createTreatmentTableMargin + // Disabled for now since the rows changed for the A/V change and doesn't need scrolling + // anchors.topMargin: Variables.createTreatmentTableMargin anchors.bottom: parent.bottom width: parent.width - 2*Variables.createTreatmentMargin height: _root.height - _header.height - prescriptionKeys: vTreatmentCreate.doGetPrescriptionParameterNames() - prescriptionValues: vTreatmentCreate.doGetPrescriptionParameterValues() - operatingKeys: vTreatmentCreate.doGetOperatingParameterNames() - operatingValues: vTreatmentCreate.doGetOperatingParameterValues() + prescriptionKeys : [ qsTr("Blood Flow Rate" ), + qsTr("Dialysate Flow Rate" ), + qsTr("Duration" ), + qsTr("Heparin Dispensing Rate" ), + qsTr("Heparin Bolus Volume" ), + qsTr("Heparin Stop Time" ), + qsTr("Saline Bolus Volume" )] + prescriptionValues : vTreatmentCreate.doGetPrescriptionParameterValues() + + operatingKeys : [ qsTr("Heparin Type" ), + qsTr("Acid Concentrate" ), + qsTr("Bicarbonate Concentrate" ), + qsTr("Dialyzer Type" ), + qsTr("Dialysate Temperature" ), + qsTr("Blood Pressure Measure Interval" )] + operatingValues : vTreatmentCreate.doGetOperatingParameterValues() + onVisibleChanged: { if (visible) { - prescriptionKeys = vTreatmentCreate.doGetPrescriptionParameterNames() - prescriptionValues = vTreatmentCreate.doGetPrescriptionParameterValues() - operatingKeys = vTreatmentCreate.doGetOperatingParameterNames() - operatingValues = vTreatmentCreate.doGetOperatingParameterValues() + prescriptionValues = vTreatmentCreate.doGetPrescriptionParameterValues() + operatingValues = vTreatmentCreate.doGetOperatingParameterValues() } } }