Index: sources/gui/qml/pages/MainHome.qml =================================================================== diff -u -r45ce5cd058a8d0239d486e0ab4b057731f7dba76 -r52d17dab2211c2e4d9160c55c316ad7a40ce4d6c --- sources/gui/qml/pages/MainHome.qml (.../MainHome.qml) (revision 45ce5cd058a8d0239d486e0ab4b057731f7dba76) +++ sources/gui/qml/pages/MainHome.qml (.../MainHome.qml) (revision 52d17dab2211c2e4d9160c55c316ad7a40ce4d6c) @@ -31,7 +31,7 @@ property alias reasonText : _notification.text - signal createTreatment() + signal createTreatment(int modality) Image { anchors.fill: backgroundRect @@ -48,16 +48,38 @@ width: parent.width text : vDateTime.greeting font.pixelSize: 40 //// ----- @LEAHIZED: Move to Variables.qml + } + TouchRect { id : _createHDTreatment + anchors { + horizontalCenter : parent.horizontalCenter + verticalCenter : parent.verticalCenter + verticalCenterOffset: Variables.defaultMargin * -3 + } + text.text : qsTr("Hemodialysis") + onClicked : createTreatment(HeaderBar.Mode_HD) + isDefault : true + width : 435 //// ----- @LEAHIZED: Move to Variables.qml + height : 92 //// ----- @LEAHIZED: Move to Variables.qml + pixelSize : 30 //// ----- @LEAHIZED: Move to Variables.qml + backgroundColor : Colors.panelBackgroundColor + borderColor : Colors.panelBorderColor } - TouchRect { id : _createTreatmentRect - anchors.centerIn: parent - text.text : qsTr("Create Treatment") - onClicked : createTreatment() - isDefault : true - width : 435 //// ----- @LEAHIZED: Move to Variables.qml - height : 92 //// ----- @LEAHIZED: Move to Variables.qml - pixelSize : 30 //// ----- @LEAHIZED: Move to Variables.qml + + TouchRect { id : _createHDFTreatment + anchors { + top : _createHDTreatment.bottom + topMargin : Variables.defaultMargin * 2 + horizontalCenter: _createHDTreatment.horizontalCenter + } + text.text : qsTr("Hemodiafiltration") + onClicked : createTreatment(HeaderBar.Mode_HDF) + isDefault : true + width : 435 //// ----- @LEAHIZED: Move to Variables.qml + height : 92 //// ----- @LEAHIZED: Move to Variables.qml + pixelSize : 30 //// ----- @LEAHIZED: Move to Variables.qml + backgroundColor : Colors.panelBackgroundColor + borderColor : Colors.panelBorderColor } NotificationBarSmall { id: _notification