/* LICENSE BEGIN This file is part of the SixtyFPS Project -- https://sixtyfps.io Copyright (c) 2020 Olivier Goffart Copyright (c) 2020 Simon Hausmann SPDX-License-Identifier: GPL-3.0-only This file is also available under commercial licensing terms. Please contact info@sixtyfps.io for more information. LICENSE END */ import { DemoPalette, Page, SpinBox, Label, PushButton, PrinterQueueItem } from "./common.60"; import { WidePrinterQueueList } from "./printer_queue.60"; export PrintPage := Page { has_back_button: true; header: "Print"; callback cancel_job(int); callback pause_job(int); property <[PrinterQueueItem]> printer_queue <=> queue.printer_queue; GridLayout { padding-top: 46px /* header line height in design */ + /* extra top-padding in design */ 27px; spacing: 24px; Row { Text { text: "Printing-Queue"; color: DemoPalette.secondary_foreground_color; font-size: DemoPalette.base_font_size * 1.125; font-weight: 800; } } Row { queue := WidePrinterQueueList { cancel_job(id) => { root.cancel_job(id); } pause_job(id) => { root.pause_job(id); } viewport_width: width; } } } }