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

// Qt
import QtQuick 2.12

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

ModalDialog { id: _root
    width           : Variables.dialogWidth
    height          : Variables.dialogHeight
    clip            : true

    enum Page {
        WaterSample     ,
        Dialysate
    }

    WaterSamplePage             { id: _waterSample;         visible : _menu.index === WaterSampleDialog.WaterSample;    }
    WaterSampleDialysatePage    { id: _dialysateChecks;     visible : _menu.index === WaterSampleDialog.Dialysate;      }

    MainMenu { id: _menu
        anchors {
            top             : parent.top
            left            : parent.left
            leftMargin      : Variables.defaultMargin * 4
        }
        width               : _root.width / 2.5
        color               : Colors.transparent
        titlePixelSize      : 30
        model               : _model

        ListModel { id: _model
            ListElement {   text: qsTr("Water Sample")          ; visible: true   }
            ListElement {   text: qsTr("Dialysate Checks")      ; visible: true   }
        }
    }
    Line {
        anchors {
            bottom          : _menu.bottom
            left            : _menu.left
            right           : parent.right
            rightMargin     : Variables.defaultMargin * 4
        }

        color   : Colors.panelBorderColor
    }

    CloseButton { id : _closeButton
        onClicked : {
            _root.close()
        }
    }
}
