2019-03-12 14:05:25 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<interface>
2020-06-29 03:43:13 +00:00
<menu id="gear_menu">
<section>
2024-01-14 18:29:24 +00:00
<item>
<attribute name="label" translatable="yes">_Reload automatically</attribute>
<attribute name="action">win.auto-reload</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
2020-06-29 03:47:26 +00:00
<item>
2020-06-29 03:43:13 +00:00
<attribute name="label" translatable="yes">_Inspector</attribute>
<attribute name="action">app.inspector</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Node Editor</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
2023-05-07 02:31:58 +00:00
<menu id="extra_menu">
<section>
<item>
<attribute name="label" translatable="yes">Assisted _Edit</attribute>
<attribute name="action">smart-edit</attribute>
</item>
</section>
</menu>
2019-05-29 18:30:21 +00:00
<object class="GtkPopover" id="testcase_popover">
<child>
<object class="GtkGrid">
<property name="column-spacing">12</property>
<property name="row-spacing">12</property>
<child>
<object class="GtkLabel">
<property name="label">Testcase Name:</property>
</object>
</child>
<child>
<object class="GtkEntry" id="testcase_name_entry">
<property name="hexpand">1</property>
<property name="activates-default">1</property>
2024-01-14 19:39:56 +00:00
<signal name="notify::text" handler="testcase_name_entry_changed_cb"/>
2019-05-29 18:30:21 +00:00
</object>
</child>
<child>
<object class="GtkCheckButton" id="testcase_cairo_checkbutton">
<property name="label">Render using Cairo renderer</property>
<layout>
2020-08-02 18:13:14 +00:00
<property name="row">1</property>
<property name="column">0</property>
2019-05-29 18:30:21 +00:00
<property name="column-span">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="wrap">1</property>
<property name="label"><i>There will be a .node and a .png file placed in the testsuite/gsk/compare directory. <b>You need to add it to the meson.build yourself.</b></i></property>
<property name="use-markup">1</property>
<property name="max-width-chars">50</property>
<layout>
2020-08-02 18:13:14 +00:00
<property name="row">2</property>
<property name="column">0</property>
2019-05-29 18:30:21 +00:00
<property name="column-span">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="testcase_error_label">
<property name="wrap">1</property>
<property name="xalign">0</property>
<layout>
2020-08-02 18:13:14 +00:00
<property name="row">3</property>
<property name="column">0</property>
2019-05-29 18:30:21 +00:00
<property name="column-span">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton" id="testcase_save_button">
<property name="label">Save</property>
<property name="hexpand">1</property>
<property name="halign">end</property>
<property name="receives-default">1</property>
<property name="sensitive">0</property>
2024-01-14 19:39:56 +00:00
<signal name="clicked" handler="testcase_save_clicked_cb"/>
2019-05-29 18:30:21 +00:00
<style>
2024-01-14 19:39:56 +00:00
<class name="suggested-action"/>
2019-05-29 18:30:21 +00:00
</style>
<layout>
2020-08-02 18:13:14 +00:00
<property name="row">4</property>
<property name="column">0</property>
2019-05-29 18:30:21 +00:00
<property name="column-span">2</property>
</layout>
</object>
</child>
</object>
</child>
</object>
2019-03-12 14:05:25 +00:00
<template class="NodeEditorWindow" parent="GtkApplicationWindow">
<property name="title" translatable="yes">GTK Node Editor</property>
<property name="default-width">1024</property>
<property name="default-height">768</property>
2020-04-17 19:43:18 +00:00
<property name="focus-widget">text_view</property>
2019-03-12 14:05:25 +00:00
<child type="titlebar">
<object class="GtkHeaderBar" id="header">
<child type="start">
<object class="GtkButton">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2019-03-12 14:05:25 +00:00
<property name="icon-name">document-open-symbolic</property>
<property name="tooltip-text">Open node file</property>
<signal name="clicked" handler="open_cb"/>
</object>
</child>
<child type="start">
<object class="GtkButton">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2019-03-12 14:05:25 +00:00
<property name="icon-name">document-save-symbolic</property>
<property name="tooltip-text">Save to node file</property>
<signal name="clicked" handler="save_cb"/>
</object>
</child>
<child type="start">
<object class="GtkButton">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2019-03-12 14:05:25 +00:00
<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>
2019-05-29 18:30:21 +00:00
<child type="start">
2021-04-03 01:24:59 +00:00
<object class="GtkButton">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2021-04-03 01:24:59 +00:00
<property name="icon-name">edit-copy-symbolic</property>
<property name="tooltip-text">Copy image to clipboard</property>
<signal name="clicked" handler="clip_image_cb"/>
2019-05-29 18:30:21 +00:00
</object>
</child>
<child type="start">
<object class="GtkMenuButton">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2019-05-29 18:30:21 +00:00
<property name="label">Save Testcase</property>
<property name="popover">testcase_popover</property>
</object>
</child>
2020-06-29 03:43:13 +00:00
<child type="end">
<object class="GtkMenuButton" id="gear_menu_button">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2020-06-29 03:43:13 +00:00
<property name="valign">center</property>
<property name="menu-model">gear_menu</property>
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
2021-01-31 00:28:02 +00:00
<child type="end">
<object class="GtkToggleButton" id="dark_bg_button">
2021-04-11 19:31:31 +00:00
<property name="focus-on-click">0</property>
2021-01-31 00:28:02 +00:00
<property name="valign">center</property>
<property name="has-frame">0</property>
<property name="icon-name">display-brightness-symbolic</property>
<property name="tooltip-text" translatable="yes">Use a dark background</property>
<signal name="notify::active" handler="dark_mode_cb" swapped="0"/>
</object>
</child>
2022-06-07 17:39:22 +00:00
<child type="end">
<object class="GtkScaleButton" id="scale_scale">
<property name="focus-on-click">0</property>
<property name="valign">center</property>
<property name="adjustment">
<object class="GtkAdjustment">
2023-04-04 02:32:31 +00:00
<property name="lower">-4</property>
<property name="value">0</property>
<property name="upper">4</property>
2022-06-07 17:39:22 +00:00
<property name="step-increment">0.1</property>
<property name="page-increment">0.5</property>
</object>
</property>
<property name="icons">zoom-in-symbolic</property>
<property name="tooltip-text" translatable="yes">Scale the image</property>
</object>
</child>
2019-03-12 14:05:25 +00:00
</object>
</child>
<child>
2024-01-14 19:39:56 +00:00
<object class="GtkOverlay">
<child type="overlay">
<object class="GtkRevealer" id="crash_warning">
<property name="transition-type">slide-down</property>
<property name="halign">center</property>
<property name="valign">start</property>
<property name="child">
<object class="GtkFrame">
2019-05-07 15:19:58 +00:00
<style>
2024-01-14 19:39:56 +00:00
<class name="app-notification"/>
2019-05-07 15:19:58 +00:00
</style>
2024-01-14 19:39:56 +00:00
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">20</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<child>
<object class="GtkLabel">
<property name="hexpand">1</property>
<property name="halign">1</property>
<property name="label" translatable="1">The application may have crashed.
As a precaution, auto-loading has been turned off.
2024-02-06 18:40:32 +00:00
You can turn it back on in the menu.
2024-01-14 19:39:56 +00:00
</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="valign">3</property>
<property name="use-underline">1</property>
<property name="label" translatable="1">_Close</property>
<signal name="clicked" handler="close_crash_warning"/>
</object>
</child>
2023-05-07 02:31:58 +00:00
</object>
2024-01-14 19:39:56 +00:00
</property>
2019-03-12 14:05:25 +00:00
</object>
2024-01-14 19:39:56 +00:00
</property>
2019-03-12 14:05:25 +00:00
</object>
2024-01-14 19:39:56 +00:00
</child>
<property name="child">
<object class="GtkPaned">
<property name="shrink-start-child">false</property>
<property name="shrink-end-child">false</property>
<property name="position">400</property>
<property name="start-child">
2019-03-09 13:55:17 +00:00
<object class="GtkScrolledWindow">
2024-01-14 19:39:56 +00:00
<property name="hscrollbar-policy">never</property>
2020-02-25 23:25:52 +00:00
<property name="hexpand">1</property>
<property name="vexpand">1</property>
2019-03-09 13:55:17 +00:00
<child>
2024-01-14 19:39:56 +00:00
<object class="GtkTextView" id="text_view">
<property name="wrap-mode">word</property>
<property name="monospace">1</property>
<property name="top-margin">6</property>
<property name="left-margin">6</property>
<property name="right-margin">6</property>
<property name="bottom-margin">6</property>
<property name="has-tooltip">1</property>
<property name="extra-menu">extra_menu</property>
<signal name="query-tooltip" handler="text_view_query_tooltip_cb"/>
<style>
<class name="editor"/>
</style>
<child>
<object class="GtkGestureClick">
<property name="button">1</property>
<signal name="pressed" handler="click_gesture_pressed"/>
</object>
</child>
</object>
</child>
</object>
</property>
<property name="end-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>
2019-03-09 13:55:17 +00:00
<child>
2024-01-14 19:39:56 +00:00
<object class="GtkViewport">
2021-08-20 03:52:54 +00:00
<child>
2024-01-14 19:39:56 +00:00
<object class="GtkPicture" id="picture">
<property name="can-shrink">0</property>
<property name="halign">center</property>
<property name="valign">center</property>
<child>
<object class="GtkDragSource">
<property name="actions">copy</property>
<signal name="prepare" handler="on_picture_drag_prepare_cb" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="GtkDropTargetAsync">
2021-08-20 03:52:54 +00:00
<property name="actions">copy</property>
2024-01-14 19:39:56 +00:00
<property name="formats">application/x-gtk-render-node</property>
<signal name="drop" handler="on_picture_drop_cb" swapped="no"/>
2021-08-20 03:52:54 +00:00
</object>
</child>
</object>
</child>
2019-03-09 13:55:17 +00:00
</object>
</child>
2019-03-12 14:05:25 +00:00
<child>
2024-01-14 19:39:56 +00:00
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<child>
<object class="GtkListBox" id="renderer_listbox">
<property name="selection-mode">none</property>
</object>
</child>
2019-03-12 14:05:25 +00:00
</object>
</child>
</object>
2024-01-14 19:39:56 +00:00
</property>
2019-03-12 14:05:25 +00:00
</object>
2021-11-18 22:24:38 +00:00
</property>
2019-03-12 14:05:25 +00:00
</object>
</child>
</template>
</interface>