start of adding requirements to welcomeq
just QML, no real connections yet hardcoded to not visible not clear if requirementsModel is available to welcomeq
This commit is contained in:
parent
401a34fcbd
commit
1ece171597
67
src/modules/welcomeq/Recommended.qml
Normal file
67
src/modules/welcomeq/Recommended.qml
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import io.calamares.ui 1.0
|
||||||
|
|
||||||
|
import QtQuick 2.7
|
||||||
|
import QtQuick.Controls 2.2
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
import org.kde.kirigami 2.7 as Kirigami
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
focus: true
|
||||||
|
Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.topMargin: 70
|
||||||
|
|
||||||
|
TextArea {
|
||||||
|
id: recommended
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 20
|
||||||
|
width: 640
|
||||||
|
font.pointSize: 12
|
||||||
|
textFormat: Text.RichText
|
||||||
|
antialiasing: true
|
||||||
|
activeFocusOnPress: false
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
text: qsTr("<p>This computer does not satisfy some of the recommended requirements for setting up %1.</p>
|
||||||
|
<p>Setup can continue, but some features might be disabled.</p>").arg(Branding.string(Branding.VersionedName))
|
||||||
|
}
|
||||||
|
|
||||||
|
TextArea {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: recommended.bottom
|
||||||
|
anchors.topMargin: 20
|
||||||
|
width: 640
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 640
|
||||||
|
implicitHeight: 50
|
||||||
|
border.color: "#ff0000"
|
||||||
|
color: "#b0e0e6"
|
||||||
|
}
|
||||||
|
font.pointSize: 12
|
||||||
|
textFormat: Text.RichText
|
||||||
|
antialiasing: true
|
||||||
|
activeFocusOnPress: false
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
text: qsTr("<p>The system is not connected to the internet.</p>")//.arg(requirementsModel)
|
||||||
|
}
|
||||||
|
}
|
67
src/modules/welcomeq/Requirements.qml
Normal file
67
src/modules/welcomeq/Requirements.qml
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import io.calamares.ui 1.0
|
||||||
|
|
||||||
|
import QtQuick 2.7
|
||||||
|
import QtQuick.Controls 2.2
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
import org.kde.kirigami 2.7 as Kirigami
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
focus: true
|
||||||
|
Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.topMargin: 70
|
||||||
|
|
||||||
|
TextArea {
|
||||||
|
id: required
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 20
|
||||||
|
width: 640
|
||||||
|
font.pointSize: 12
|
||||||
|
textFormat: Text.RichText
|
||||||
|
antialiasing: true
|
||||||
|
activeFocusOnPress: false
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
text: qsTr("<p>This computer does not satisfy the minimum requirements for setting up %1.</p>
|
||||||
|
<p>Setup cannot continue.</p>").arg(Branding.string(Branding.VersionedName))
|
||||||
|
}
|
||||||
|
|
||||||
|
TextArea {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: required.bottom
|
||||||
|
anchors.topMargin: 20
|
||||||
|
width: 640
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 640
|
||||||
|
implicitHeight: 50
|
||||||
|
border.color: "#ff0000"
|
||||||
|
color: "#ffc0cb"
|
||||||
|
}
|
||||||
|
font.pointSize: 12
|
||||||
|
textFormat: Text.RichText
|
||||||
|
antialiasing: true
|
||||||
|
activeFocusOnPress: false
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
text: qsTr("<p>The installer is not running with administrator rights.</p>")//.arg(requirementsModel)
|
||||||
|
}
|
||||||
|
}
|
@ -28,7 +28,7 @@ Item {
|
|||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
property var appName: "Calamares"
|
property var appName: "Calamares"
|
||||||
property var appVersion: "3.2.22"
|
property var appVersion: "3.2.24"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: textArea
|
id: textArea
|
||||||
|
@ -56,6 +56,20 @@ Page
|
|||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Recommended {
|
||||||
|
property var required: "yes" //requirementsModel
|
||||||
|
property var satisfied: "yes" //satisfiedRequirements
|
||||||
|
property var requiredMet: (required != satisfied) ? true : false
|
||||||
|
visible: requiredMet
|
||||||
|
}
|
||||||
|
|
||||||
|
Requirements {
|
||||||
|
property var required: "yes" //requirementsModel
|
||||||
|
property var mandatory: "yes" //satisfiedMandatory
|
||||||
|
property var mandatoryMet: (required != mandatory) ? true : false
|
||||||
|
visible: mandatoryMet
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: buttonBar
|
id: buttonBar
|
||||||
width: parent.width / 1.5
|
width: parent.width / 1.5
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
<file alias="welcomeq.qml">welcomeq.qml</file>
|
<file alias="welcomeq.qml">welcomeq.qml</file>
|
||||||
<file alias="about.qml">about.qml</file>
|
<file alias="about.qml">about.qml</file>
|
||||||
<file alias="release_notes.qml">release_notes.qml</file>
|
<file alias="release_notes.qml">release_notes.qml</file>
|
||||||
|
<file alias="Recommended.qml">Recommended.qml</file>
|
||||||
|
<file alias="Requirements.qml">Requirements.qml</file>
|
||||||
<file>img/squid.png</file>
|
<file>img/squid.png</file>
|
||||||
<file>img/chevron-left-solid.svg</file>
|
<file>img/chevron-left-solid.svg</file>
|
||||||
<file>img/language-icon-48px.png</file>
|
<file>img/language-icon-48px.png</file>
|
||||||
|
Loading…
Reference in New Issue
Block a user