/*!
 *
 * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    PostTreatmentBloodPrime.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      09-Feb-2021
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  29-Jan-2021
 *
 */

// Qt
import QtQuick 2.12

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

/*!
 * \brief   the post/pre treatment Blood Prime screen
 */
ScreenItem { id: _root
    objectName: "_PostTreatmentBloodPrime"

    Text { id: _title
        anchors {
            top: parent.top
            topMargin: 65
            horizontalCenter: parent.horizontalCenter
        }
        color: "white"
        text: qsTr("Blood Priming")
        font.pixelSize: Fonts.fontPixelTitle
    }

    ProgressCircle { id: _circle
        diameter: 335
        anchors.centerIn: parent
        minimum : 0
        maximum : vTreatmentBloodPrime.target
        value   : vTreatmentBloodPrime.current

        Text { id: _textVolume
            anchors.centerIn: parent
            color: "white"
            text: vTreatmentBloodPrime.current.toFixed(0) + " " + qsTr(Variables.unitTextFluid)
            font.pixelSize: 76
            font.weight: Font.ExtraLight

        }
    }

    onVisibleChanged: {
        if (visible) {
            _mainMenu     .hidden = true
            _treatmentMenu.hidden = true
        }
    }
}
