print: Rearrange UI elements
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/240>
This commit is contained in:
parent
3b363041b6
commit
8dcf208d70
1 changed files with 170 additions and 163 deletions
|
|
@ -1,13 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<interface>
|
<interface>
|
||||||
<template class="LpPrint" parent="AdwWindow">
|
<template class="LpPrint" parent="AdwWindow">
|
||||||
<property name="title" translatable="yes">Image Layout</property>
|
<property name="default-width">600</property>
|
||||||
<property name="default-width">350</property>
|
|
||||||
<signal name="notify::orientation" handler="orientation_changed" swapped="yes" />
|
<signal name="notify::orientation" handler="orientation_changed" swapped="yes" />
|
||||||
<property name="content">
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="orientation">vertical</property>
|
|
||||||
<property name="spacing">12</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkShortcutController">
|
<object class="GtkShortcutController">
|
||||||
<property name="scope">managed</property>
|
<property name="scope">managed</property>
|
||||||
|
|
@ -19,42 +14,46 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<property name="content">
|
||||||
|
<object class="AdwToolbarView">
|
||||||
|
<property name="top-bar-style">raised</property>
|
||||||
|
<child type="top">
|
||||||
<object class="AdwHeaderBar">
|
<object class="AdwHeaderBar">
|
||||||
|
<property name="show-start-title-buttons">false</property>
|
||||||
|
<property name="show-end-title-buttons">false</property>
|
||||||
<child type="start">
|
<child type="start">
|
||||||
<object class="GtkButton">
|
<object class="GtkButton">
|
||||||
<property name="icon-name">go-previous-symbolic</property>
|
<property name="label" translatable="yes">Back</property>
|
||||||
<property name="action-name">print.back</property>
|
<property name="action-name">print.back</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child type="end">
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="label" translatable="yes">Print</property>
|
||||||
|
<property name="action-name">print.print</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="flat" />
|
<class name="suggested-action" />
|
||||||
</style>
|
</style>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="orientation">vertical</property>
|
|
||||||
<property name="vexpand">true</property>
|
|
||||||
<property name="spacing">24</property>
|
|
||||||
<property name="margin-top">18</property>
|
|
||||||
<property name="margin-end">18</property>
|
|
||||||
<property name="margin-bottom">18</property>
|
|
||||||
<property name="margin-start">18</property>
|
|
||||||
<child>
|
|
||||||
<object class="LpPrintPreview" id="preview">
|
|
||||||
<property name="css-name">lpprintpreview</property>
|
|
||||||
<binding name="print">
|
|
||||||
<constant>LpPrint</constant>
|
|
||||||
</binding>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<property name="content">
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<child>
|
||||||
|
<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>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="halign">center</property>
|
<property name="valign">center</property>
|
||||||
<property name="spacing">36</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<style>
|
<style>
|
||||||
<class name="linked" />
|
<class name="linked" />
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -76,8 +75,14 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="AdwActionRow">
|
||||||
|
<property name="title" translatable="yes">Alignment</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
|
<property name="valign">center</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="linked" />
|
<class name="linked" />
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -99,36 +104,14 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkListBox">
|
<object class="AdwPreferencesGroup">
|
||||||
<property name="selection-mode">none</property>
|
<property name="title" translatable="yes">Margins</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwActionRow">
|
<object class="AdwActionRow">
|
||||||
<property name="title" translatable="yes">Image Width</property>
|
<property name="title" translatable="yes">Horizontal</property>
|
||||||
<child>
|
|
||||||
<object class="GtkSpinButton" id="width">
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<property name="max-width-chars">5</property>
|
|
||||||
<signal name="value-changed" handler="width_changed" swapped="yes" />
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="AdwActionRow">
|
|
||||||
<property name="title" translatable="yes">Image Scale</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="scale">
|
|
||||||
<style>
|
|
||||||
<class name="dim-label" />
|
|
||||||
</style>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="AdwActionRow">
|
|
||||||
<property name="title" translatable="yes">Left Margin</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSpinButton" id="margin_left">
|
<object class="GtkSpinButton" id="margin_left">
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
|
|
@ -140,7 +123,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwActionRow">
|
<object class="AdwActionRow">
|
||||||
<property name="title" translatable="yes">Top Margin</property>
|
<property name="title" translatable="yes">Vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSpinButton" id="margin_top">
|
<object class="GtkSpinButton" id="margin_top">
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
|
|
@ -150,6 +133,35 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesGroup">
|
||||||
|
<property name="title" translatable="yes">Image Size</property>
|
||||||
|
<child>
|
||||||
|
<object class="AdwActionRow">
|
||||||
|
<property name="title" translatable="yes">Width</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="width">
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="max-width-chars">5</property>
|
||||||
|
<signal name="value-changed" handler="width_changed" swapped="yes" />
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</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>
|
<child>
|
||||||
<object class="AdwComboRow" id="unit">
|
<object class="AdwComboRow" id="unit">
|
||||||
<property name="title" translatable="yes">Length Unit</property>
|
<property name="title" translatable="yes">Length Unit</property>
|
||||||
|
|
@ -165,28 +177,23 @@
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<style>
|
</object>
|
||||||
<class name="boxed-list" />
|
</child>
|
||||||
</style>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="LpPrintPreview" id="preview">
|
||||||
<property name="label" translatable="yes">Print</property>
|
<property name="valign">center</property>
|
||||||
<property name="action-name">print.print</property>
|
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="valign">end</property>
|
<property name="css-name">lpprintpreview</property>
|
||||||
<property name="vexpand">true</property>
|
<binding name="print">
|
||||||
<property name="width-request">160</property>
|
<constant>LpPrint</constant>
|
||||||
<style>
|
</binding>
|
||||||
<class name="suggested-action" />
|
|
||||||
<class name="pill" />
|
|
||||||
</style>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
</template>
|
</template>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue