import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Dialogs
import QtCore
import "../js/qmldict.js" as JsLib



GridLayout
{
    anchors.fill: parent
    anchors.topMargin: 150
    columns: 2
    Label
    {
        Layout.columnSpan: 2
        Layout.alignment: Qt.AlignHCenter
        text: qsTr("Sicherung")
        font.pixelSize: 35
    }

    Label
    {
        text: qsTr("Konfiguration")
        Layout.alignment: Qt.AlignRight

    }
    Button
    {
        id: saveConfig
        text: qsTr("Jetzt sichern!")
        onClicked: utilityDialogs.item.backup_config.open()
    }
    Label
    {
       text: qsTr("Verschlüsselung")
       Layout.alignment: Qt.AlignRight
    }
    Button
    {
        id: saveEncryption
        text: qsTr("Jetzt sichern!")
        onClicked: utilityDialogs.item.backup_encrypt_pw.open()
    }
    Item
    {
        id: spacer
        Layout.fillHeight: true
    }

    Loader
    {
        id: utilityDialogs
        source: "UtilityDialogs.qml"
    }
}
