/*!
 *
 * 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()
        }
    }
    RxManager  {    id:       _managerDialog
        onShow      :false
        anchors.fill: parent
        onLoadProfile: {
            _root.close()}
    }


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

        onClicked : _root.close()
    }

}
