harbour-seaprint/qml/pages/NagScreen.qml

109 lines
2.6 KiB
QML
Raw Normal View History

2021-07-11 15:27:03 +03:00
import QtQuick 2.6
2020-06-07 15:28:54 +03:00
import Sailfish.Silica 1.0
2021-03-20 16:39:21 +03:00
import seaprint.convertchecker 1.0
2020-08-09 20:25:54 +03:00
import "../components"
2020-06-07 15:28:54 +03:00
Page {
2021-03-20 16:39:21 +03:00
allowedOrientations: Orientation.All
2020-06-07 15:28:54 +03:00
backNavigation: false
2021-03-20 16:39:21 +03:00
SilicaFlickable {
anchors.fill: parent
contentHeight: col.implicitHeight
2020-06-07 15:28:54 +03:00
Column {
2021-03-20 16:39:21 +03:00
id:col
2020-06-07 15:28:54 +03:00
y: Theme.paddingLarge
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width - 2*Theme.paddingLarge
spacing: Theme.paddingLarge
Label {
width: parent.width
wrapMode: Text.WordWrap
2021-03-20 16:39:21 +03:00
font.bold: true
2020-06-07 15:28:54 +03:00
text: qsTr("Optional dependencies are not installed!")
}
2021-03-20 16:39:21 +03:00
Label {
2021-03-21 18:38:04 +03:00
visible: appWin.expectCalligra
2021-03-20 16:39:21 +03:00
width: parent.width
wrapMode: Text.WordWrap
2021-11-20 19:31:03 +03:00
text: qsTr("In order to print \"office\" documents like odt and doc(x) you need "+
2021-09-27 22:44:36 +03:00
"\"calligraconverter\" from the \"calligra\" package (version 3.2.1+, Sailfish OS 4.2).")
2021-03-20 16:39:21 +03:00
}
2020-06-07 15:28:54 +03:00
Label {
width: parent.width
wrapMode: Text.WordWrap
2020-06-09 20:18:24 +03:00
text: qsTr("To install, enable developer mode, and open a terminal.")
2020-06-07 15:28:54 +03:00
}
Label {
width: parent.width
wrapMode: Text.WordWrap
text: qsTr("Become root:")
}
Label {
width: parent.width
wrapMode: Text.WordWrap
font.family: "monospace"
text: "devel-su"
2020-08-09 20:25:54 +03:00
Clipper {}
2020-06-07 15:28:54 +03:00
}
2021-03-20 16:39:21 +03:00
Label {
2021-03-21 18:38:04 +03:00
visible: appWin.expectCalligra
2021-03-20 16:39:21 +03:00
width: parent.width
wrapMode: Text.WordWrap
text: qsTr("Install calligra:") + " " + (ConvertChecker.calligra ? qsTr("(done)") : "")
}
Label {
2021-03-21 18:38:04 +03:00
visible: appWin.expectCalligra
2021-03-20 16:39:21 +03:00
width: parent.width
wrapMode: Text.WordWrap
font.family: "monospace"
text: "pkcon install calligra"
Clipper {}
}
2020-08-09 20:25:54 +03:00
Item{
width: parent.width
height: Theme.itemSizeMedium
}
2020-06-07 15:28:54 +03:00
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Dismiss")
onClicked: pageStack.pop()
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Don't show again")
onClicked: {
nagScreenSetting.value = nagScreenSetting.expectedValue
pageStack.pop()
}
}
2021-03-20 16:39:21 +03:00
Item{
width: parent.width
height: Theme.itemSizeMedium
}
}
2020-06-07 15:28:54 +03:00
}
}