slint/examples/printerdemo_old/ui/copy_page.60
2021-08-10 22:21:01 +02:00

51 lines
1.4 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";
export CopyPage := Page {
layout := GridLayout {
padding-left: 40px;
padding-right: 40px;
spacing: 20px;
padding-top: 20px;
padding-bottom: 20px;
Row {
preview := Preview {
height: root.height - layout.padding-top - layout.padding-bottom;
}
GridBox {
Row {
Label {
text: "Copies:";
}
}
Row {
SpinBox {
horizontal-stretch: 1;
}
}
Row {
Button {
text: "Print Page";
horizontal-stretch: 1;
}
}
Row {
Rectangle {}
}
}
}
}
}