/*!
 *
 * Copyright (c) 2020-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    NotificationDialog.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      17-Apr-2023
 * \author  (original)  Peter Lucia
 * \date    (original)  02-Jun-2020
 *
 */

// Qt
import QtQuick 2.12
import QtGraphicalEffects 1.12

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

/*!
 * \brief   Contains the Rx Dialog Implementation
 */
ModalDialog { id : _root
    contentItem.objectName: "_RxManagerDialog" // SquishQt
    onVisibleChanged: {
        if (visible) {
            vRxProfiles.doInitRxProfilesList()
        }
    }

    Rectangle {id: _rect
        color: "red"
        anchors {
            fill: parent
        }
        RxManager  {    id:       _managerDialog
                        anchors {
                            fill: parent
                        }
                        height  : parent.height
                        width   : parent.width
                    }
    }


    CloseButton { id : _closeButton
            anchors {
                right   : parent.right
                left    : undefined
                margins : 0
            }

            onClicked : _root.close()
    }

}
