/*!
 *
 * Copyright (c) 2021-2024 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    EndTreatmentRinsebackInit.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      08-Feb-2024
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  11-Apr-2021
 *
 */

// Qt
import QtQuick 2.12

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

/*!
 * \brief   the end treatment rinseback setup screen
 */
EndTreatmentBase { id: _root
    objectName: "_EndTreatmentRinsebackInit"

    signal rinsebackClicked     ()

    headerTitle                 : qsTr("Blood Return Setup")
    descriptionText             : qsTr("Blood return will %1 be allowed in:").arg("<b>NOT</b>")
    instructionBased            : true

    hasTimeout                  : vTreatmentRinseback   .timeoutTotal
    timeoutValue                : vTreatmentRinseback   .timeoutCountDown * 60

    TouchRect { id : _beginRinsebackTouchRect
        anchors {
            bottom          : _root.bottom
            bottomMargin    : Variables.notificationHeight * 2
            horizontalCenter: _root.horizontalCenter
        }
        width           : Variables.defaultButtonWidth
        height          : Variables.defaultButtonHeight
        isDefault       : true
        textString      : qsTr("Start Blood Return")
        onClicked       : rinsebackClicked()
    }
}
