slint/examples/printerdemo_old/ui/print_page.60
2021-08-17 22:38:16 +02:00

64 lines
1.8 KiB
Text

/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2021 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2021 Simon Hausmann <simon.hausmann@sixtyfps.io>
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 { SpinBox, Button, CheckBox, Slider, GroupBox, StandardListView, GridBox } from "sixtyfps_widgets.60";
import { Label, Page, Preview } from "common.60";
PrintPage := Page {
layout := GridLayout {
padding-left: 40px;
padding-right: 40px;
spacing: 20px;
padding-top: 20px;
padding-bottom: 20px;
Row {
preview := Preview { }
GridBox {
Row {
Label {
text: "Select File:";
}
}
Row {
StandardListView {
model: [
{ text: ".." },
{ text: "cat.png" },
{ text: "dog.png" },
{ text: "elephant.png" },
{ text: "snake.png" },
];
}
}
Row {
Label {
text: "Copies:";
}
}
Row {
SpinBox {
horizontal-stretch: 1;
}
}
Row {
Button {
text: "Print Page";
horizontal-stretch: 1;
}
}
}
}
}
}