/*!
 *
 * 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
 *
 * \file    TreatmentVitals.qml
 * \date    2020/01/27
 * \author  Behrouz NematiPour
 *
 */

// Qt
import QtQuick 2.12

// Project

//  Qml imports
import "qrc:/globals"
import "qrc:/components"

/*!
 * \brief   Treatment Screen Vitals section
 */
TouchArea { id: _root
    property alias textRectBloodPressure : _bloodPressure
    property alias textRectHeartBeat     : _heartBeat

    x: 0
    y: 0
    isTouchable: false
    title: qsTr("VITALS")

    Column {
        anchors.top: _root.top
        anchors.topMargin: 60
        TextRect { id: _bloodPressure
            labelHeight: 60
            labelFont.pixelSize: Fonts.fontPixelVitals
            labelFont.weight: Font.ExtraLight
            labelAutoSize: true
            label: "120/80"         // value
            extra: qsTr("mmHg")     // unit
        }
        TextRect { id: _heartBeat
            labelHeight: 40
            labelFont.pixelSize: Fonts.fontPixelVitals
            labelFont.weight: Font.ExtraLight
            labelAutoSize: true
            label: "130"        // value
            extra: qsTr("BPM")  // unit
        }
    }
}
