Index: sources/gui/qml/pages/ManagerStack.qml =================================================================== diff -u -rc8ca0550f364ddbff8f37a68ce49050dfbc0ec09 -r9782439f3b5c0f06e3eb31bfea9aea877abbdce4 --- sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision c8ca0550f364ddbff8f37a68ce49050dfbc0ec09) +++ sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision 9782439f3b5c0f06e3eb31bfea9aea877abbdce4) @@ -31,25 +31,210 @@ StackItem { id : _root stackView.initialItem : _managerHome ScreenItem { id: _managerHome - Column { id: _managerColumn - anchors { - top : parent.top - bottom : parent.bottom - left : parent.left - right : parent.right - topMargin : Variables.defaultMargin * 2 - leftMargin : Variables.defaultMargin * 2 - rightMargin : Variables.defaultMargin * 2 - bottomMargin: Variables.alarmDialogHeaderHeight - } - spacing : Variables.defaultMargin + anchors { + fill : parent + topMargin : Variables.defaultMargin * 2 + leftMargin : Variables.defaultMargin * 3 + rightMargin : Variables.defaultMargin * 3 + bottomMargin: Variables.alarmDialogHeaderHeight + } +// spacing : Variables.defaultMargin +// Column { id: _managerColumn - RxManagerHeader{ + RxManagerHeader{id: _rxHeader height: 100 //TODO Calculate how much to give } - PlaceHolderText {screenName: qsTr("Rx Profiles")} - } + + + ListModel { + id: _dummy + ListElement { + name: "Morning Treatment" + number: "4-3-2025" + index : 0 + param1 : "Blood Flow" + value1: "320" + unit1: "mL/min" + } + ListElement { + name: "Afternoon Treatment" + number: "3-21-2025" + index : 1 + param1 : "Blood Flow" + value1: "320" + unit1: "mL/min" + } + ListElement { + name: "Evening Treatment" + number: "10-10-2025" + index : 2 + param1 : "Blood Flow" + value1: "320" + unit1: "mL/min" + } + } + property var treatmentFields: [ + [ + { title: "Blood Flow", value: "320", units: "mL/min" }, + { title: "Dialysate Flow", value: "45", units: "mL/min" }, + { title: "Duration", value: "12.3", units: "min" }, + { title: "Heparin", value: "120", units: "mL" }, + { title: "Acid", value: "1.01", units: "" }, + { title: "Bicarbonate", value: "2.0K 2.5Ca", units: "" }, + { title: "Dialyzer", value: "1150", units: "" }, + { title: "Dialysate Temp", value: "10.2", units: "°C" }, + { title: "Treatment Type", value: "39", units: "" }, + { title: "Vitals Interval", value: "230", units: "V" } + ], + [ + { title: "Blood Flow", value: "23.5", units: "°C" }, + { title: "Dialysate Flow", value: "45", units: "%" }, + { title: "Duration", value: "12.3", units: "L/min" }, + { title: "Heparin", value: "120", units: "rpm" }, + { title: "Acid", value: "1.01", units: "bar" }, + { title: "Bicarbonate", value: "5", units: "A" }, + { title: "Dialyzer", value: "1150", units: "W" }, + { title: "Dialysate Temp", value: "10.2", units: "°C" }, + { title: "Treatment Type", value: "39", units: "" }, + { title: "Vitals Interval", value: "230", units: "V" } + ], + [ + { title: "Blood Flow", value: "23.5", units: "°C" }, + { title: "Dialysate Flow", value: "45", units: "%" }, + { title: "Duration", value: "12.3", units: "L/min" }, + { title: "Heparin", value: "120", units: "rpm" }, + { title: "Acid", value: "1.01", units: "bar" }, + { title: "Bicarbonate", value: "5", units: "A" }, + { title: "Dialyzer", value: "1150", units: "W" }, + { title: "Dialysate Temp", value: "10.2", units: "°C" }, + { title: "Treatment Type", value: "39", units: "" }, + { title: "Vitals Interval", value: "230", units: "V" } + ], + + ] + RxManagerList{ + anchors.top : _rxHeader.bottom + model: _dummy + } +// Item{ +// id: _listViewitem +// anchors { +// left : parent.left +// right : parent.right +// top : _rxHeader.bottom +// } +// height: parent.height - (Variables.mainMenuHeight + Variables.alarmDialogHeaderHeight) +//// color: "green" +// ListView{ +// anchors.fill: _listViewitem +// clip: true +// spacing: Variables.defaultMargin +// id: _listView +// model: _dummy +// delegate: _rxProfile +// } +// } + +// Component { +// id: _rxProfile +// Rectangle { +// id: rxItem +// anchors { +// left : parent.left +// right : parent.right +// } +// height: 370 +// color: Colors.mainTreatmentLighterBlue +// radius: 5 +// required property string name +// required property string number +// required property int index +// required property string param1 +// required property string value1 +// required property string unit1 +// Column { +// id: _componentColumn + +// anchors { +// left : parent.left +// right : parent.right +// leftMargin: Variables.defaultMargin * 2 +// rightMargin: Variables.defaultMargin * 2 +// } +// Text { +// text: rxItem.name +// font.pointSize : Fonts.fontPixelButton * 1.4 +// width: parent.width +// horizontalAlignment: Text.AlignLeft +// color : Colors.pressuresText +// } +// Row { +// spacing: 5 +// width: parent.width +// anchors { +// left : _componentColumn.left +// } +// property int componentWidth: parent.width / 10 - 5 +// Repeater{ +// model: _managerHome.treatmentFields[rxItem.index] +// delegate: RxProfileComponent{ +//// id: _comp1 +// title : qsTr(modelData.title)//qsTr(rxItem.param1) +// height : 370 - (100 + Variables.defaultMargin * 2) +// width : parent.width / 10 - 5 +// value : modelData.value//rxItem.value1 +// unitText : modelData.units//rxItem.unit1 +// } +// } + +// Repeater { +// model: _managerHome.treatmentFields[rxItem.index] //10 +// delegate: +// Rectangle{ +// width: parent.width / 10 - 5 +// height: 370 - (100 + Variables.defaultMargin * 2) +// color: "green" +// } +// Column { +// anchors.centerIn: parent +// spacing: 2 + +// Text { +// text: modelData.title +// font.bold: true +// visible: modelData.title !== "" +// } + +// Text { +// text: modelData.value +// font.pixelSize: 14 +// color: "white" +// visible: modelData.value !== "" +// } + +// Text { +// text: modelData.units +// font.pixelSize: 12 +// color: "lightgray" +// visible: modelData.units !== "" +// } +// } +// } +// } +// Text { +// text: 'Last Modified: ' + rxItem.number +// width: parent.width // Makes it stretch +// horizontalAlignment: Text.AlignRight +// font.pointSize : Fonts.fontPixelButton +// color : Colors.pressuresText +// } +// } +// } +// } + +// PlaceHolderText {screenName: qsTr("Rx Profiles")} +// } } onVisibleChanged: {