<?xml version="1.0" encoding="UTF-8"?>
<interface domain="easyeffects">
    <template class="ConvolverBox" parent="GtkBox">
        <property name="margin-start">6</property>
        <property name="margin-end">6</property>
        <property name="margin-top">6</property>
        <property name="margin-bottom">6</property>
        <property name="orientation">vertical</property>
        <child>
            <object class="GtkOverlay" id="overlay">
                <child type="overlay">
                    <object class="AdwToastOverlay" id="toast_overlay">
                        <property name="valign">start</property>
                    </object>
                </child>

                <child>
                    <object class="GtkBox">
                        <property name="spacing">12</property>
                        <property name="orientation">vertical</property>
                        <child>
                            <object class="GtkLabel" id="label_file_name">
                                <property name="wrap">1</property>
                                <property name="wrap-mode">word-char</property>
                            </object>
                        </child>

                        <child>
                            <object class="GtkBox" id="chart_box">
                                <property name="spacing">12</property>
                                <child>
                                    <object class="GtkBox">
                                        <property name="homogeneous">1</property>
                                        <property name="orientation">vertical</property>
                                        <child>
                                            <object class="GtkCheckButton" id="check_left">
                                                <property name="valign">end</property>
                                                <property name="halign">center</property>
                                                <property name="active">1</property>
                                                <property name="label" translatable="yes">L</property>
                                                <signal name="toggled" handler="on_show_channel" object="ConvolverBox" />
                                                <accessibility>
                                                    <property name="label" translatable="yes">Left Channel</property>
                                                </accessibility>
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkCheckButton" id="check_right">
                                                <property name="valign">start</property>
                                                <property name="halign">center</property>
                                                <property name="group">check_left</property>
                                                <property name="label" translatable="yes">R</property>
                                                <signal name="toggled" handler="on_show_channel" object="ConvolverBox" />
                                                <accessibility>
                                                    <property name="label" translatable="yes">Right Channel</property>
                                                </accessibility>
                                            </object>
                                        </child>
                                    </object>
                                </child>

                                <child>
                                    <object class="GtkBox">
                                        <property name="spacing">6</property>
                                        <property name="orientation">vertical</property>
                                        <child>
                                            <object class="GtkMenuButton" id="menu_button_impulses">
                                                <property name="valign">center</property>
                                                <property name="direction">left</property>
                                                <property name="label" translatable="yes">Impulses</property>
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkMenuButton" id="menu_button_combine">
                                                <property name="valign">center</property>
                                                <property name="direction">left</property>
                                                <property name="label" translatable="yes">Combine</property>
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkLabel" id="ir_width_label">
                                                <property name="margin-top">12</property>
                                                <property name="label" translatable="yes">Stereo Width</property>
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkSpinButton" id="ir_width">
                                                <property name="halign">center</property>
                                                <property name="orientation">vertical</property>
                                                <property name="width-chars">10</property>
                                                <property name="digits">0</property>
                                                <property name="update-policy">if-valid</property>
                                                <property name="adjustment">
                                                    <object class="GtkAdjustment">
                                                        <property name="upper">200</property>
                                                        <property name="value">100</property>
                                                        <property name="step-increment">1</property>
                                                        <property name="page-increment">10</property>
                                                    </object>
                                                </property>
                                                <accessibility>
                                                    <relation name="labelled-by">ir_width_label</relation>
                                                </accessibility>
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkToggleButton" id="show_fft">
                                                <property name="valign">center</property>
                                                <property name="label" translatable="yes">Spectrum</property>
                                                <signal name="toggled" handler="on_show_fft" object="ConvolverBox" />
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkToggleButton" id="enable_log_scale">
                                                <property name="halign">center</property>
                                                <property name="label" translatable="yes">Log Scale</property>
                                                <property name="visible" bind-source="show_fft" bind-property="active" bind-flags="sync-create" />
                                                <signal name="toggled" handler="on_enable_log_scale" object="ConvolverBox" />
                                            </object>
                                        </child>

                                        <child>
                                            <object class="GtkToggleButton" id="autogain">
                                                <property name="margin-top">12</property>
                                                <property name="valign">center</property>
                                                <property name="label" translatable="yes">Autogain</property>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                            </object>
                        </child>

                        <child>
                            <object class="GtkGrid">
                                <property name="halign">center</property>
                                <property name="valign">center</property>
                                <property name="row-spacing">6</property>
                                <property name="column-spacing">48</property>
                                <child>
                                    <object class="GtkLabel">
                                        <property name="label" translatable="yes">Rate</property>
                                        <layout>
                                            <property name="column">0</property>
                                            <property name="row">0</property>
                                        </layout>
                                    </object>
                                </child>
                                <child>
                                    <object class="GtkLabel" id="label_sampling_rate">
                                        <style>
                                            <class name="dim-label" />
                                        </style>
                                        <layout>
                                            <property name="column">0</property>
                                            <property name="row">1</property>
                                        </layout>
                                    </object>
                                </child>

                                <child>
                                    <object class="GtkLabel">
                                        <property name="label" translatable="yes">Samples</property>
                                        <layout>
                                            <property name="column">1</property>
                                            <property name="row">0</property>
                                        </layout>
                                    </object>
                                </child>
                                <child>
                                    <object class="GtkLabel" id="label_samples">
                                        <style>
                                            <class name="dim-label" />
                                        </style>
                                        <layout>
                                            <property name="column">1</property>
                                            <property name="row">1</property>
                                        </layout>
                                    </object>
                                </child>

                                <child>
                                    <object class="GtkLabel">
                                        <property name="label" translatable="yes">Duration</property>
                                        <layout>
                                            <property name="column">2</property>
                                            <property name="row">0</property>
                                        </layout>
                                    </object>
                                </child>
                                <child>
                                    <object class="GtkLabel" id="label_duration">
                                        <style>
                                            <class name="dim-label" />
                                        </style>
                                        <layout>
                                            <property name="column">2</property>
                                            <property name="row">1</property>
                                        </layout>
                                    </object>
                                </child>
                            </object>
                        </child>

                        <child>
                            <object class="GtkBox">
                                <property name="hexpand">1</property>
                                <property name="vexpand">0</property>
                                <property name="homogeneous">1</property>
                                <property name="spacing">6</property>
                                <child>
                                    <object class="GtkBox">
                                        <property name="hexpand">1</property>
                                        <property name="vexpand">0</property>
                                        <property name="spacing">6</property>
                                        <child>
                                            <object class="GtkLabel" id="input_level_title">
                                                <property name="halign">end</property>
                                                <property name="xalign">1</property>
                                                <property name="label" translatable="yes">Input</property>
                                            </object>
                                        </child>
                                        <child>
                                            <object class="GtkScale" id="input_gain">
                                                <property name="hexpand">1</property>
                                                <property name="valign">center</property>
                                                <property name="adjustment">
                                                    <object class="GtkAdjustment">
                                                        <property name="lower">-36</property>
                                                        <property name="upper">36</property>
                                                        <property name="step-increment">0.1</property>
                                                        <property name="page-increment">1</property>
                                                    </object>
                                                </property>
                                                <property name="draw-value">1</property>
                                                <property name="digits">1</property>
                                                <property name="value-pos">right</property>
                                                <accessibility>
                                                    <property name="label" translatable="yes">Plugin Input Gain</property>
                                                </accessibility>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                                <child>
                                    <object class="GtkBox">
                                        <property name="orientation">vertical</property>
                                        <child>
                                            <object class="GtkBox">
                                                <property name="spacing">6</property>
                                                <child>
                                                    <object class="GtkLevelBar" id="input_level_left">
                                                        <property name="valign">center</property>
                                                        <property name="hexpand">1</property>
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkLabel" id="input_level_left_label">
                                                        <property name="halign">end</property>
                                                        <property name="width-chars">4</property>
                                                        <property name="label">0</property>
                                                    </object>
                                                </child>
                                            </object>
                                        </child>
                                        <child>
                                            <object class="GtkBox">
                                                <property name="spacing">6</property>
                                                <child>
                                                    <object class="GtkLevelBar" id="input_level_right">
                                                        <property name="valign">center</property>
                                                        <property name="hexpand">1</property>
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkLabel" id="input_level_right_label">
                                                        <property name="halign">end</property>
                                                        <property name="width-chars">4</property>
                                                        <property name="label">0</property>
                                                    </object>
                                                </child>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                            </object>
                        </child>

                        <child>
                            <object class="GtkBox">
                                <property name="hexpand">1</property>
                                <property name="vexpand">0</property>
                                <property name="homogeneous">1</property>
                                <property name="spacing">6</property>
                                <child>
                                    <object class="GtkBox">
                                        <property name="hexpand">1</property>
                                        <property name="vexpand">0</property>
                                        <property name="spacing">6</property>
                                        <child>
                                            <object class="GtkLabel" id="output_level_title">
                                                <property name="halign">end</property>
                                                <property name="xalign">1</property>
                                                <property name="label" translatable="yes">Output</property>
                                            </object>
                                        </child>
                                        <child>
                                            <object class="GtkScale" id="output_gain">
                                                <property name="hexpand">1</property>
                                                <property name="valign">center</property>
                                                <property name="adjustment">
                                                    <object class="GtkAdjustment">
                                                        <property name="lower">-36</property>
                                                        <property name="upper">36</property>
                                                        <property name="step-increment">0.1</property>
                                                        <property name="page-increment">1</property>
                                                    </object>
                                                </property>
                                                <property name="draw-value">1</property>
                                                <property name="digits">1</property>
                                                <property name="value-pos">right</property>
                                                <accessibility>
                                                    <property name="label" translatable="yes">Plugin Output Gain</property>
                                                </accessibility>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                                <child>
                                    <object class="GtkBox">
                                        <property name="orientation">vertical</property>
                                        <child>
                                            <object class="GtkBox">
                                                <property name="spacing">6</property>
                                                <child>
                                                    <object class="GtkLevelBar" id="output_level_left">
                                                        <property name="valign">center</property>
                                                        <property name="hexpand">1</property>
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkLabel" id="output_level_left_label">
                                                        <property name="halign">end</property>
                                                        <property name="width-chars">4</property>
                                                        <property name="label">0</property>
                                                    </object>
                                                </child>
                                            </object>
                                        </child>
                                        <child>
                                            <object class="GtkBox">
                                                <property name="spacing">6</property>
                                                <child>
                                                    <object class="GtkLevelBar" id="output_level_right">
                                                        <property name="valign">center</property>
                                                        <property name="hexpand">1</property>
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkLabel" id="output_level_right_label">
                                                        <property name="halign">end</property>
                                                        <property name="width-chars">4</property>
                                                        <property name="label">0</property>
                                                    </object>
                                                </child>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                            </object>
                        </child>

                        <child>
                            <object class="GtkBox">
                                <property name="hexpand">1</property>
                                <property name="vexpand">0</property>
                                <property name="layout-manager">
                                    <object class="GtkBinLayout"></object>
                                </property>

                                <child>
                                    <object class="GtkButton" id="reset_button">
                                        <property name="halign">center</property>
                                        <property name="valign">center</property>
                                        <property name="hexpand">1</property>
                                        <property name="label" translatable="yes">Reset</property>
                                        <signal name="clicked" handler="on_reset" object="ConvolverBox" />
                                    </object>
                                </child>

                                <child>
                                    <object class="GtkBox">
                                        <property name="halign">end</property>
                                        <property name="hexpand">1</property>
                                        <property name="vexpand">0</property>
                                        <property name="spacing">6</property>
                                        <child>
                                            <object class="GtkLabel">
                                                <property name="halign">end</property>
                                                <property name="label" translatable="yes">Using</property>
                                            </object>
                                        </child>
                                        <child>
                                            <object class="GtkLabel">
                                                <property name="halign">end</property>
                                                <property name="label">Zita-convolver</property>
                                                <attributes>
                                                    <attribute name="weight" value="bold" />
                                                </attributes>
                                            </object>
                                        </child>
                                    </object>
                                </child>
                            </object>
                        </child>
                    </object>
                </child>
            </object>
        </child>
    </template>

    <object class="GtkSizeGroup">
        <property name="mode">horizontal</property>
        <widgets>
            <widget name="input_level_title" />
            <widget name="output_level_title" />
        </widgets>
    </object>

    <object class="GtkSizeGroup">
        <property name="mode">horizontal</property>
        <widgets>
            <widget name="output_gain" />
            <widget name="input_gain" />
        </widgets>
    </object>
</interface>
