ui: the math editor's action row is the file's, closing that plan row
The row is the file's -- the box and its two buttons, the second carrying the suggested-action class -- and what is code is what they do and what the second one says: "Save" edits an existing channel and "Add" makes a new one, which the file cannot know. With it the editor's frame is whole: the window, the identity row, the body with the canvas in it, and the buttons that end it. The parameter form and the palette stay in code, and for the reason the canvas's *drawing* does -- the form follows which node is selected and the palette is the operation table itself. The probe clicks the apply button rather than calling its handler, so `dialog build: ... name='math3' unit=''; saved nodes=2 output=1` is that button having worked from the file, and `after close: dialog=cleared` / `reopened: dialog=ok, nodes=2` are the lifetime around it. check_ui: 12 ok, 0 failed.
This commit is contained in:
1 parent
1a02946656
commit
c86d2117fb
2 files changed
+33
-11
No files matched your search
+22
-3
@@ -5,9 +5,10 @@
|
||||
The math channel editor's window and its identity row: the name the channel is called, and the unit its
|
||||
readouts carry.
|
||||
|
||||
The canvas below them is *declared* here but *drawn* by code (`GtkDrawingArea`), and the palette, the
|
||||
parameter form and the buttons around it are code as well, because the form follows the selection: that is
|
||||
the half of this dialog which is not template. The row here is the half that is.
|
||||
The canvas below them is *declared* here but *drawn* by code (`GtkDrawingArea`); the parameter form beside
|
||||
it and the palette are code as well, because the form follows which node is selected and the palette is the
|
||||
operation table itself — neither is data a file should hold. What is here is the frame: the window, the
|
||||
identity row, the body with the canvas in it, and the two buttons that end the dialog.
|
||||
|
||||
The window's title is not here: it says which mode the editor is in ("Edit math channel" against "New math
|
||||
channel"), which the code that opens it knows and a file cannot.
|
||||
@@ -61,5 +62,23 @@
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox" id="math_actions">
|
||||
<property name="orientation">horizontal</property>
|
||||
<property name="spacing">6</property>
|
||||
<property name="halign">end</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="math_cancel">
|
||||
<property name="label" translatable="yes">Cancel</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="math_apply">
|
||||
<property name="label" translatable="yes">Add</property>
|
||||
<property name="css-classes">suggested-action</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
Reference in new issue
Block a user