Index: sources/gui/qml/pages/TreatmentStart.qml =================================================================== diff -u -r174d5078531f9dfbe9cdc45274b852984bb72647 -r188d7611230946fc5fde4e3e837a09202dd93eea --- sources/gui/qml/pages/TreatmentStart.qml (.../TreatmentStart.qml) (revision 174d5078531f9dfbe9cdc45274b852984bb72647) +++ sources/gui/qml/pages/TreatmentStart.qml (.../TreatmentStart.qml) (revision 188d7611230946fc5fde4e3e837a09202dd93eea) @@ -1,6 +1,6 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2019-2019 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 @@ -17,6 +17,8 @@ import QtQuick.Controls 2.12 // Project +import Gui.Actions 0.1; + // Qml imports import "qrc:/globals" import "qrc:/components" @@ -39,4 +41,84 @@ text: qsTr("Start Treatment Placeholder") } } + + Column { + spacing: 20 + topPadding: 100 + leftPadding: 10 + Text { + id: _S32 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_1 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_2 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_3 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_4 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_5 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + Text { + id: _F32_6 + text: qsTr("") + width: 250 + horizontalAlignment: Text.AlignRight + color: Colors.textMain + font.pixelSize: Fonts.fontPixelTitle + } + } + Connections { + target: _GuiView + onDidActionReceive: { + if ( ! visible ) return; + switch(vAction) { + case GuiActions.BloodFlow: + //console.debug(vData) + _S32 .text = vData[GuiActions.BloodFlow_FlowSetPoint ]; + _F32_1.text = vData[GuiActions.BloodFlow_MeasuredFlow ].toFixed(2); + _F32_2.text = vData[GuiActions.BloodFlow_RotorSpeed ].toFixed(2); + _F32_3.text = vData[GuiActions.BloodFlow_MotorSpeed ].toFixed(2); + _F32_4.text = vData[GuiActions.BloodFlow_MotorCtlSpeed ].toFixed(2); + _F32_5.text = vData[GuiActions.BloodFlow_MotorCtlCurrent].toFixed(2); + _F32_6.text = vData[GuiActions.BloodFlow_PWMDtCycle ].toFixed(2) + "%"; + break; + } + } + } }