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,191 +1,198 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="LpPrint" parent="AdwWindow">
|
||||
<property name="title" translatable="yes">Image Layout</property>
|
||||
<property name="default-width">350</property>
|
||||
<property name="default-width">600</property>
|
||||
<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>
|
||||
<object class="GtkShortcutController">
|
||||
<property name="scope">managed</property>
|
||||
<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 class="GtkShortcut">
|
||||
<property name="trigger">Escape|<Ctrl>w</property>
|
||||
<property name="action">action(window.close)</property>
|
||||
</object>
|
||||
</child>
|
||||
<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>
|
||||
<child type="start">
|
||||
<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>
|
||||
</object>
|
||||
</child>
|
||||
<style>
|
||||
<class name="flat" />
|
||||
</style>
|
||||
<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>
|
||||
<child>
|
||||
<property name="content">
|
||||
<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>
|
||||
<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>
|
||||
<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="AdwActionRow">
|
||||
<property name="title" translatable="yes">Alignment</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="valign">center</property>
|
||||
<style>
|
||||
<class name="linked" />
|
||||
</style>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="icon-name">center-on-page-horizontal-symbolic</property>
|
||||
<property name="action-name">print.center-horizontally</property>
|
||||
<property name="tooltip-text" translatable="yes">Center image horizontally</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="icon-name">center-on-page-vertical-symbolic</property>
|
||||
<property name="action-name">print.center-vertically</property>
|
||||
<property name="tooltip-text" translatable="yes">Center image vertically</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Margins</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Horizontal</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="margin_left">
|
||||
<property name="valign">center</property>
|
||||
<property name="max-width-chars">5</property>
|
||||
<signal name="value-changed" handler="margin_left_changed" swapped="yes" />
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Vertical</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="margin_top">
|
||||
<property name="valign">center</property>
|
||||
<property name="max-width-chars">5</property>
|
||||
<signal name="value-changed" handler="margin_top_changed" swapped="yes" />
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</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>
|
||||
<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>
|
||||
</child>
|
||||
<child>
|
||||
<object class="LpPrintPreview" id="preview">
|
||||
<property name="valign">center</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="css-name">lpprintpreview</property>
|
||||
<binding name="print">
|
||||
<constant>LpPrint</constant>
|
||||
</binding>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="halign">center</property>
|
||||
<property name="spacing">36</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<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>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<style>
|
||||
<class name="linked" />
|
||||
</style>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="icon-name">center-on-page-horizontal-symbolic</property>
|
||||
<property name="action-name">print.center-horizontally</property>
|
||||
<property name="tooltip-text" translatable="yes">Center image horizontally</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="icon-name">center-on-page-vertical-symbolic</property>
|
||||
<property name="action-name">print.center-vertically</property>
|
||||
<property name="tooltip-text" translatable="yes">Center image vertically</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="selection-mode">none</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Image 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">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>
|
||||
<object class="GtkSpinButton" id="margin_left">
|
||||
<property name="valign">center</property>
|
||||
<property name="max-width-chars">5</property>
|
||||
<signal name="value-changed" handler="margin_left_changed" swapped="yes" />
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Top Margin</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="margin_top">
|
||||
<property name="valign">center</property>
|
||||
<property name="max-width-chars">5</property>
|
||||
<signal name="value-changed" handler="margin_top_changed" swapped="yes" />
|
||||
</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>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="label" translatable="yes">Print</property>
|
||||
<property name="action-name">print.print</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">end</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="width-request">160</property>
|
||||
<style>
|
||||
<class name="suggested-action" />
|
||||
<class name="pill" />
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</property>
|
||||
</object>
|
||||
</property>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue