134 lines
4.7 KiB
XML
134 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<menu id="gear_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Help</attribute>
|
|
<attribute name="action">app.help</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Inspector</attribute>
|
|
<attribute name="action">app.inspector</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_About Ottie Editor</attribute>
|
|
<attribute name="action">app.about</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
|
|
<object class="OttieCreation" id="creation">
|
|
<signal name="notify::prepared" handler="notify_prepared_cb"/>
|
|
</object>
|
|
|
|
<object class="OttiePaintable" id="paintable">
|
|
<property name="creation">creation</property>
|
|
</object>
|
|
|
|
<template class="OttieEditorWindow" parent="GtkApplicationWindow">
|
|
<property name="title" translatable="yes">Ottie Editor</property>
|
|
<property name="default-width">1024</property>
|
|
<property name="default-height">768</property>
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar" id="header">
|
|
<child type="start">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">document-open-symbolic</property>
|
|
<property name="tooltip-text">Open file</property>
|
|
<signal name="clicked" handler="open_cb"/>
|
|
</object>
|
|
</child>
|
|
<child type="start">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">document-save-symbolic</property>
|
|
<property name="tooltip-text">Save</property>
|
|
<signal name="clicked" handler="save_cb"/>
|
|
</object>
|
|
</child>
|
|
<child type="start">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">insert-image-symbolic</property>
|
|
<property name="tooltip-text">Export to image</property>
|
|
<signal name="clicked" handler="export_image_cb"/>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="gear_menu_button">
|
|
<property name="valign">center</property>
|
|
<property name="menu-model">gear_menu</property>
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkPaned">
|
|
<property name="shrink-end-child">false</property>
|
|
<property name="position">400</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<child>
|
|
<object class="GtkListView" id="listview">
|
|
<property name="factory">
|
|
<object class="GtkBuilderListItemFactory">
|
|
<property name="bytes"><![CDATA[
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GtkListItem">
|
|
<property name="child">
|
|
<object class="GtkTreeExpander" id="expander">
|
|
<binding name="list-row">
|
|
<lookup name="item">GtkListItem</lookup>
|
|
</binding>
|
|
<property name="child">
|
|
<object class="GtkLabel">
|
|
<property name="xalign">0</property>
|
|
<binding name="label">
|
|
<lookup name="name" type="OttieObject">
|
|
<lookup name="item">expander</lookup>
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|
|
]]></property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<property name="min-content-height">100</property>
|
|
<property name="min-content-width">100</property>
|
|
<child>
|
|
<object class="GtkViewport">
|
|
<child>
|
|
<object class="GtkPicture" id="picture">
|
|
<property name="can-shrink">0</property>
|
|
<property name="paintable">paintable</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|