259 lines
11 KiB
XML
259 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<menu id="primary_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_New Window</attribute>
|
|
<attribute name="action">app.new-window</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Open…</attribute>
|
|
<attribute name="action">win.open</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Open With…</attribute>
|
|
<attribute name="action">win.open-with</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Print…</attribute>
|
|
<attribute name="action">win.print</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<attribute name="label" translatable="yes">Rotate</attribute>
|
|
<attribute name="display-hint">inline-buttons</attribute>
|
|
<item>
|
|
<attribute name="custom">rotate-left</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="custom">rotate-right</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Set as Background…</attribute>
|
|
<attribute name="action">win.set-background</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Delete</attribute>
|
|
<attribute name="action">win.trash</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Help</attribute>
|
|
<attribute name="action">app.help</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_About Image Viewer</attribute>
|
|
<attribute name="action">win.about</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
<template class="LpImageWindow" parent="AdwBin">
|
|
<property name="child">
|
|
<object class="AdwToolbarView" id="toolbar_view">
|
|
<child>
|
|
<object class="GtkShortcutController" id="shortcut_controller">
|
|
<property name="scope">global</property>
|
|
</object>
|
|
</child>
|
|
<child type="top">
|
|
<object class="LpShyBin">
|
|
<property name="child">
|
|
<object class="AdwHeaderBar" id="headerbar">
|
|
<binding name="show-end-title-buttons">
|
|
<lookup name="not-fullscreened" type="LpWindow">
|
|
<lookup name="root">LpImageWindow</lookup>
|
|
</lookup>
|
|
</binding>
|
|
<binding name="show-start-title-buttons">
|
|
<lookup name="not-fullscreened" type="LpWindow">
|
|
<lookup name="root">LpImageWindow</lookup>
|
|
</lookup>
|
|
</binding>
|
|
<style>
|
|
<class name="fullscreen-osd" />
|
|
</style>
|
|
<child type="start">
|
|
<object class="GtkButton" id="fullscreen_button">
|
|
<property name="action-name">win.toggle-fullscreen</property>
|
|
<property name="tooltip-text" translatable="yes">Toggle Fullscreen</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="primary_menu">
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Main Menu</property>
|
|
<property name="primary">True</property>
|
|
<property name="popover">
|
|
<object class="GtkPopoverMenu">
|
|
<property name="menu-model">primary_menu</property>
|
|
<child type="rotate-left">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">object-rotate-left-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Rotate Left</property>
|
|
<property name="action-name">win.rotate-ccw</property>
|
|
<style>
|
|
<class name="flat" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="rotate-right">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">object-rotate-right-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Rotate Right</property>
|
|
<property name="action-name">win.rotate-cw</property>
|
|
<style>
|
|
<class name="flat" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkToggleButton" id="properties_button">
|
|
<property name="icon-name">info-outline-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Image Properties</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="action-name">win.edit</property>
|
|
<property name="icon-name">crop-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Edit Image</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEventControllerMotion" id="headerbar_events" />
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwMultiLayoutView">
|
|
<binding name="layout-name">
|
|
<lookup name="layout-name" type="LpWindow">
|
|
<lookup name="root">LpImageWindow</lookup>
|
|
</lookup>
|
|
</binding>
|
|
<child>
|
|
<object class="AdwLayout">
|
|
<property name="name">wide</property>
|
|
<property name="content">
|
|
<object class="AdwOverlaySplitView" id="properties_split_view">
|
|
<property name="sidebar-position">end</property>
|
|
<property name="min-sidebar-width">255</property>
|
|
<property name="show-sidebar" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create" />
|
|
<property name="sidebar">
|
|
<object class="AdwLayoutSlot">
|
|
<property name="id">properties</property>
|
|
</object>
|
|
</property>
|
|
<property name="content">
|
|
<object class="AdwLayoutSlot">
|
|
<property name="id">content</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwLayout">
|
|
<property name="name">narrow</property>
|
|
<property name="content">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="AdwLayoutSlot">
|
|
<property name="id">content</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRevealer">
|
|
<property name="transition-type">slide-up</property>
|
|
<property name="reveal-child" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create" />
|
|
<style>
|
|
<class name="bottom-properties" />
|
|
</style>
|
|
<property name="child">
|
|
<object class="AdwLayoutSlot">
|
|
<property name="id">properties</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child type="properties">
|
|
<object class="LpPropertiesView" id="properties_view" />
|
|
</child>
|
|
<child type="content">
|
|
<object class="LpDragOverlay" id="drag_overlay">
|
|
<property name="vexpand">true</property>
|
|
<property name="drop_target">drop_target</property>
|
|
<property name="content">
|
|
<object class="GtkStack" id="stack">
|
|
<property name="visible-child">status_page</property>
|
|
<style>
|
|
<class name="drop-widget" />
|
|
</style>
|
|
<child>
|
|
<object class="GtkDropTarget" id="drop_target">
|
|
<property name="actions">copy</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwStatusPage" id="status_page">
|
|
<property name="title" translatable="yes">View Images</property>
|
|
<property name="description" translatable="yes">Drag and drop images here</property>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="halign">center</property>
|
|
<property name="label" translatable="yes">_Open Files…</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="action-name">win.open</property>
|
|
<style>
|
|
<class name="pill" />
|
|
<class name="suggested-action" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="LpImageView" id="image_view">
|
|
<child>
|
|
<object class="GtkGestureClick" id="forward_click_gesture">
|
|
<property name="button">9</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkGestureClick" id="backward_click_gesture">
|
|
<property name="button">8</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|