171 lines
7.6 KiB
XML
171 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="LpPrint" parent="AdwWindow">
|
|
<property name="default-width">900</property>
|
|
<property name="default-height">650</property>
|
|
<signal name="notify::orientation" handler="orientation_changed" swapped="yes" />
|
|
<child>
|
|
<object class="GtkShortcutController">
|
|
<property name="scope">managed</property>
|
|
<child>
|
|
<object class="GtkShortcut">
|
|
<property name="trigger">Escape|<Ctrl>w</property>
|
|
<property name="action">action(window.close)</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwToolbarView">
|
|
<property name="top-bar-style">raised</property>
|
|
<child type="top">
|
|
<object class="AdwHeaderBar">
|
|
<property name="show-start-title-buttons">false</property>
|
|
<property name="show-end-title-buttons">false</property>
|
|
<property name="title-widget">
|
|
<object class="AdwWindowTitle" id="title" />
|
|
</property>
|
|
<child type="start">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">Back</property>
|
|
<property name="action-name">print.back</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">Print</property>
|
|
<property name="action-name">print.print</property>
|
|
<style>
|
|
<class name="suggested-action" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwOverlaySplitView">
|
|
<property name="sidebar">
|
|
<object class="AdwPreferencesPage">
|
|
<property name="halign">start</property>
|
|
<property name="width-request">300</property>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Layout</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Orientation</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="valign">center</property>
|
|
<style>
|
|
<class name="linked" />
|
|
</style>
|
|
<child>
|
|
<object class="GtkToggleButton">
|
|
<property name="icon-name">page-orientation-portrait-symbolic</property>
|
|
<property name="action-name">print.orientation</property>
|
|
<property name="action-target">"portrait"</property>
|
|
<property name="tooltip-text" translatable="yes">Portrait page orientation</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleButton">
|
|
<property name="icon-name">page-orientation-landscape-symbolic</property>
|
|
<property name="action-name">print.orientation</property>
|
|
<property name="action-target">"landscape"</property>
|
|
<property name="tooltip-text" translatable="yes">Landscape page orientation</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwComboRow" id="alignment">
|
|
<property name="title" translatable="yes">Alignment</property>
|
|
<property name="model">
|
|
<object class="GtkStringList">
|
|
<items>
|
|
<item>center</item>
|
|
<item>top</item>
|
|
<item>bottom</item>
|
|
<item>left</item>
|
|
<item>right</item>
|
|
</items>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Margins</property>
|
|
<child>
|
|
<object class="AdwSpinRow" id="margin_horizontal">
|
|
<property name="title" translatable="yes">Horizontal</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwSpinRow" id="margin_vertical">
|
|
<property name="title" translatable="yes">Vertical</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Image Size</property>
|
|
<child>
|
|
<object class="AdwSpinRow" id="width">
|
|
<property name="title" translatable="yes">Width</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Scale</property>
|
|
<child>
|
|
<object class="GtkLabel" id="scale">
|
|
<style>
|
|
<class name="dim-label" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwComboRow" id="unit">
|
|
<property name="title" translatable="yes">Length Unit</property>
|
|
<signal name="notify::selected-item" handler="unit_selected" swapped="yes" />
|
|
<property name="model">
|
|
<object class="GtkStringList">
|
|
<items>
|
|
<item>cm</item>
|
|
<item>in</item>
|
|
<item>px</item>
|
|
</items>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="content">
|
|
<object class="LpPrintPreview" id="preview">
|
|
<property name="vexpand">true</property>
|
|
<property name="hexpand">true</property>
|
|
<property name="width-request">260</property>
|
|
<property name="height-request">260</property>
|
|
<binding name="print">
|
|
<constant>LpPrint</constant>
|
|
</binding>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|