The first half of this plan row. src/ui/math-panel.ui holds the panel: the box and its margins, the heading row with the title and the add button, and the list the channel rows go in. The rows stay in code -- each is a channel with its name, unit, expression, colour and its own edit and remove buttons -- so the file holds the frame, as in the measurements and signals panels beside it. Read back by a dump line that also reads the file's own text: `math panel: head=2 buttons=1 list=1 title='Math channels'`, where buttons=0 is a lost `+` and title='-' a lost label. `[math-probe]` still drives the add and opens the editor, so the rows landing in the file's list is read as well as the frame. The other half is the node editor's chrome, which is where least of that file is template: the canvas is a GtkDrawingArea that is drawn rather than declared, and the gestures, the parameter fields and the palette are code. That is its own change.
25 lines
1.2 KiB
XML
25 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- SPDX-License-Identifier: MIT -->
|
|
<!-- SPDX-FileCopyrightText: 2026 Martino Ferrari -->
|
|
<!--
|
|
The application's UI files, compiled into the binary beside the icons and the help pages, so there
|
|
is still exactly one file to run. `preprocess="xml-stripblanks"` is what catches a malformed file:
|
|
gtk_builder_new_from_resource() on a broken .ui returns nothing usable and the window simply does
|
|
not open, which is a silent failure at runtime and a loud one here.
|
|
-->
|
|
<gresources>
|
|
<gresource prefix="/org/udpscope/ui">
|
|
<file preprocess="xml-stripblanks">shortcuts.ui</file>
|
|
<file preprocess="xml-stripblanks">preferences.ui</file>
|
|
<file preprocess="xml-stripblanks">help.ui</file>
|
|
<file preprocess="xml-stripblanks">source-form.ui</file>
|
|
<file preprocess="xml-stripblanks">source-chooser.ui</file>
|
|
<file preprocess="xml-stripblanks">main-window.ui</file>
|
|
<file preprocess="xml-stripblanks">cursors-panel.ui</file>
|
|
<file preprocess="xml-stripblanks">measures-panel.ui</file>
|
|
<file preprocess="xml-stripblanks">math-panel.ui</file>
|
|
<file preprocess="xml-stripblanks">trigger-panel.ui</file>
|
|
<file preprocess="xml-stripblanks">signals-panel.ui</file>
|
|
</gresource>
|
|
</gresources>
|