2023-04-02 01:39:23 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
|
|
|
|
<template class="LpPrint" parent="AdwWindow">
|
2023-06-26 15:35:16 +02:00
|
|
|
<property name="default-width">900</property>
|
|
|
|
|
<property name="default-height">650</property>
|
2023-06-21 16:33:22 +02:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkShortcutController">
|
|
|
|
|
<property name="scope">managed</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="GtkShortcut">
|
|
|
|
|
<property name="trigger">Escape|<Ctrl>w</property>
|
|
|
|
|
<property name="action">action(window.close)</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
2023-06-21 16:33:22 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<property name="content">
|
|
|
|
|
<object class="AdwToolbarView">
|
|
|
|
|
<property name="top-bar-style">raised</property>
|
|
|
|
|
<child type="top">
|
2023-04-02 01:39:23 +02:00
|
|
|
<object class="AdwHeaderBar">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="show-start-title-buttons">false</property>
|
|
|
|
|
<property name="show-end-title-buttons">false</property>
|
2023-06-21 17:36:56 +02:00
|
|
|
<property name="title-widget">
|
|
|
|
|
<object class="AdwWindowTitle" id="title" />
|
|
|
|
|
</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child type="start">
|
|
|
|
|
<object class="GtkButton">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="label" translatable="yes">Back</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<property name="action-name">print.back</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<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>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="content">
|
2023-06-26 15:35:16 +02:00
|
|
|
<object class="AdwOverlaySplitView">
|
|
|
|
|
<property name="sidebar">
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="AdwPreferencesPage">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="width-request">300</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title" translatable="yes">Layout</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<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>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-06-21 17:36:56 +02:00
|
|
|
<object class="AdwComboRow" id="alignment">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="title" translatable="yes">Alignment</property>
|
2023-06-21 17:36:56 +02:00
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkStringList">
|
|
|
|
|
<items>
|
|
|
|
|
<item>center</item>
|
|
|
|
|
<item>top</item>
|
|
|
|
|
<item>bottom</item>
|
|
|
|
|
<item>left</item>
|
|
|
|
|
<item>right</item>
|
|
|
|
|
</items>
|
2023-06-21 16:33:22 +02:00
|
|
|
</object>
|
2023-06-21 17:36:56 +02:00
|
|
|
</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title" translatable="yes">Margins</property>
|
2023-06-26 20:13:26 +02:00
|
|
|
<property name="header-suffix">
|
|
|
|
|
<object class="GtkDropDown" id="margin_unit">
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Margin units</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat"/>
|
|
|
|
|
</style>
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkStringList">
|
|
|
|
|
<items>
|
|
|
|
|
<item>cm</item>
|
|
|
|
|
<item>in</item>
|
|
|
|
|
<item>px</item>
|
|
|
|
|
</items>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child>
|
2023-06-21 17:36:56 +02:00
|
|
|
<object class="AdwSpinRow" id="margin_horizontal">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="title" translatable="yes">Horizontal</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-06-21 17:36:56 +02:00
|
|
|
<object class="AdwSpinRow" id="margin_vertical">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="title" translatable="yes">Vertical</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title" translatable="yes">Image Size</property>
|
2023-06-26 20:13:26 +02:00
|
|
|
<property name="header-suffix">
|
|
|
|
|
<object class="GtkDropDown" id="size_unit">
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Image size units</property>"
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat"/>
|
|
|
|
|
</style>
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkStringList">
|
|
|
|
|
<items>
|
|
|
|
|
<item>cm</item>
|
|
|
|
|
<item>in</item>
|
|
|
|
|
<item>px</item>
|
|
|
|
|
<item>%</item>
|
|
|
|
|
</items>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
2023-07-02 14:25:07 +02:00
|
|
|
<child>
|
|
|
|
|
<object class="AdwSwitchRow" id="fill_space">
|
|
|
|
|
<property name="title" translatable="yes">Fill Space</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2023-04-02 01:39:23 +02:00
|
|
|
<child>
|
2023-06-21 16:55:43 +02:00
|
|
|
<object class="AdwSpinRow" id="width">
|
2023-06-21 16:33:22 +02:00
|
|
|
<property name="title" translatable="yes">Width</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-07-02 14:25:07 +02:00
|
|
|
<object class="AdwSpinRow" id="height">
|
|
|
|
|
<property name="title" translatable="yes">Height</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
2023-06-26 15:35:16 +02:00
|
|
|
</property>
|
|
|
|
|
<property name="content">
|
2023-06-21 16:33:22 +02:00
|
|
|
<object class="LpPrintPreview" id="preview">
|
2023-06-26 15:35:16 +02:00
|
|
|
<property name="vexpand">true</property>
|
|
|
|
|
<property name="hexpand">true</property>
|
|
|
|
|
<property name="width-request">260</property>
|
|
|
|
|
<property name="height-request">260</property>
|
2023-06-21 16:33:22 +02:00
|
|
|
<binding name="print">
|
|
|
|
|
<constant>LpPrint</constant>
|
|
|
|
|
</binding>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
2023-06-26 15:35:16 +02:00
|
|
|
</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
2023-06-21 16:33:22 +02:00
|
|
|
</property>
|
2023-04-02 01:39:23 +02:00
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
2023-04-23 22:39:25 +05:30
|
|
|
</interface>
|