/*!
 *
 * Copyright (c) 2025 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    SettingsFeatureConfigurations.qml
 * \author  (last)      Nico Ramirez
 * \date    (last)      10-Nov-2025
 * \author  (original)  Nico Ramirez
 * \date    (original)  10-Nov-2025
 *
 */

// Qt
import QtQuick                  2.12


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

/*!
 * \brief   SettingsFeatureConfigurations is the screen
 *          which enables the Ro Water Input
 */
SettingsBase    { id: _root
    itemIndex       : SettingsStack.FeatureConfigurations

    readonly property int diameter          : 85

    confirmVisible  : false

    contentItem: Column {
        spacing : 25

        LabelUnitContainer { id: _integratedBPCuff
            anchors.horizontalCenter        : parent.horizontalCenter
            width                           : Variables.adjustmentLabelUnitContainerWidth
            height                          : Variables.adjustmentLabelUnitContainerHeight
            text                            : qsTr("Integrated BP Cuff")
            contentArea.anchors.leftMargin  : width * 0.75

            contentItem:  BaseSwitch { id: _integratedBPCuffSwitch
                checked             : vSettings.integratedBPCuff

                onClicked: {
                    vSettings.integratedBPCuff = _integratedBPCuffSwitch.checked
                }
            }
        }

        LabelUnitContainer { id: _heparinSyringePump
            anchors.horizontalCenter        : parent.horizontalCenter
            width                           : Variables.adjustmentLabelUnitContainerWidth
            height                          : Variables.adjustmentLabelUnitContainerHeight
            text                            : qsTr("Heparin Syringe Pump")
            contentArea.anchors.leftMargin  : width * 0.75

            contentItem:  BaseSwitch { id: _heparinSyringePumpSwitch
                checked             : vSettings.heparinSyringePump

                onClicked: {
                    vSettings.heparinSyringePump = _heparinSyringePumpSwitch.checked
                }
            }
        }

        LabelUnitContainer { id: _chemicalDisinfection
            anchors.horizontalCenter        : parent.horizontalCenter
            width                           : Variables.adjustmentLabelUnitContainerWidth
            height                          : Variables.adjustmentLabelUnitContainerHeight
            text                            : qsTr("Chemical Disinfection")
            contentArea.anchors.leftMargin  : width * 0.75

            contentItem:  BaseSwitch { id: _chemicalDisinfectionSwitch
                checked             : vSettings.chemicalDisinfection

                onClicked: {
                    vSettings.chemicalDisinfection = _chemicalDisinfectionSwitch.checked
                }
            }
        }
    }
}

