2020-05-09 14:01:21 +02:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
* Copyright 2020, Adriaan de Groot <groot@kde.org>
|
|
|
|
* Copyright 2020, Anke Boersma <demm@kaosx.us>
|
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-04-03 13:43:48 +02:00
|
|
|
import io.calamares.core 1.0
|
2020-03-24 15:47:53 +01:00
|
|
|
import io.calamares.ui 1.0
|
|
|
|
|
|
|
|
import QtQuick 2.10
|
|
|
|
import QtQuick.Controls 2.10
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import org.kde.kirigami 2.7 as Kirigami
|
2020-05-09 14:01:21 +02:00
|
|
|
|
|
|
|
Page {
|
|
|
|
width: 800
|
|
|
|
height: 550
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id: image
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
width: parent.width
|
|
|
|
height: parent.height / 1.28
|
2020-07-23 23:26:15 +02:00
|
|
|
// Network is in io.calamares.core
|
|
|
|
source: Network.hasInternet ? "Map.qml" : "Offline.qml"
|
2020-04-03 13:43:48 +02:00
|
|
|
}
|
2020-05-09 14:01:21 +02:00
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin : 20
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
Kirigami.FormLayout {
|
|
|
|
id: lang
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
anchors {
|
|
|
|
left: parent.left
|
|
|
|
top: parent.top
|
|
|
|
right: parent.right
|
|
|
|
}
|
|
|
|
rowSpacing: Kirigami.Units.largeSpacing
|
|
|
|
columnSpacing: Kirigami.Units.largeSpacing
|
|
|
|
|
|
|
|
Kirigami.Icon {
|
|
|
|
source: "application-x-gettext-translation"
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.maximumHeight: Kirigami.Units.iconSizes.medium
|
|
|
|
Layout.preferredWidth: height
|
|
|
|
}
|
|
|
|
ColumnLayout {
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.WordWrap
|
2020-07-23 23:26:15 +02:00
|
|
|
text: config.currentLanguageStatus
|
2020-05-09 14:01:21 +02:00
|
|
|
}
|
|
|
|
Kirigami.Separator {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.WordWrap
|
2020-07-23 23:26:15 +02:00
|
|
|
text: config.currentLCStatus
|
2020-05-09 14:01:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
Layout.alignment: Qt.AlignRight|Qt.AlignVCenter
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
text: qsTr("Change")
|
|
|
|
//onClicked: console.log("Adjust Language clicked");
|
|
|
|
onClicked: {
|
|
|
|
onClicked: load.source = "i18n.qml"
|
|
|
|
}
|
2020-04-03 13:43:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 14:01:21 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
Loader {
|
|
|
|
id:load
|
|
|
|
anchors.fill: parent
|
2020-04-03 13:43:48 +02:00
|
|
|
}
|
2020-03-24 15:47:53 +01:00
|
|
|
}
|