Index: sources/gui/qml/pages/MainHome.qml =================================================================== diff -u -r45ce5cd058a8d0239d486e0ab4b057731f7dba76 -r1132f049e169cc87a059261f72fca0ceb7d739f1 --- sources/gui/qml/pages/MainHome.qml (.../MainHome.qml) (revision 45ce5cd058a8d0239d486e0ab4b057731f7dba76) +++ sources/gui/qml/pages/MainHome.qml (.../MainHome.qml) (revision 1132f049e169cc87a059261f72fca0ceb7d739f1) @@ -31,7 +31,7 @@ property alias reasonText : _notification.text - signal createTreatment() + signal createTreatment(int modality) Image { anchors.fill: backgroundRect @@ -48,18 +48,37 @@ 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 * -1 + } + text.text : qsTr("HD") + 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 } - TouchRect { id : _createTreatmentRect - anchors.centerIn: parent - text.text : qsTr("Create Treatment") - onClicked : createTreatment() + + TouchRect { id : _createHDFTreatment + anchors { + top : _createHDTreatment.bottom + topMargin : Variables.defaultMargin + horizontalCenter: _createHDTreatment.horizontalCenter + } + text.text : qsTr("HDF") + 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 } + NotificationBarSmall { id: _notification anchors.bottomMargin: Variables.mainMenuHeight }