2
* Copyright 2017 Canonical Ltd.
4
* This file is part of ubuntu-printing-app.
6
* ubuntu-printing-app is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* ubuntu-printing-app is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
* Authored-by: Andrew Hayzen <andrew.hayzen@canonical.com>
22
import Ubuntu.Components 1.3
24
import Ubuntu.Components.Extras.Printers 0.1
25
import "../components"
30
subtitle: i18n.tr("%1 job", "%1 jobs", queueHelper.count).arg(queueHelper.count)
31
title: i18n.tr("Printing")
36
objectName: "headerSettings"
38
onTriggered: page.settings()
43
objectName: "queuePage"
45
property QtObject queueHelper: null
55
top: page.header.bottom
62
filtersModel: ListModel {
64
objectName: "filtersModel"
66
objectName: "queueView"
67
queueHelper: page.queueHelper
75
objectName: "emptyLabel"
76
text: i18n.tr("No printer jobs")
77
visible: queueHelper.count === 0
80
Component.onCompleted: {
83
filter: queueHelper.createActiveFilter(),
84
name: i18n.tr("Active"),
91
filter: queueHelper.createQueuedFilter(),
92
name: i18n.tr("Queued"),
99
filter: queueHelper.createPausedFilter(),
100
name: i18n.tr("Paused"),