2024-09-15 21:06:23 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
|
|
|
|
<menu id="aspect_ratio_menu">
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">Free</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">free</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">Original</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">original</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">Square</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">square</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">5:4</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">r5to4</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">4:3</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">r4to3</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">3:2</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">r3to2</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">16:9</attribute>
|
|
|
|
|
<attribute name="action">edit-crop.aspect-ratio</attribute>
|
|
|
|
|
<attribute name="target">r16to9</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="custom">orientation</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
</menu>
|
2024-12-14 00:38:04 +01:00
|
|
|
<object class="GtkSizeGroup">
|
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
|
<widgets>
|
|
|
|
|
<widget name="box-start" />
|
|
|
|
|
<widget name="box-end" />
|
|
|
|
|
</widgets>
|
|
|
|
|
</object>
|
2024-09-15 21:06:23 +02:00
|
|
|
<template class="LpEditCrop" parent="GtkWidget">
|
|
|
|
|
<property name="child">
|
2024-09-19 20:13:53 +02:00
|
|
|
<object class="AdwToolbarView">
|
|
|
|
|
<property name="bottom-bar-style">raised</property>
|
2024-12-14 00:38:04 +01:00
|
|
|
<binding name="reveal-bottom-bars">
|
|
|
|
|
<lookup name="narrow-layout" type="LpWindow">
|
|
|
|
|
<lookup name="root">LpEditCrop</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="content">
|
2024-12-14 00:38:04 +01:00
|
|
|
<object class="AdwOverlaySplitView">
|
|
|
|
|
<property name="sidebar-position">end</property>
|
|
|
|
|
<property name="min-sidebar-width">280</property>
|
|
|
|
|
<binding name="show-sidebar">
|
|
|
|
|
<lookup name="wide-layout" type="LpWindow">
|
|
|
|
|
<lookup name="root">LpEditCrop</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
<property name="sidebar">
|
|
|
|
|
<object class="AdwPreferencesPage">
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title">Aspect Ratio</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkGrid">
|
|
|
|
|
<property name="column-homogeneous">true</property>
|
|
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
|
<property name="column-spacing">6</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'free'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-free-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_Free</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
<property name="row">0</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'original'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-original-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_Original</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">0</property>
|
|
|
|
|
<property name="column">1</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'square'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-square-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_Square</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">1</property>
|
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'r5to4'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-5to4-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_5:4</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">1</property>
|
|
|
|
|
<property name="column">1</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'r4to3'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-4to3-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_4:3</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">2</property>
|
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'r3to2'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-3to2-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_3:2</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">2</property>
|
|
|
|
|
<property name="column">1</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
|
<property name="action-name">edit-crop.aspect-ratio</property>
|
|
|
|
|
<property name="action-target">'r16to9'</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwButtonContent">
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="icon-name">aspect-ratio-16to9-symbolic</property>
|
|
|
|
|
<property name="label" translatable="yes">_16:9</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<layout>
|
|
|
|
|
<property name="row">3</property>
|
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title">Rotate</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkGrid">
|
|
|
|
|
<property name="column-homogeneous">true</property>
|
|
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
|
<property name="column-spacing">6</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">object-rotate-left-symbolic</property>
|
|
|
|
|
<property name="action-name">edit-crop.rotate-ccw</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">object-rotate-right-symbolic</property>
|
|
|
|
|
<property name="action-name">edit-crop.rotate-cw</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<property name="title">Flip</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkGrid">
|
|
|
|
|
<property name="column-homogeneous">true</property>
|
|
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
|
<property name="column-spacing">6</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">edit-mirror-symbolic</property>
|
|
|
|
|
<property name="action-name">edit-crop.mirror</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">edit-mirror-vertically-symbolic</property>
|
|
|
|
|
<property name="action-name">edit-crop.mirror</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="label">_Reset</property>
|
|
|
|
|
<property name="use-underline">true</property>
|
|
|
|
|
<property name="action-name">edit-crop.reset</property>
|
|
|
|
|
<property name="vexpand">true</property>
|
|
|
|
|
<property name="valign">end</property>
|
|
|
|
|
<property name="halign">end</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
2024-12-14 00:38:04 +01:00
|
|
|
</property>
|
|
|
|
|
<property name="content">
|
|
|
|
|
<object class="GtkOverlay">
|
|
|
|
|
<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="LpImage" id="image">
|
|
|
|
|
<property name="sensitive">false</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child type="overlay">
|
|
|
|
|
<object class="LpEditCropSelection" id="selection">
|
|
|
|
|
<property name="crop">LpEditCrop</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child type="overlay">
|
|
|
|
|
<object class="GtkButton" id="apply_crop">
|
|
|
|
|
<property name="label">Apply</property>
|
2024-12-21 13:44:46 +01:00
|
|
|
<property name="action-name">edit-crop.apply-crop</property>
|
2024-12-14 00:38:04 +01:00
|
|
|
<property name="halign">end</property>
|
|
|
|
|
<property name="valign">start</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="osd" />
|
|
|
|
|
<class name="pill" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-19 20:13:53 +02:00
|
|
|
</object>
|
2024-12-14 00:38:04 +01:00
|
|
|
</property>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
2024-09-19 20:13:53 +02:00
|
|
|
</property>
|
|
|
|
|
<child type="bottom">
|
|
|
|
|
<object class="AdwClamp">
|
2024-12-14 00:38:04 +01:00
|
|
|
<property name="maximum-size">350</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="child">
|
2024-09-15 21:06:23 +02:00
|
|
|
<object class="GtkBox">
|
|
|
|
|
<property name="orientation">horizontal</property>
|
|
|
|
|
<property name="spacing">6</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<style>
|
|
|
|
|
<class name="toolbar" />
|
|
|
|
|
</style>
|
2024-12-14 00:38:04 +01:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkBox" id="box-start">
|
|
|
|
|
<property name="hexpand">true</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-15 21:06:23 +02:00
|
|
|
<child>
|
2024-09-19 20:13:53 +02:00
|
|
|
<object class="GtkBox">
|
|
|
|
|
<property name="orientation">horizontal</property>
|
2024-12-14 00:38:04 +01:00
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="spacing">6</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkMenuButton">
|
|
|
|
|
<property name="icon-name">aspect-ratio-symbolic</property>
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Aspect Ratio</property>
|
|
|
|
|
<property name="halign">start</property>
|
|
|
|
|
<property name="direction">up</property>
|
|
|
|
|
<property name="popover">
|
|
|
|
|
<object class="GtkPopoverMenu">
|
|
|
|
|
<property name="menu-model">aspect_ratio_menu</property>
|
|
|
|
|
<child type="orientation">
|
|
|
|
|
<object class="GtkBox">
|
|
|
|
|
<property name="homogeneous">true</property>
|
|
|
|
|
<property name="spacing">6</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton" id="landscape">
|
|
|
|
|
<property name="icon-name">page-orientation-landscape-symbolic</property>
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Orientation Landscape</property>
|
|
|
|
|
<property name="hexpand">true</property>
|
|
|
|
|
<property name="action-name">edit-crop.orientation</property>
|
|
|
|
|
<property name="action-target">'landscape'</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkToggleButton" id="portrait">
|
|
|
|
|
<property name="icon-name">page-orientation-portrait-symbolic</property>
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Orientation Portrait</property>
|
|
|
|
|
<property name="hexpand">true</property>
|
|
|
|
|
<property name="action-name">edit-crop.orientation</property>
|
|
|
|
|
<property name="action-target">'portrait'</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
2024-09-19 20:13:53 +02:00
|
|
|
</property>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
2024-09-19 20:13:53 +02:00
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">object-rotate-left-symbolic</property>
|
2024-10-04 14:05:11 +02:00
|
|
|
<property name="action-name">edit-crop.rotate-ccw</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="valign">start</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
2024-12-14 00:38:04 +01:00
|
|
|
<property name="icon-name">edit-mirror-symbolic</property>
|
|
|
|
|
<property name="action-name">edit-crop.mirror</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="valign">start</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2024-12-14 00:38:04 +01:00
|
|
|
<object class="GtkBox" id="box-end">
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="orientation">horizontal</property>
|
|
|
|
|
<property name="halign">end</property>
|
2024-12-14 00:38:04 +01:00
|
|
|
<property name="hexpand">true</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="label">Reset</property>
|
2024-10-04 14:05:11 +02:00
|
|
|
<property name="action-name">edit-crop.reset</property>
|
2024-09-19 20:13:53 +02:00
|
|
|
<property name="valign">start</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="flat" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
2024-09-19 20:13:53 +02:00
|
|
|
</property>
|
2024-09-15 21:06:23 +02:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
|
|
|
|
</interface>
|