2019-06-30 13:25:30 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
|
|
<template class="ConstraintEditor" parent="GtkWidget">
|
|
|
|
<child>
|
|
|
|
<object class="GtkGrid" id="grid">
|
2020-02-26 01:57:20 +00:00
|
|
|
<property name="margin-start">20</property>
|
|
|
|
<property name="margin-end">20</property>
|
|
|
|
<property name="margin-top">20</property>
|
|
|
|
<property name="margin-bottom">20</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
<property name="row-spacing">10</property>
|
|
|
|
<property name="column-spacing">10</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Target</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">1</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="target">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<signal name="changed" handler="update_button" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">1</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="target_attr">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">1</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Relation</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">2</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="relation">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">2</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Source</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">3</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="source">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<signal name="changed" handler="update_button" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">3</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="source_attr">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<signal name="changed" handler="source_attr_changed" swapped="yes"/>
|
2020-11-18 04:15:51 +00:00
|
|
|
<signal name="changed" handler="update_button" swapped="yes"/>
|
2019-06-30 13:25:30 +00:00
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">3</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Multiplier</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">4</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="multiplier">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">4</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Constant</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">5</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="constant">
|
|
|
|
<signal name="changed" handler="update_preview" swapped="yes"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">5</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Strength</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">6</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="strength">
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">6</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="preview">
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">7</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
<property name="column-span">2</property>
|
|
|
|
</layout>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="1.44"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="button">
|
|
|
|
<property name="label">Create</property>
|
|
|
|
<signal name="clicked" handler="create_constraint"/>
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">8</property>
|
2019-06-30 13:25:30 +00:00
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</template>
|
|
|
|
</interface>
|