Warning, /utilities/skanpage/src/qml/InProgressPage.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 * SPDX-FileCopyrightText: 2015 by Kåre Särs <kare.sars@iki .fi> 0003 * SPDX-FileCopyrightText: 2021 by Alexander Stippich <a.stippich@gmx.net> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 import QtQuick 2.7 0009 import QtQuick.Controls 2.14 0010 import QtQuick.Layouts 1.1 0011 0012 import org.kde.kirigami 2.12 as Kirigami 0013 import org.kde.skanpage 1.0 0014 0015 Item { 0016 id: inProgressPage 0017 0018 Kirigami.PlaceholderMessage { 0019 id: countDownTimerMessage 0020 0021 anchors.centerIn: parent 0022 visible: skanpage.countDown > 0 0023 0024 icon.name: "clock" 0025 0026 text: xi18nc("Countdown string with time given in seconds", "Next scan starts in<nl/>%1 s", skanpage.countDown) 0027 } 0028 0029 ColumnLayout { 0030 anchors.centerIn: parent 0031 0032 visible: skanpage.progress < 0 0033 0034 BusyIndicator { 0035 running: parent.visible 0036 0037 Layout.preferredWidth: Kirigami.Units.iconSizes.huge 0038 Layout.preferredHeight: Kirigami.Units.iconSizes.huge 0039 Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter 0040 } 0041 0042 Kirigami.PlaceholderMessage { 0043 Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter 0044 text: i18nc("@info", "Scan in progress.") 0045 } 0046 } 0047 0048 ColumnLayout { 0049 id: documentLayout 0050 visible: skanpage.countDown <= 0 && skanpage.progress >= 0 0051 anchors.fill: parent 0052 0053 Item { 0054 Layout.fillWidth: true 0055 Layout.fillHeight: true 0056 0057 InProgressPainter { 0058 id: inProgressImage 0059 anchors.fill: parent 0060 Component.onCompleted: inProgressImage.initialize(skanpage) 0061 } 0062 } 0063 0064 ProgressBar { 0065 Layout.fillWidth: true 0066 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 0067 value: skanpage.progress / 100 0068 } 0069 } 0070 } 0071 0072