/*!
 *
 * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved.
 * \copyright                                                       \n
 *          THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM,  \n
 *          IN PART OR IN WHOLE,                                    \n
 *          WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n
 *
 * \file    PowerOff.qml
 * \date    2019/10/18
 * \author  Behrouz NematiPour
 *
 */

// Qt
import QtQuick 2.12
import QtQuick.Controls 2.12

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

/*!
 * \brief   Contains the PowerOff Dialog Implementation
 */
ModalDialog { id : _root
    Column {
        spacing: Variables.columnSpacing
        anchors.centerIn: parent
        TitleText { id: _titleText
            width: parent.width
            text: qsTr("Are you sure you want to Shutdown?")
        }
        TouchRect { id : _shutdownRect
            text.text: qsTr("SHUTDOWN")
            button.onPressed: {
                accepted()
                close()
            }
        }
        TouchRect { id : _cancelTouch
            text.text: qsTr("CANCEL")
            button.onPressed: {
                rejected()
                close()
            }
        }
    }
}
